codegent code

View manifest.json
1 2 3 4 5 6 7 8 9 10
 
{
"name": "Speak Thai",
"description": "Reads out selected thai text",
"version": "0.1",
"permissions": ["contextMenus"],
"background": {
"scripts": ["speak-thai.js"]
},
"manifest_version": 2
View user_flask_appengine.py
1 2 3 4 5 6 7 8 9 10
from flask import g, session
from google.appengine.api import users
 
class GuestUser(object):
def email(self):
return None
def nickname(self):
return 'Guest'
View game.coffee
1 2 3 4 5 6 7 8 9 10
 
# Compile: coffee -c game.coffee
# Run: coffee game.coffee
# Dependencies: underscore.js / userscore.coffee and backbone.js
 
# Check if the libs we need are already defined
# When running in browser you will need to bundle or add script tags to include these libs
if not _?
require('underscore')
if Backbone?
View bagoftricks.js
1 2 3 4 5 6 7 8 9 10
var noop = function(){};
var console = window['console'] || {log: noop, debug: noop, info: noop, warn: noop, error: function(args){alert(args);}};
var loadScriptTag = function(src, loaded, callback) {
if(loaded()){
callback();
return;
}
console.log("Loading missing javascript.", "swfobject", src);
var scriptTag=document.createElement('scr'+'ipt');
scriptTag.type = 'text/javascript';
View codegent-party.txt
1 2 3 4 5 6 7 8 9
New house/office warming and codegent's 6th birthday party.
 
When:
 
Friday April 30th, 7PM until late.
 
Where:
 
95 Sena Nikom 1 Soi 23, Pahon-yotin 32 Road, Ladprao, Bangkok 10230
View anywhere.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>index</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="mustache.js"></script>
<script type="text/javascript" src="app.js"></script>
View apps.py
1 2 3 4 5 6 7 8 9 10
class App(object):
def __init__(id, name,
default=False, selected=False, groups=['misc'],
description="", icon="app-icons_default.png"):
self._id = id
self._name = name
self._groups = groups
self._default = default
self._selected = selected
View lazymodel.py
1 2 3 4 5 6 7 8 9 10
import gaerun
from google.appengine.ext import db
 
class LazyModelMixin:
@classmethod
def get_put_by_key_name(cls, key_name, **kwargs):
object = cls.get_by_key_name(key_name) or cls(key_name=key_name, **kwargs)
if object.is_saved:
View patch_mako.py
1 2 3 4 5 6 7 8 9 10
# -*- coding: utf-8 -*-
 
# WARNING: THIS CODE MAY HURT YOUR EYES.
 
import logging, os
 
def patch_mako():
import os, logging
from mako import template as template_module
from mako.lookup import TemplateLookup
View compress_ids.py
1 2 3 4 5 6 7 8 9 10
 
""" dump any string to formatted hex output """
def dump(s):
import types
if type(s) == types.StringType:
return dumpString(s)
elif type(s) == types.UnicodeType:
return dumpUnicodeString(s)
 
FILTER = ''.join([(len(repr(chr(x))) == 3) and chr(x) or '.' for x in range(256)])
Something went wrong with that request. Please try again.