Skip to content

Instantly share code, notes, and snippets.

@101arrowz
101arrowz / crc32.js
Last active October 30, 2024 00:50
Fast CRC32 in JavaScript
/**!
* Fast CRC32 in JavaScript
* 101arrowz (https://github.com/101arrowz)
* License: MIT
*/
// If you use this code, please link this gist or attribute it somehow.
// This code uses the Slice-by-16 algorithm to achieve performance
// roughly 2x greater than all other JS CRC32 implementations (e.g.
@BusFactor1Inc
BusFactor1Inc / nock.lisp
Last active May 1, 2019 23:22 — forked from burtonsamograd/nock.lisp
A Nock Interpreter and Compiler in Common Lisp #Urbit
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; nock.lisp - The Interpretation and Compilation of Nock Programs.
;;
;; Nock is the Maxwell's Equations of Software. It is a language that
;; powers the Urbit virtual machine; its specification can fit on a
;; t-shirt[1].
;;
;; In this set of Common Lisp functions below are 'tar',
;; a Nock interpreter, 'dao', a Nock compiler and 'phi',
;; a Nock compiler driver.
@jupp0r
jupp0r / Demo.cpp
Created March 7, 2017 10:20
C++ function returning an ES6 promise
#include <node.h>
#include "Test.h"
namespace demo {
using v8::FunctionCallbackInfo;
using v8::Isolate;
using v8::Local;
using v8::Object;
@james2doyle
james2doyle / simulacra.index.html
Created November 23, 2015 00:56
Simulacra.js example using AJAX loaded data
<template id="tasks">
<h3 class="header"></h3>
<ul>
<li class="task"></li>
</ul>
</template>
<div id="app">
<!-- the rendered content will be thrown in here -->
</div>
@defunctzombie
defunctzombie / browser.md
Last active July 15, 2024 04:13
browser field spec for package.json