Click "raw" below to install. Requires Google Chrome, Firefox + Greasemonkey, or some other browser supporting user scripts / content scripts / user javascript.
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
| sudo apt-get install --assume-yes python-software-properties | |
| sudo apt-add-repository ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install --assume-yes nodejs | |
| sudo apt-get install --assume-yes git | |
| # Install Graphite | |
| sudo apt-get install python-dev ruby-dev bundler build-essential libpcre3-dev graphite-carbon graphite-web | |
| cat >> /tmp/graphite-carbon << EOF | |
| # Change to true, to enable carbon-cache on boot |
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
| Moved to | |
| https://github.com/romannurik/android-swipetodismiss |
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
| # Title: Fancyimage tag for Jekyll | |
| # Authors: Devin Weaver (photos_tag.rb), Brian M. Clapper (img_popup.rb), Patrick Paul (this gist) | |
| # Description: Takes full size image, automagically creates thumbnail at specified size, +fancybox | |
| # | |
| # Adapted from: | |
| # http://tritarget.org/blog/2012/05/07/integrating-photos-into-octopress-using-fancybox-and-plugin/ | |
| # (photos_tag.rb) https://gist.github.com/2631877 | |
| # (img_popup.rb) https://github.com/bmc/octopress-plugins/ | |
| # | |
| # Syntax {% photo filename [tumbnail] [title] %} |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.30093687772750854</real> | |
| <key>Green Component</key> | |
| <real>0.36639997363090515</real> |
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
| #!/bin/bash | |
| #Requires ImageMagick to be installed. | |
| #Some builds of ImageMagick on OSX have problems generating the images correctly. | |
| #This script scales and creates images at the correct dpi level for Android. | |
| #It gets placed in a folder called res/drawable/source_images/ in your #Android project along with all your svg files. | |
| #When creating svg files set the image size to the size that you want your hdpi images to be. | |
| #To use simply run the create_images script from its folder and it will generate images for all the svg files. |
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
| from geventwebsocket.handler import WebSocketHandler | |
| from gevent.pywsgi import WSGIServer | |
| from flask import Flask, request, render_template | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def index(): | |
| return render_template('index.html') |
NewerOlder