Skip to content

Instantly share code, notes, and snippets.

View andrewroth's full-sized avatar

Andrew Roth andrewroth

  • Power to Change Ministries
  • Ontario, Canada
View GitHub Profile
<choices>
<choice>A</choice>
<value>1</value>
<choice>B</choice>
<value>0</value>
</choices>
@andrewroth
andrewroth / 0_reuse_code.js
Created January 3, 2016 01:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
=> ["ASCII", "ASCII", "3D Studio", "3D Studio Project", "3ds Max", "Alias StudioTools", "Alias Wire", "AutoCAD drawing", "Autodesk DWF", "Autodesk FBX", "Autodesk Inventor", "Blender", "Bryce", "Bryce", "Catia", "Character Studio Biped", "Cinema 4D", "Collada", "DirectX", "DXF", "Electric Image", "formZ", "gmax", "IGES", "JSR-184", "Lightwave", "Luxology Modo", "Maya", "Microsoft DirectDraw Surface", "MicroStation Drawing File", "Mudbox", "OBJ", "OpenFlight", "OpenInventor", "Parasolid", "Poser", "Poser", "ProE Assembly", "ProE Part", "Pulse", "Quake III", "Quickdraw 3D", "Realsoft 3D", "Renderman", "Revit Design", "Revit Family", "Rhino", "Shade", "Shockwave 3D", "SketchUp", "Softimage", "Softimage", "Solidworks Assembly", "Solidworks Part", "STEP", "StereoLithography", "Strata 3D", "Textures", "TrueSpace", "TrueSpace", "TrueSpace Object", "TrueSpace Scene", "Universal 3D", "VRML", "VRML", "Vue", "ZBrush", "Other", "AVI", "3D Studio Material Library", "MIDI Audio Files", "WAV", "Compuserve GIF", "JPEG", "Kod
/var/www/creativecrash/current/log/login_stats
January Logins:
(9..31).each do |i| j = "%02d" % i; cmd = "egrep '\\[#{j}\/Jan\/2012.* \"POST /session' access-secure.log* | wc -l"; result = `#{cmd}`; puts "#{i}: #{result}" end
9: 765
10: 2597
11: 2148
12: 1986
// ==UserScript==
// @name mint.com Net Total
// @description Shows net total on Transactions tab.
// @include https://wwws.mint.com/transaction.event*
// ==/UserScript==
window.addEventListener('load', function() {
//add commas between every 3 digits
var add_commas = function(nStr) {
(rdb:123) self.level1_cats.collect &:permalink
["scripts-plugins", "general", "animation", "characters", "particles-fx", "general", "materials-and-texturing", "modeling", "scripting-api", "lighting", "rendering", "animating", "editing", "cg", "3dsmax", "movies", "gimp", "renderman", "photoshop", "3dsmax-1", "3dsmax-2", "xsi", "macros", "maya", "materials", "general", "traditional-concepts", "xsi", "maya-general", "maya-gamers", "lightwave", "programming", "softimage", "texturing", "compositing", "cinematography", "animation", "lighting", "maya", "anatomy", "3dsmax", "render-theory", "applications", "alias", "shake", "dynamics", "character", "animating", "online-schools", "paint-fx-brushes", "zbrush", "training-center", "university", "general", "paint-fx-faq", "maya-fur-faq", "hardware-install", "softimage", "shake", "motion", "scripts-plugins", "scripts-plugins", "scripts-plugins", "shake-list", "alias-list", "maya-developers", "shaders", "shaders", "shaders", "shaders", "softimage3d-list", "xsi-general-list"
h3d@web:~$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
stats
STAT pid 4924
STAT uptime 1306021
STAT time 1320859842
STAT version 1.4.5
STAT pointer_size 64
/Library/Ruby/Gems/1.8/gems/sheldond_fgs-1.2.3/lib/factory_girl/factory.rb:60:in `define': Factory already defined: login_code_1 (Rails::Initializer::Factory::DuplicateDefinitionError)
from /Users/andrewroth/Development/ministry-tracker/vendor/plugins/mh_common/test/factories/login_codes.rb:2
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.10/lib/active_support/dependencies.rb:184:in `require'
from ./test/unit/../test_helper.rb:7
from ./test/unit/../test_helper.rb:6:in `each'
from ./test/unit/../test_helper.rb:6
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:29:in `require'
--(15:53)-- $ !cap
cap deploy target=prod
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_deploy)
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@git.26am.com:ccc360.git master"
===========
Born April 13, 1946 in Forest City, Arkansas, Al Green began singing in his family’s gospel group. His distinctive vocal talent and extraordinar
===========
A Reverse Chronology of Selected Significant Dates &amp; Events"Bird could be the only performer who's lit up both Lollapalooza and Bonnaroo with a com
===========
It's 12:52 in the morning and I'm at a hotel in Springfield, Ohio.My new record is called When The Devil's Loose. To me it sounds like a radio washed a
===========
===========
Asie Payton died of a heart attack on May 19, 1997, in Holly Ridge, Mississippi. It occurred in the early afternoon, while he was driving a tractor in