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
// | |
// UIColor+SingleValue.h | |
// | |
// Created by Daniel Duan on 1/26/14. | |
// BSD License | |
// | |
#import <UIKit/UIKit.h> | |
@interface UIColor (SingleValue) | |
- (UIColor *)initWithInteger: (int32_t)integer; |
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
SASS_PATH = resources/sass | |
COFFEE_PATH = app | |
all: sass coffee | |
develop: watch server | |
server: | |
python3 -m http.server |
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 'sencha-touch/base'; | |
@import 'sencha-touch/base/all'; | |
@import 'sencha-touch/default'; | |
@import 'sencha-touch/default/all'; | |
// You may remove any of the following modules that you | |
// do not use in order to create a smaller css file. | |
@import 'sencha-touch/default/panel'; | |
@import 'sencha-touch/default/button'; | |
@import 'sencha-touch/default/sheet'; |
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
// from http://www.php.net/manual/en/language.types.string.php | |
<?php | |
// Show all errors. | |
error_reporting(E_ALL); | |
class beers { | |
const softdrink = 'rootbeer'; | |
public static $ale = 'ipa'; | |
} |
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
#!/usr/bin/python | |
''' Runs tests defined in package 'tests' ''' | |
from unittest import defaultTestLoader, TextTestRunner | |
TextTestRunner().run(defaultTestLoader.discover('tests', pattern='*.py')) |
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
# Authored by sundance@ierne.eu.org as found in the following link: | |
# http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg18928.html | |
import sys | |
from PyQt4 import QtCore | |
from PyQt4 import QtGui | |
from PyQt4.QtCore import QObject | |
from PyQt4.QtCore import QUrl | |
from PyQt4.QtCore import QSizeF |
NewerOlder