Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
# Download the file manually from here https://launchpad.net/gcc-arm-embedded | |
# Note: `curl` command doesn't work | |
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2" | |
# double click it to unzip it | |
# Make a place to install it to | |
mkdir /usr/local/gcc_arm | |
# Move the unzipped stuff there. |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
// animated route transition workaround for ember | |
// this workaround only deals with the current view | |
// if you need to animate the new and the old view in parallel this won't help you. | |
App.ApplicationRoute = Ember.Route.extend({ | |
actions: { | |
willTransition: function(transition){ | |
if(!this.isInTransition){ | |
// stop transition until animation is complete |
xs = "(min-width: 0px) and (max-width: 767px)" | |
sm = "(min-width: 768px) and (max-width: 991px)" | |
md = "(min-width: 992px) and (max-width: 1199px)" | |
lg = "(min-width: 1200px)" |
convert image.png -resize 40 txt:-|sed -E 's/://;s/\( ? ?//;s/, ? ?/,/g;s/\)//;s/([0-9]+,[0-9]+,[0-9]+),[0-9]+/\1/g;s/255/254/g;/mage/d'|awk '{print $1,$2}'|sed -E 's/^0,[0-9]+ /print "echo;tput setaf "\;/;s/^[0-9]+,[0-9]+ /print "tput setaf ";/;s/(.+),(.+),(.+)/\1\/42.5*36+\2\/42.5*6+\3\/42.5+16/'|bc|sed 's/$/;echo -n " ";/'|tr '\n' ' '|sed 's/^/tput rev;/;s/; /;/g;s/$/tput sgr0;echo/'|bash
import os | |
import readline | |
import rlcompleter | |
import atexit | |
history_file = os.path.join(os.environ['HOME'], '.python_history') | |
try: | |
readline.read_history_file(history_file) | |
except IOError: |
/* | |
* Formatter for Selenium 2 / WebDriver Python client. | |
*/ | |
var subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader); | |
subScriptLoader.loadSubScript('chrome://selenium-ide/content/formats/webdriver.js', this); | |
function testClassName(testName) { | |
return testName.split(/[^0-9A-Za-z]+/).map( | |
function(x) { |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).