This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pbxproj -crlf -diff -merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twilio | |
import subprocess | |
import time | |
import sys | |
ACCOUNT = "AXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
AUTH = "CNNNNNNNNNNNNNNNNNNNNNNNNNN" | |
API_VERSION = '2008-08-01' | |
account = twilio.Account(ACCOUNT, AUTH) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----> 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
OlderNewer