Skip to content

Instantly share code, notes, and snippets.

View sYnfo's full-sized avatar

Matej Stuchlik sYnfo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am sYnfo on github.
  • I am synfo (https://keybase.io/synfo) on keybase.
  • I have a public key whose fingerprint is 486C B878 8EE9 C6AD 8A20 D475 EB39 B9C7 8D9A 7ABE

To claim this, I am signing this object:

In file included from ../../src/codegen/codegen.cpp:30:
In file included from ../../src/codegen/baseline_jit.h:20:
In file included from ../../src/asm_writing/rewriter.h:28:
In file included from ../../src/asm_writing/assembler.h:21:
../../src/asm_writing/types.h:176:21: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value]
assert((-1L << 31) <= offset && offset < (1L << 31) - 1);
~~~ ^
/usr/include/assert.h:86:5: note: expanded from macro 'assert'
((expr) \
^
FreeIPA
Samba
clufter
fence-agents
python-suds
@sYnfo
sYnfo / queens.py
Created July 22, 2015 10:56
N-queens
len([v for v in permutations(range(n)) if n == len(set(v[i]+i for i in range(n))) == len(set(v[i]-i for i in range(n)))])
try:
json['foo']['bar']
json['foo']['baz']
except KeyError as e:
print "Missing {}".format(e.message)
try:
self.__root
except AttributeError:
self.__hardroot = _Link()
self.__root = root = _proxy(self.__hardroot)
root.prev = root.next = root
self.__map = {}