Skip to content

Instantly share code, notes, and snippets.

View rvklein's full-sized avatar

RVK rvklein

View GitHub Profile
@Jack-Works
Jack-Works / 2018.js
Last active March 1, 2024 02:23
cRAzY eSnEXt (*all* proposals mixed in)
#! Aaaaaaaaaaa this is JS!!!
// https://github.com/tc39/proposal-hashbang
// This file is mixing all new syntaxes in the proposal in one file without considering syntax conflict or correct runtime semantics
// Enjoy!!!
// Created at Nov 23, 2018
for await(const x of (new A // https://github.com/tc39/proposal-pipeline-operator
|> do { // https://github.com/tc39/proposal-do-expressions
case(?) { // https://github.com/tc39/proposal-pattern-matching
when {val}: class {
@schas002
schas002 / blum_blum_shub.js
Last active April 2, 2021 10:06
A Blum Blum Shub implementation in JavaScript.
/**
*** blum_blum_shub.js ***
An implementation of the Blum Blum Shub pseudorandom number generator proposed
in 1986 by Lenore Blum, Manuel Blum and Michael Shub that is derived from
Michael O. Rabin's oblivious transfer mapping.
Blum Blum Shub takes the form
2
@pgaultier
pgaultier / D302_RFID.md
Last active July 19, 2023 10:25
Cheap RFID Read/Writer EM4305 T5567

Cheap RFID (125kHz) Reader/Writer from China

The reader is labeled :

  • on the front : RF ID Reader
  • on the back : D302 EM Card Encoder MADE IN CHINA

This reader / writer should Work with cards : EM4305 and T5567.

// Insall WenQuanYi Micro Hei
*
:not [class*="code"] > *
{
font-family: "FontAwesome", "octicons", "icon","Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "WenQuanYi Micro Hei" !important;
}
[class*="code"] > *
{
font-family: "WenQuanYi Micro Hei Mono" !important;
@vkostyukov
vkostyukov / statuses.md
Last active June 13, 2024 16:30
HTTP status codes used by world-famous APIs
API Status Codes
[Twitter][tw] 200, 304, 400, 401, 403, 404, 406, 410, 420, 422, 429, 500, 502, 503, 504
[Stripe][stripe] 200, 400, 401, 402, 404, 429, 500, 502, 503, 504
[Github][gh] 200, 400, 422, 301, 302, 304, 307, 401, 403
[Pagerduty][pd] 200, 201, 204, 400, 401, 403, 404, 408, 500
[NewRelic Plugins][nr] 200, 400, 403, 404, 405, 413, 500, 502, 503, 503
[Etsy][etsy] 200, 201, 400, 403, 404, 500, 503
[Dropbox][db] 200, 400, 401, 403, 404, 405, 429, 503, 507
@dougireton
dougireton / recruiter_response.md
Last active January 11, 2020 22:52
I've started responding to recruiters with this list of requirements

Company Requirements

I'm definitely not looking for work. However to provide some helpful guidance for hiring like-minded engineers, I would only consider working for a company if it met these requirements:

  1. Fewer than 250 employees.
  2. Concrete, measurable plan to increase the number of women and minorities in engineering roles.
  3. Commitment to using and contributing to open source.
  4. Collaborative, friendly atmosphere where pair programming is encouraged.
  5. Meaningful work with clear linkage between work and company goals.
  6. Demonstrated commitment to ethical business practices, e.g. B corp certification.

Git Cheat Sheet

Commands

Getting Started

git init

or

@epixoip
epixoip / 8x980_init.md
Last active August 21, 2017 10:52
World's First 8x GTX 980 cudaHashcat Benchmark

This benchmark is outdated!

This benchmark was made with the first beta driver to support GM2xx chips. Unfortunately, it was a half-baked driver that failed to unleash this card's true potential. The production version of the driver resolved all performance issues with this card.

For the latest benchmarks, see https://gist.github.com/epixoip/abd64f1af800013abb1f

8x GTX 980 cudaHashcat Benchmark -- Inital

Product: Sagitta Brutalis 980 (PN S2480-GTX-980)

@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active July 9, 2024 15:53
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@blixt
blixt / TestingRNGs.md
Last active November 5, 2021 13:42
Testing random number generators with DieHarder

Testing RNGs with Dieharder

This guide is specifically for pseudo-random number generators (PRNGs) written in JavaScript, and tested in Mac OS X.

Prerequisites

Homebrew