User @name @email @password_digest
Wallet @owner @balance
#!/usr/bin/env bash | |
# Usage: | |
# | |
# $ remote-env set A=1 B=2 | |
# $ remote-env unset A B | |
# | |
TARGET='app@54.84.22.17' | |
FILE='~/app/.env' |
function Calendar(input) { | |
this.input = $(input); | |
this.setDate(this.input.val() || moment(), 'MMMM D, YYYY'); | |
this.container = $('<div class="calendar"></div>'); | |
this.input.on('focus', $.proxy(function(e) { | |
this.open(); |
function table.has(t, needle) | |
for _, value in ipairs(t) do | |
if value == needle then return true end | |
end | |
return false | |
end | |
function table.each(t, closure) |
User @name @email @password_digest
Wallet @owner @balance
/* | |
Copyright (c) 2010 Ryan Schuft (ryan.schuft@gmail.com) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
// Simple file picking in JS | |
// by Arthur <arthur@corenzan.com> | |
// on Fri Feb 13 15:32:28 BRST 2015 | |
function openFilePicker(fn, multiple, accept) { | |
var input = document.createElement('input'); | |
input.type = 'file'; | |
input.accept = accept === undefined ? null : accept; | |
input.multiple = multiple === undefined ? true : multiple; |
/* Reference Grid with CSS gradient */ | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
body { | |
background: | |
repeating-linear-gradient(180deg, transparent 0, transparent 50%, rgba(0, 0, 0, .125) 50%, rgba(0, 0, 0, .125) 100%), |
/** | |
* CSS toolbar spacing using Flex | |
*/ | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
.row { |
// Debug CSS: bookmarklet to outline all elements randomizing its color. | |
// javascript: | |
;(function() { | |
[].forEach.call(document.querySelectorAll('*'), function(el) { | |
el.style.outline = '1px solid #' + (Math.random() * 100).toString(16).replace('.', '').slice(0, 6); | |
}); | |
}).call(this); |