Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // MultiExporter.jsx | |
| // Version 0.1 | |
| // Version 0.2 Adds PNG and EPS exports | |
| // Version 0.3 Adds support for exporting at different resolutions | |
| // Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
| // Version 0.5 Fixed cropping issues | |
| // Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
| // | |
| // Copyright 2013 Tom Byrne | |
| // Comments or suggestions to tom@tbyrne.org |
| # Android | |
| platforms/android/assets/www | |
| platforms/android/bin/ | |
| platforms/android/gen/ | |
| platforms/android/res/xml/config.xml | |
| # iOS | |
| platforms/ios/build/ | |
| platforms/ios/CordovaLib/build/ | |
| platforms/ios/www |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| -- | |
| -- Person's unoptimized query | |
| -- | |
| QUERY PLAN | |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| Seq Scan on keyword_tracked_tweets (cost=0.06..484854.06 rows=50015 width=172) (actual time=16639.692..32543.957 rows=1 loops=1) | |
| Filter: ((id)::double precision = trunc((random() * ($1)::double precision))) | |
| InitPlan 2 (returns $1) | |
| -> Result (cost=0.05..0.06 rows=1 width=0) (actual time=0.045..0.047 rows=1 loops=1) |
| #!/usr/bin/env python | |
| # Written by Limor "Ladyada" Fried for Adafruit Industries, (c) 2015 | |
| # This code is released into the public domain | |
| import time | |
| import os | |
| import RPi.GPIO as GPIO | |
| GPIO.setmode(GPIO.BCM) |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| after "deploy:symlink", "deploy:restart_workers" | |
| after "deploy:restart_workers", "deploy:restart_scheduler" | |
| ## | |
| # Rake helper task. | |
| # http://pastie.org/255489 | |
| # http://geminstallthat.wordpress.com/2008/01/27/rake-tasks-through-capistrano/ | |
| # http://ananelson.com/said/on/2007/12/30/remote-rake-tasks-with-capistrano/ | |
| def run_remote_rake(rake_cmd) | |
| rake_args = ENV['RAKE_ARGS'].to_s.split(',') |
| /etc/hosts: | |
| 127.0.0.1 myhost jboss_server | |
| NGINX: | |
| server { | |
| listen myhost:80; | |
| server_name myhost; | |
| location / { | |
| proxy_set_header X-Real-IP $remote_addr; |
| # Recursively diff two hashes, showing only the differing values. | |
| # By Henrik Nyh <http://henrik.nyh.se> 2009-07-14 under the MIT license. | |
| # | |
| # Example: | |
| # | |
| # a = { | |
| # "same" => "same", | |
| # "diff" => "a", | |
| # "only a" => "a", | |
| # "nest" => { |