- 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
source 'https://rubygems.org' | |
gem 'sinatra' | |
gem 'sinatra-contrib' |
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 |
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
digraph { | |
1 -> "Simple Nodes" -> | |
"http://graphviz-repl.herokuapp.com/intro-to-graphviz-1" | |
2 -> "Attributes = Lables, Colors, Styles" -> | |
"http://graphviz-repl.herokuapp.com/intro-to-graphviz-2" | |
3 -> "Subgraphs" -> | |
"http://graphviz-repl.herokuapp.com/intro-to-graphviz-3" |
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
<html> | |
<body> | |
<a onclick="window.external.AddSearchProvider('https://gist.githubusercontent.com/caseywatts/c385e6c7fc3e8d923093/raw/7d0c69332ea7c9ae4490f55a3d2c71f9b99403cd/whois-cc.xml');" href="#">Add Continuity Control Directory Search By Name</a> | |
</body> | |
</html> |
Short link to this page: http://caseywatts.com/slugify
Other gists & tricks: http://caseywatts.com/gists-and-tricks
For a given pivotal card that's open, create an appropriate github branch name for it - including the id
and ticket title
.