Skip to content

Instantly share code, notes, and snippets.

Ryan Billingsley ryanbillingsley

Block or report user

Report or block ryanbillingsley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Ability and Spec
class Ability
include CanCan::Ability
def initialize(user)
user ||=
case user.role
when "admin"
can :manage, :all
View MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
View connect_async_basic_auth
cluster = require('cluster')
http = require('http')
connect = require('connect')
request = require('request')
sys = require('sys')
done = (success) ->
console.log("FN!" + success)
ryanbillingsley / DTMFSingle.xml
Created Jan 30, 2012
Simple Single Digit DTMF GRXML file
View DTMFSingle.xml
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<grammar xml:lang="en-US" version="1.0" root="ROOT" mode="dtmf" tag-format="swi-semantics/1.0" xml:base="file://C:/Billingsley/" xmlns="">
<rule id="ROOT" scope="public">
View gitcommit.rb
def building_commit
i = 0
body = "tree #{@tree}
parent #{@parent}
author CTF user <> #{@timestamp} +0000
committer CTF user <> #{@timestamp} +0000
Give me a Gitcoin #{i}"
ryanbillingsley / PointOnCircle.m
Created Apr 22, 2014
Finds a point on a circle with a given radius and degree
View PointOnCircle.m
#define RADIANS_TO_DEGREES(radians) ((radians) * (180.0 / M_PI))
#define DEGREES_TO_RADIANS(degrees) ((degrees) * (M_PI / 180.0))
- (CGPoint)determinePointOnCircleWithRadius:(int)radius Degree:(int)degree Center:(CGPoint)startPoint
float midX = startPoint.x + radius * cos(DEGREES_TO_RADIANS(degree));
float midY = startPoint.y + radius * sin(DEGREES_TO_RADIANS(degree));
return CGPointMake(midX, midY);
ryanbillingsley /
Last active Nov 14, 2016
Jason Snell's Automator service that converts to AIFF via ffmpeg.
for i in "$@" ; do /Users/jsnell/ffmpeg -i "$i" -map 0:0 -acodec pcm_s161e -ac 1 -out_sample_rate 44100 "${i%.*}.wav" ;


Follow the steps below to install Team City 8.1 on Ubuntu 12.04 with Nginx as the proxy for port 80.

Install Team City:

# will install on port 8111
sudo wget -c -O /tmp/

Keybase proof

I hereby claim:

  • I am ryanbillingsley on github.
  • I am ryanbillingsley ( on keybase.
  • I have a public key whose fingerprint is 192A 752F 7020 D730 B999 9359 71D7 977D 1F3F 01DA

To claim this, I am signing this object:

View logs.txt
[0mGET /manifests/cd0ea095 200 10.433 ms - 112
Validating start url...
Building the project... { content:
{ start_url: '',
short_name: 'WwwBamideasCom' },
format: 'w3c' } D:\home\site\wwwroot\tmp\cd0ea095 [ 'windows', 'android', 'ios', 'chrome', 'firefox' ] false
Generating the Windows application...
Generating the Chrome application...
Generating the Firefox application...
Generating the Cordova application...
You can’t perform that action at this time.