Skip to content

Instantly share code, notes, and snippets.

View kyleconroy's full-sized avatar
⌨️
Developing sqlc

Kyle Gray kyleconroy

⌨️
Developing sqlc
View GitHub Profile
File Out: blank.png, 500 x 500
Backgorund Color: [0.9 0.9 0.9]
Eye: [0 0 0]
Viewport:
UL: [-1 1 -1]
LL: [1 1 -1]
UR: [1 -1 -1]
LR: [-1 -1 -1]
Materials:
Material: 0
File Out: blank.png, 500 x 500
Background Color: [0.9 0.9 0.9]
Eye: [0 0 10]
Viewport:
UL: [-1 1 -1]
LL: [-1 -1 -1]
UR: [1 1 -1]
LR: [1 -1 -1]
Materials:
Material: 0
#material name ambient(rgb) diffuse(rgb) specular(rgb) reflection(rgb) power opacity
material rock .1 0 0 .8 .2 .2 .8 .8 .8 0 0 0 32 .5
material paper .1 0 0 .2 .8 .2 .8 .8 .8 0 0 0 32 .5
material scissors .1 0 0 .2 .2 .8 .8 .8 .8 0 0 0 32 .5
#real 5m41.435s
#user 5m26.402s
#sys 0m2.091s
#scene
#!/usr/bin/env ruby
require 'twiliolib'
# Twilio REST API version
API_VERSION = '2008-08-01'
# Twilio AccountSid and AuthToken
ACCOUNT_SID = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
ACCOUNT_TOKEN = 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY'
@kyleconroy
kyleconroy / .gitattributes
Created February 23, 2010 22:18
.gitignore and .gitattributes for XCode
*.pbxproj -crlf -diff -merge
import twilio
import subprocess
import time
import sys
ACCOUNT = "AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
AUTH = "CNNNNNNNNNNNNNNNNNNNNNNNNNN"
API_VERSION = '2008-08-01'
account = twilio.Account(ACCOUNT, AUTH)
class FootballWeek (models.Model):
season = models.IntegerField(default=2012, editable=False)
week = models.IntegerField()
startdate = models.DateTimeField()
enddate = models.DateTimeField()
winning_team_points = models.PositiveIntegerField(default=0)
winning_team_bonus = models.PositiveIntegerField(default=0)
-----> Heroku receiving push
-----> Python app detected
-----> Preparing virtualenv version 1.7
New python executable in ./bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
-----> Activating virtualenv
-----> Installing dependencies using pip version 1.0.2
Downloading/unpacking numpy (from -r requirements.txt (line 1))
Creating supposed download cache at /app/tmp/repo.git/.cache/pip_downloads
@kyleconroy
kyleconroy / gist:1713519
Created January 31, 2012 22:39 — forked from TMcManus/gist:1711143
Number Formatting Functions
<?php
/**
* This function will take a number in a variety of formats and reformat
* the number to be in E.164 format. Currently this is really, really ugly,
* but it works. substr() based function might also work. Currently US only.
*/
function normalizeNumber($number) {
$number = trim($number);
$number = preg_replace("/[^A-Za-z0-9]/", '', $number);
@kyleconroy
kyleconroy / test.py
Created April 20, 2012 21:40 — forked from RobSpectre/test.py
Failure to patch accurately
import unittest
from mock import patch
class Class:
def __init__(self):
self.foo = 'bar'
class TestClass(unittest.TestCase):
@patch('__main__.Class')
def test_class(self, MockClass):