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 python | |
| import os, sys | |
| from gevent import monkey | |
| monkey.patch_all() | |
| import settings | |
| import django.core.handlers.wsgi | |
| from socketio import SocketIOServer |
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
| worker_processes 1; | |
| user http users; | |
| pid /tmp/nginx.pid; | |
| error_log /tmp/nginx.error.log; | |
| events { | |
| worker_connections 1024; | |
| accept_mutex off; | |
| } |
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
| # Haskell style pattern matching using: | |
| # https://github.com/jfd/match-js/blob/master/match.js | |
| {Match, incl } = require './match.js' | |
| _ = Match.incl | |
| print = console.log | |
| fib = Match( | |
| 0, -> 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
| import sys | |
| from cStringIO import StringIO | |
| sys.path = [ | |
| '/opt/pypy-sandbox', | |
| '/opt/pypy-sandbox/lib_pypy', | |
| '/opt/pypy-sandbox/lib-python/modified-2.5.2', | |
| '/opt/pypy-sandbox/lib-python/2.5.2', | |
| '/opt/pypy-sandbox/lib-python/2.5.2/plat-linux2' | |
| ] |
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
| {-# LANGUAGE OverloadedStrings #-} | |
| {- To Run: | |
| Load in ghci | |
| :set -XOverloadedStrings (for convenience) | |
| Execute repl expr -} | |
| import Control.Applicative | |
| import Data.Attoparsec hiding (Result) | |
| import Data.Attoparsec.Char8 (char8, isDigit_w8, isSpace_w8) |
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
| pkgbase=libwebkit | |
| pkgname=(libwebkit libwebkit3) | |
| pkgver=1.4.0 | |
| pkgrel=1 | |
| pkgdesc="An opensource web content engine" | |
| arch=('i686' 'x86_64') | |
| url="http://webkitgtk.org/" | |
| license=('custom') | |
| depends=('libxt' 'libxslt' 'sqlite3' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant') | |
| makedepends=('gperf' 'gtk-doc' 'gobject-introspection' 'python2' 'gtk2') |
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
| (function(jQuery) { | |
| $(document).ready(function() { | |
| var html_ns = document.body.namespaceURI, | |
| mml_ns = "http://www.w3.org/1998/Math/MathML"; | |
| window.mml_ns = mml_ns; | |
| document.html_ns = html_ns; | |
| document.mml_ns = mml_ns; |
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 Observer | |
| bind : (event, fn) -> | |
| this._events ||= {} | |
| this._events[event] ||= [] | |
| this._events[event].push(fn) | |
| unbind: (event, fn) -> | |
| @_events ||= {} |
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
| Copyright 2011 Kristopher Michael Kowal. All rights reserved. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to | |
| deal in the Software without restriction, including without limitation the | |
| rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
| sell copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in | |
| all copies or substantial portions of the Software. |
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
| encrypt = lambda msg: pow(int(''.join(map(lambda x: str('%.3d' % ord(x)),msg))), 65537, 5551201688147) | |
| decrypt = lambda code: (lambda y: ''.join([chr(int(y[i:i+3])) for i in range(0, len(y), 3)]))(str(pow(code, 109182490673, 5551201688147))) |