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
BEGIN TRANSACTION; | |
PRAGMA foreign_keys = OFF; | |
CREATE TABLE manifest ( | |
key TEXT NOT NULL UNIQUE, | |
value TEXT | |
); | |
CREATE UNIQUE INDEX ix_manifest_key ON manifest (key); |
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
ARCH=$1 | |
PREFIX="$2" | |
IFS=. read -a TRIPLE <<< "$IP" | |
GMP="gmp-5.0.5" | |
MPFR="mpfr-3.1.1" | |
MPC="mpc-0.9" | |
BINUTILS="binutils-2.22" | |
GCC="gcc-4.7.1" | |
LLVM="llvm-3.1" |
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
static inline int disable_interrupts(void) | |
{ | |
int r; | |
__asm__ __volatile__( | |
"pushfd;" | |
"cli;" | |
"pop %0;" | |
: "=mr"(r) | |
); |
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
/** REMOVED **/ | |
OGRE_AUTO_MUTEX | |
Resource objects are no longer thread safe, except for getting their state | |
and reference counting | |
virtual void prepareImpl(void) | |
virtual void unprepareImpl(void) | |
virtual void prepare(bool backgroundThread = false); | |
virtual bool isPrepared(void) const | |
virtual void _firePreparingComplete(bool wasBackgroundLoaded); |
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 zope.interface import Interface | |
from zope import schema | |
class IMediaLink(Interface): | |
duration = schema.Int(required=False) | |
height = schema.Int(required=False) | |
width = schema.Int(required=False) | |
url = schema.URI(required=True) | |
class IObject(Interface): |
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
template<typename T, T V> | |
class get_member; | |
template<typename Class, typename T, T Class::* Pointer> | |
class get_member<T Class::*, Pointer> | |
{ | |
public: | |
inline T& operator()(Class& c) | |
{ | |
return c.*Pointer; |
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
@ | |
@ Exception table | |
@ | |
.syntax unified | |
.section .exception_table | |
.globl __reset, __undefined, __svc, __pfabort, __dtabort, __irq | |
.align 2 | |
ARM_FUNCTION __reset | |
blx _reset |
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
Add: | |
def change_summary(field, value): | |
if len(value) < 40: | |
return '{0} set to "{1}"'.format(field, value) | |
else: | |
return '{0} updated'.format(field) | |
At notifico/services/hooks/jira.py line 178, change to: | |
if simplified['changes']: | |
changes = simplified['changes'] |
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
template<typename TObj, typename TFn, typename... TArgs> | |
typename std::result_of<TFn(TArgs...)>::type with(TObj&& obj_, TFn fn, TArgs... args) | |
{ | |
TObj obj(std::move(obj_)); | |
return fn(std::foward(args)...); | |
} | |
template<typename TMutex> | |
std::lock_guard<TMutex>&& locked(TMutex& mtx) | |
{ |
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
// Hello world | |
print "Hello world"; | |
// Some maths | |
// assign min & max as module scope variables | |
max = {(a, b) ^a > b? a : b}; | |
min = {(a, b) ^a < b? a : b}; | |
// ^ means return | |
// a & b will be new local variables |
NewerOlder