- Go to
c9.io
and log in - Create a new workspace
Workspace name
=practice-static-site
Clone from Git or Mercurial URL
=https://gist.github.com/f4f1dc512ffdce293aa1.git
- (everything else at defaults)
This file contains 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
def fizzbuzz(x) | |
# your | |
# code | |
# goes | |
# here | |
puts "(change me I am a placeholder string)" | |
end | |
This file contains 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains 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
// modified from answers on http://stackoverflow.com/questions/5433806/convert-embedded-svg-to-png-in-place | |
// Takes an SVG element as target | |
function svg_to_png_data(target) { | |
var ctx, mycanvas, svg_data, img, child; | |
// Construct an SVG image | |
var new_width = target.width.baseVal.valueInSpecifiedUnits; | |
var new_height = target.height.baseVal.valueInSpecifiedUnits; |
This file contains 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
gem install nokogiri -v '1.6.6.2' -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-iconv-dir=/usr/local/opt/libiconv --with-xml2-dir=/usr/local/opt/libxml2 --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config | |
gem install nokogumbo -v '1.4.1' -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-iconv-dir=/usr/local/opt/libiconv --with-xml2-dir=/usr/local/opt/libxml2 --with-xml2-config=/usr/local/opt/libxml2/bin/xml2-config --with-xml2-include=/usr/local/opt/libxml2/include/libxml2 --with-xslt-config=/usr/local/opt/libxslt/bin/xslt-config |
UPDATE: Actually, doing this with `reopen` is apparently deprecated. Back to creating actual objects for relationships -_-
don't do this below stuff
Stubbing relationships in model unit tests
// model
export default DS.Model.extend({
This bookmarklet takes you from a youtube video page to the listenonrepeat page for that video
- Save this bookmarklet. Right-click on boomarks toolbar
Add Page...
- Name:
yt∞
or whatever you'd like (maybe short so it stays on your bookmarks toolbar) - URL:
javascript:(document.location.href = document.location.href.replace('youtube.com', 'listenonrepeat.com'))();
- When on a youtube video page, click this bookmarklet to be taken to the listenonrepeat page 🎉
brew install Caskroom/cask/wineskin-winery
- Open app "Wineskin Winery"
- Click "Create New Blank Wrapper" and name it "WindowsSteam"
- Right click on app "WindowsSteam" and click "show package contents"
- Open "Wineskin" app that lives inside the "WindowsSteam" app
- "Advanced"
- "middle tab"
- "winetricks"
- "update winetricks"
- Install
dotnet45
Other gists & tricks: http://caseywatts.com/gists-and-tricks
#Autorefresh Terminal History For giving presentations.
I've been trying to find a way to show an audience the recent terminal commands I've been calling. I can easily imagine doing this in a separate terminal window that just auto-refreshes showing the history of commands recently called.
I decided to try a ruby script! (Bash would be fine too, just comfort)
###Obtaining the history