Skip to content

Instantly share code, notes, and snippets.

@annedorko
annedorko / README.md
Last active May 12, 2024 13:34
TailwindCSS plugin for variable fonts: Italic, Width/Stretch, Weight
@jimmychu0807
jimmychu0807 / string-conversion.rs
Created November 21, 2019 10:20
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@xorrior
xorrior / wmic_cmds.txt
Last active May 12, 2024 13:32
Useful Wmic queries for host and domain enumeration
Host Enumeration:
--- OS Specifics ---
wmic os LIST Full (* To obtain the OS Name, use the "caption" property)
wmic computersystem LIST full
--- Anti-Virus ---
wmic /namespace:\\root\securitycenter2 path antivirusproduct
@KevinPatel04
KevinPatel04 / MATLAB.md
Created March 21, 2020 18:18
MATLAB CHEAT SHEET

MATLAB Cheatsheets for Image Processing

  • Read Image File
  
  %%
  % replace `PATH_TO_IMAGE` with actual image file path
  %
 impath = 'PATH_TO_IMAGE';
@Nevro
Nevro / deepEqualLite.js
Created May 10, 2024 07:16
Fastest Deep Equal Comparison in JavaScript (Lite version! Objects, Arrays, Maps, Sets, Dates,...)
Object.deepEqualLite ??= function(target, source) {
if (target === null || source === null)
return target === source;
if (typeof target !== 'object' || typeof source !== 'object')
return Object.is(target, source);
let tor = target.constructor;
if (tor !== source.constructor)
return false;
if (tor === undefined) {
const tag = Object.prototype.toString.call(target);
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active May 12, 2024 13:26
Japanese Subtitles

📓 Table of Contents 📚 Resources ✉️ Chat


kitsunekko.net jp subtitles

A large repository of japanese subtitles that is updated reasonably often and has a clean design.| The most popular one, you can upload your own subs.| Often have to be retimed.

@osipxd
osipxd / paper-versions.json
Last active May 12, 2024 13:22
Paper versions links
{
"latest": "1.20.6",
"versions": {
"1.20.6": "https://api.papermc.io/v2/projects/paper/versions/1.20.6/builds/28/downloads/paper-1.20.6-28.jar",
"1.20.5": "https://api.papermc.io/v2/projects/paper/versions/1.20.5/builds/22/downloads/paper-1.20.5-22.jar",
"1.20.4": "https://api.papermc.io/v2/projects/paper/versions/1.20.4/builds/496/downloads/paper-1.20.4-496.jar",
"1.20.2": "https://api.papermc.io/v2/projects/paper/versions/1.20.2/builds/318/downloads/paper-1.20.2-318.jar",
"1.20.1": "https://api.papermc.io/v2/projects/paper/versions/1.20.1/builds/196/downloads/paper-1.20.1-196.jar",
"1.20": "https://api.papermc.io/v2/projects/paper/versions/1.20/builds/17/downloads/paper-1.20-17.jar",
"1.19.4": "https://api.papermc.io/v2/projects/paper/versions/1.19.4/builds/550/downloads/paper-1.19.4-550.jar",
using System;
using System.Collections.Generic;
/// <summary>
/// Représente les coordonnées d'une cellule dans une grille.
/// </summary>
public class CellCoordinates
{
public int X { get; set; }
public int Y { get; set; }
using System;
using System.Collections.Generic;
/// <summary>
/// Représente les coordonnées d'une cellule dans une grille.
/// </summary>
public class CellCoordinates
{
public int X { get; set; }
@topheman
topheman / git-notes.md
Created June 29, 2015 17:39
Git notes cheat sheet