defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
View snippet.md
View placeholder.md
.placeholder {
background: #ededed
border-bottom: 0.1rem solid #ededed;
padding: 10rem 2rem;
text-align: center;
}
View index.html
<select className="form-control ignore" id="currency" name="currency"> | |
<option value="36">AED - United Arab Emirates Dirham</option> | |
<option value="175">AFN - Afghan Afghani</option> | |
<option value="38">ALL - Albanian Lek</option> | |
<option value="39">AMD - Armenian Dram</option> | |
<option value="176">ANG - Netherlands Antillean Guilder</option> | |
<option value="177">AOA - Angolan Kwanza</option> | |
<option value="42">ARS - Argentine Peso</option> | |
<option value="19">AUD - Australian dollar</option> | |
<option value="178">AWG - Aruban Florin</option> |
View .eslintrc
{ | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"env": { | |
"jest": true | |
}, | |
"plugins": ["react", "react-native"], | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { |
View tslint.json
{ | |
"rulesDirectory": ["node_modules/codelyzer"], | |
"rules": { | |
"arrow-return-shorthand": true, | |
"callable-types": true, | |
"class-name": true, | |
"deprecation": { | |
"severity": "warn" | |
}, | |
"forin": true, |
View index.html
<div class="container"> | |
<div class="logo row"> | |
<div class="twelve column"> | |
<button id="myBtn">Open Modal test</button> | |
</div> | |
</div> | |
<div id="grid"> |
View react-firebase-auth.js
/* | |
* This is a version of Facebook's React Conditional Rendering | |
* example modified to support firebase authentication. | |
* https://facebook.github.io/react/docs/conditional-rendering.html | |
*/ | |
import React, { Component, PropTypes } from 'react'; | |
import * as firebase from 'firebase'; | |
function UserAvatar(props) { |
View fkeys.app
tell application "System Preferences" | |
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard" | |
end tell | |
tell application "System Events" to tell process "System Preferences" | |
click checkbox 1 of tab group 1 of window 1 | |
end tell | |
quit application "System Preferences" |
View luhn.js
/** | |
* Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers | |
* @author ShirtlessKirk. Copyright (c) 2012. | |
* @license WTFPL (http://www.wtfpl.net/txt/copying) | |
*/ | |
var luhnChk = (function (arr) { | |
return function (ccNum) { | |
var | |
len = ccNum.length, | |
bit = 1, |
View .editorconfig
# EditorConfig is awesome: http://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
charset = utf-8 | |
# Matches multiple files with brace expansion notation |
NewerOlder