I hereby claim:
- I am davydog187 on github.
- I am davydog187 (https://keybase.io/davydog187) on keybase.
- I have a public key ASCubMQiKyFLw51a6aaD4uJXgcFPAhFbgDwoHgPd-bNEjAo
To claim this, I am signing this object:
let timeout = null; | |
let requestCount = 0; | |
let queue = []; | |
function schedule(limit) { | |
if (!timeout) { | |
timeout = setTimeout(() => throttleQueue(limit), 1000) | |
} | |
} |
defmodule App.Ecto.Atom do | |
@moduledoc """ | |
Generates an Ecto custom type for atoms. | |
e.g. | |
defmodule MyType do | |
use App.Ecto.Atom, values: [:one, :two, :three] | |
end |
I hereby claim:
To claim this, I am signing this object:
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
" .vimrc | |
" !silent is used to suppress error messages if the config line | |
" references plugins/colorschemes that might be missing | |
" Disable Vi compatibility | |
set nocompatible | |
if has("autocmd") | |
" Load files for specific filetypes |
javascript:(function() {const ads = Array.from(document.querySelectorAll(".ad-wrapper")).forEach(ad => ad.parentNode.removeChild(ad));const blur = Array.from(document.querySelectorAll(".entry-content")).forEach(thing => thing.style.webkitFilter = "none");})(); |
function test() {} | |
test.prototype.number = 5; | |
var a = new test | |
var b = new test | |
b.number // 5 | |
b.hasOwnProperty("number") // false <- false because number is on the prototype | |
b.number = 10 // now were assigning to number, putting it on the instance |
function makeBootstrappingLoader(scriptBody, clientAppUrl, isAsync) { | |
var loadAsync = isAsync ? "s.async = true;\n" : ""; | |
return "<script type=\"text/javascript\">\n" + | |
"var s = document.createElement(\"script\");\n" + | |
"s.setAttribute(\"src\", \"" + clientAppUrl + "\");\n" + | |
"document.body.insertBefore(s, null)\n"+ | |
loadAsync + | |
"function loaded(e) {\n" + | |
scriptBody + "\n" + | |
"s.removeEventListener(\"load\", loaded, false);\n" + |