View config
Host DOMAIN | |
HostName NAME | |
User USERNAME | |
IdentityFile PRIVATE_KEY_FILE | |
IdentitiesOnly yes |
View .bash_profile
test -f ~/.profile && . ~/.profile | |
test -f ~/.bashrc && . ~/.bashrc |
View vscode-update.sh
#!/bin/sh | |
echo 'Beginning Visual Studio Code update.' | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' | |
sudo dnf check-update | |
sudo dnf install code |
View 1_brocbab_pre-promise.js
// Unfinished - before throwing up hands and moving on to refactor | |
Babel.prototype.write = function(readTree, destDir) { | |
var self = this; | |
return readTree(self.inputTree).then(function(srcDir) { | |
var promise = new rsvp.Promise(function(resolve, reject) { | |
recreaddir(srcDir, function(err, files) { |
View es6_eli5.txt
Foreword | |
=== | |
These short descriptions will familiarize you with new things in ES6, | |
quickly and simply. | |
A lot of details are ignored to aid this purpose. This content is only intended | |
as a starting point or brief refresher. | |
Most of the descriptions use pre-ES6 JavaScript as a frame of reference. |
View objectObserveDebugging.js
// By observing changes to an object with Object.observe, | |
// and turning on Async Call Stacks in Chrome Dev Tools, | |
// you can find the source of those changes. | |
var myObject = { | |
foo: 'bar' | |
}; | |
Object.observe(myObject, function(changes) { | |
// This asynchronous callback runs when myObject is changed |
View rem-calibrate.css
/* Android stock browser won't let you set font-size smaller than 8px unless you apply this. */ | |
:root { | |
-webkit-text-size-adjust: none; | |
-moz-text-size-adjust: none; | |
-ms-text-size-adjust: none; | |
-o-text-size-adjust: none; | |
text-size-adjust: none; | |
} |
View stars.css
* { | |
/* makes border and padding grow inward from width & height | |
- mix-and-match units for various box model properties | |
- ex. width: 25%; padding: 15px; | |
- no workie in IE7 | |
*/ | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
/* hiding overflow creates a block formatting context |
View gist:2220593
<table> | |
<caption>2009 Employee Sales by Department</caption> | |
<thead> | |
<tr> | |
<td></td> | |
<th scope="col">food</th> | |
<th scope="col">auto</th> | |
<th scope="col">household</th> | |
<th scope="col">furniture</th> | |
<th scope="col">kitchen</th> |
View dabblet.css
/* Improved Windows 8 Logo */ | |
* { | |
font-family: "Myriad Pro"; | |
font-size: 96px; | |
} | |
body { | |
padding: 50px; | |
color: #646464; | |
} |
NewerOlder