This file contains 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
(third-impact) third-impact (mysqlclient) ✗ python manage.py test kawaz.apps | |
Creating test database for alias 'default'... | |
Got an error creating the test database: (1007, "Can't create database 'test_kawaz_development'; database exists") | |
Type 'yes' if you would like to try deleting the test database 'test_kawaz_development', or 'no' to cancel: yes | |
Destroying old test database for alias 'default'... | |
.....................................................FF.F..FFFFF...........FFFFFFFFFF......................................................FF.................................F.F.FFFF......F......FFFFFF...............................................................................................F.F......F........FFFFFF........................................................................................................F..........................................................................................................................E.E..F............FFF.....FFFFFFFFFFFFFFF................................. |
This file contains 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
:Creating test database for alias 'default'... | |
.....................................................FF.F..FFFFF...........FFFFFFFFFF......................................................FF.................................F.F.FFFF......F......FFFFFF...............................................................................................F.F......F........FFFFFF........................................................................................................F..........EEEE....E.......................................................................................................E.E..F............FFF.....FFFFFFFFFFFFFFF....................................... | |
====================================================================== | |
ERROR: test_member_can_create_package_release_via_product_form (kawaz.apps.products.tests.test_views.ProductCreateViewTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/giginet/third-impact/src/kawa |
This file contains 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.open('members.csv', 'r') do |file| | |
file.each_line do |line| | |
name, email, _, _ = line.split(',') | |
puts "#{name} <#{email}>" | |
end | |
end |
This file contains 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 UIKit | |
import PureLayout | |
extension CollectionType where Generator.Element == NSLayoutConstraint { | |
func autoInstallConstraints() { | |
(self as! NSArray).autoInstallConstraints() | |
} | |
func autoRemoveConstraints() { | |
(self as! NSArray).autoRemoveConstraints() |
This file contains 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
infix operator ||= { associativity left precedence 150 } | |
public func ||= <T>(lhs: inout T?, rhs: T?) { | |
if lhs == nil { lhs = rhs } | |
} | |
var a: Int? = nil | |
a ||= 10 | |
print(a) |
This file contains 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
fn main() { | |
for n in 0..100 { | |
if n % 15 == 0 { | |
println!("FizzBuzz") | |
} else if n % 5 == 0 { | |
println!("Buzz") | |
} else if n % 3 == 0 { | |
println!("Fizz") | |
} else { | |
println!("{}", n) |
This file contains 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 sys | |
import math | |
import wave | |
import array | |
DURATION = 3 | |
FREQUENCY = 440 | |
VOLUME = 100 | |
SAMPLERATE = 44100 | |
DATASIZE = 2 |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# -*- coding: utf-8 -*- | |
# | |
# cocos2d-x-icon-generator.py | |
# created by giginet on 2014/02/27 | |
# | |
import sys | |
from PIL import Image | |
SIZES = ( | |
(29, 29), | |
(40, 40), |