I hereby claim:
- I am 1083 on github.
- I am maxwell (https://keybase.io/maxwell) on keybase.
- I have a public key ASAxxqOBYC3e3e-tp8oRkleM5p_Mu_Fk1mbbzB1SMUTdFwo
To claim this, I am signing this object:
// Whether string starts with vowel sound | |
function isLeadingVowel(it) { | |
return ['a', 'e', 'i', 'o', 'u'].includes(it[0].toLowerCase()); | |
} | |
// "A" or "an" for given string | |
function getArticle(it) { | |
return isLeadingVowel(it) ? 'an' : 'a'; | |
} |
#!/bin/bash | |
# This script installs the dependencies required by cypress.io tool | |
# on amazon linux AMI as the required dependencies are not easily available. | |
# path of dynamic executable of cypress | |
# for ex. /home/ec2-user/.cache/Cypress/3.0.1/Cypress/ | |
CYPRESS_EXECUTABLE_FOLDER="/home/ec2-user/.cache/Cypress/3.1.5/Cypress" | |
exitError() { |
var d = new Date(); | |
var lastModified = "Last Modified " + moment(d).fromNow() + " (" + moment.utc(d).format('MMMM Do YYYY, h:mm:ss A UTC') + ")"; |
rsync -av -e 'ssh -p PORT' --update ~/directory user@IP:directory |
I hereby claim:
To claim this, I am signing this object:
# Change screenshot directory | |
defaults write com.apple.screencapture location ~/Screenshots | |
killall SystemUIServer | |
# Show dotfiles | |
defaults write com.apple.finder AppleShowAllFiles -bool YES | |
killall Finder |
#element { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} |
Simple Lightbox (modal window with semi-transparent background) |
//Public client interface | |
function Client(applicationId, masterKey) { | |
this.applicationId = "applicationId"; | |
this.masterKey = "masterKey"; | |
} | |
exports.Client = Client; | |
//Parse API endpoint | |
var ENDPOINT = 'https://api.parse.com/1/classes/'; |
function param(key) { | |
var params = {} | |
window.location.search.substr(1).split("&").forEach(function(it) { | |
var slots = it.split("=") | |
params[slots[0]] = slots[1] == "true"? true : | |
slots[1] == "false"? false : | |
slots[1] | |
}) | |
param = function(key) { | |
return params[key] |