Skip to content

Instantly share code, notes, and snippets.

View nuex's full-sized avatar
👾

Chase James nuex

👾
  • Lexington, KY
View GitHub Profile

Keybase proof

I hereby claim:

  • I am nuex on github.
  • I am nuex (https://keybase.io/nuex) on keybase.
  • I have a public key whose fingerprint is 2F0C E0A6 5AED D09C 0819 0B30 1F90 A3C0 A420 BEBD

To claim this, I am signing this object:

@nuex
nuex / groupify
Created September 8, 2014 16:11
I hate permissions
#!/bin/sh
# Run this in your current directory to chmod files and directories with
# default permissions to allow group access.
find . -type f -perm 644 -print -exec chmod 664 {} \;
find . -type d -perm 744 -print -exec chmod 774 {} \;
@nuex
nuex / hacker_evocation.md
Last active August 29, 2015 14:07
hacker evocation

hacker evocation

These are albums and tracks that evoke hacker intention.

Mostly ambient albums so far.

  • The Social Network (album) - Trent Reznor and Atticus Ross
  • Plume (album) - Loscil
  • Ghosts (album) - Monolake
@nuex
nuex / standup
Created January 9, 2015 05:28
Say something in a Slack channel without being there.
#!/bin/sh
#
# Say something in a slack channel.
#
# Usage:
#
# standup 't: doing a thing'
#
# Finding Values:
#
@nuex
nuex / gist:11630
Created September 19, 2008 18:26
little lib for parsing Yahoo! Store XML
require 'rubygems'
require 'roxml'
class Pricing
include ROXML
xml_name "Pricing"
xml_text :base_price, "BasePrice"
xml_text :localized_base_price, "LocalizedBasePrice"
end
The Polls Tab:
Creating polls is handled through the Polls tab in the admin area. When creating a new poll give the poll a title and add all of its options. You can also view poll results from this area. By clicking on the poll from the poll listing, a breakdown of responses per question is shown.
Rendering a submission form:
To render a submission form, start off with the <r:poll title="My Poll"> tag so that all child tags can reference the poll given in the title attribute. The <r:form> tag starts the submission form. Usually you will want to render each poll option that user’s can choose from. The <r:options:each> tag iterates through each poll option. Within this tag, you can use <r:input /> to render the radio button and <r:title /> to render the option’s text. <r:submit /> render’s the form’s submit button.
Rendering the results:
Use <r:options:each> and <r:title /> to render each option and its text. To render the number of responses for the current option, use <r:number_responses />. To render the
@nuex
nuex / gist:109410
Created May 9, 2009 21:32
jQuery-like getJSON function in ActionScript 3
/*
* jQuery-like getJSON function in ActionScript 3
*
* Used like:
*
* get_json('http://somehost.com/my.json', function(data) {
* trace(data);
* });
*
* Requires the AS3 Core Libraries: http://code.google.com/p/as3corelib/
set :application, '{project}'
set :repository, 'ssh://code.myhost.net/var/git/{project}.git'
set :web_command, 'sudo apache2ctl'
desc 'Staging environment'
task :staging do
set :repository, '/var/git/{project}.git'
set :environment, 'staging'
set :domain, 'staging1'
set :deploy_to, '/var/staging/{project}'
var cart_total_without_shipping = null;
var cart_tax_without_shipping = null;
/*
* Because IE isn't DOM level 3 compliant
*/
function
cart_element_text(element) {
if (element.text()) {
return element.text();