Moved and maintaining this here: http://patricksimpson.me/posts/intro-to-polymer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Rolls back the latest release" | |
task :rollback => :environment do | |
queue! %[echo "-----> Rolling back to previous release for instance: #{domain}"] | |
# Delete existing sym link and create a new symlink pointing to the previous release | |
queue %[echo -n "-----> Creating new symlink from the previous release: "] | |
queue "echo `cat #{deploy_to}/last_version` | ruby -e 'p gets.to_i-1'" | |
queue! "echo `cat #{deploy_to}/last_version` | ruby -e 'p gets.to_i-1' | xargs -I active ln -nfs '#{deploy_to}/releases/active' '#{deploy_to}/current'" | |
# Remove latest release folder (active release) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this in your terminal -- this will fix your harvest clock back to HH:MM | |
# After you run the command, restart harvest. | |
# Buy sizzle a coffee. | |
defaults write com.getharvest.harvestxapp TimeFormat hours_minutes | |
# or | |
defaults write ~/Library/Preferences/com.getharvest.harvestx.plist TimeFormat hours_minutes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ctrl + A Go to the beginning of the line you are currently typing on | |
Ctrl + E Go to the end of the line you are currently typing on | |
Ctrl + L Clears the Screen, similar to the clear command | |
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. | |
Ctrl + H Same as backspace | |
Ctrl + R Let’s you search through previously used commands | |
Ctrl + C Kill whatever you are running | |
Ctrl + D Exit the current shell | |
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it. | |
Ctrl + W Delete the word before the cursor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Really Light Ember Theme | |
#E8E6E8, #F6EAE7, #F77159, #FFFFFF, #FFBEB3, #F23818, #F25100, #FF8669 | |
Ember Theme by @aars | |
#F8EFEC ,#E1563F ,#1E719B ,#FFFFFF ,#C8BFBC ,#333322 ,#F1569F ,#EB4D5C | |
Ember Theme by @kuatsure | |
#F4ECE9 ,#F3735D ,#F2D1CB ,#444444 ,#F2D1CB ,#444444 ,#E1563F ,#E1563F | |
Ember Theme by @yock (Reduced Contrast) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin.php | |
165: @ini_set('display_errors', 1); | |
index.php | |
173: @ini_set('display_errors', 1); | |
system/codeigniter/system/libraries/Upload.php | |
833: ini_set('memory_limit', $new_memory); | |
system/expressionengine/libraries/Core.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
general: | |
artifacts: | |
- "~/artifact_example.tar.gz" | |
machine: | |
php: | |
version: 5.6.2 | |
test: | |
override: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MY_KEY = Symbol(); | |
let obj = { | |
[MY_KEY]: 123 | |
}; | |
"use strict"; | |
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var removeURLParam = function (url, parameter) { | |
var fragment = url.split('#'), | |
urlparts= fragment[0].split('?'), | |
urlBase = '', | |
queryString = '', | |
prefix = '', | |
pars = null, | |
i = 0; | |
if (urlparts.length>=2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int led = D0; | |
void setup() { | |
// This part is mostly the same: | |
pinMode(led,OUTPUT); // Our LED pin is output (lighting up the LED) | |
Particle.subscribe("opendoor", myOpen); | |
Particle.subscribe("closedoor", myClose); | |
digitalWrite(led, HIGH); | |
delay(2500); |