Skip to content

Instantly share code, notes, and snippets.

View arjamizo's full-sized avatar

Artur Zochniak arjamizo

  • Poland
View GitHub Profile
@RobertAKARobin
RobertAKARobin / python.md
Last active April 18, 2024 20:44
Python Is Not A Great Programming Language
@shvchk
shvchk / Install Signal Desktop as a standalone app.md
Last active November 8, 2017 08:20
Deprecated, please use official standalone Signal Desktop: https://signal.org
@gkucmierz
gkucmierz / new_generator.js
Last active November 25, 2016 00:36
Implementation of new generator creation from string
let Generator = (function*(){}).constructor;
// function Generator(...a) {
// let [args, body] = a;
// if (a.length === 0) [args, body] = [[], ''];
// if (a.length === 1) [args, body] = [[], a[0]];
// return new Function(`return function*(${args.join(',')}){${body}};`)();
// }
@paulirish
paulirish / bling.js
Last active May 1, 2024 19:56
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@jafingerhut
jafingerhut / inputstream.clj
Created July 8, 2014 15:01
Example of reading java.io.InputStream in Clojure
(ns inputstream.core
(:require [clojure.java.io :as io]))
(defn read-is [^java.io.InputStream is]
(let [bufsize 8192
buf (byte-array bufsize)]
(loop [total-len 0]
(let [n (.read is buf)]
(cond
@willurd
willurd / web-servers.md
Last active May 7, 2024 14:57
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000