Skip to content

Instantly share code, notes, and snippets.

View jeiting's full-sized avatar

Jacob Eiting jeiting

View GitHub Profile
{
"id": "Bloon",
"content": {
"default" : {
"description": "Default",
"adapter": {
"type": "SimpleConceptAdapter",
"config": {
"question": "foreign_word",
"answer": "native_word",
{"description":null,"requires_image":true,"lesson_pack":"english-geography","info":null,"identifier":"lesson","requires_audio":false,"pack_type":"vocabulary","ignored":false,"requires_photo":true,"name":"US Geography","data":[{"description":"_Example sentence\nAfter the Montgomery Bus Boycott, Alabama became a center for the African-American Civil Rights Movement.\n","pounce_content":{"sentences":["After the Montgomery Bus Boycott, _ became a center for the African-American Civil Rights Movement."],"correct_answer":"Alabama","incorrect_answers":["Georgia","North Carolina","Arkansas","Mississippi"]},"landmark":"Gulf Shores","nickname":"Heart of Dixie","abbreviation":"AL","identifier":"alabama","photo_filename":"alabama.png","motto":"We dare defend our rights.","name":"Alabama","secondary_city":"Birmingham"},{"description":"_Example sentence\nThe State of Alaska accounts for 1/6 of the nation's total area.\n","pounce_content":{"sentences":["The State of _ accounts for 1/6 of the nation's total area."],"correct_
Mixin = {}
function Mixin.extend(obj, table)
local super = {}
for funcName, func in pairs(functionsTable) do
if object[funcName] then
super[funcName] = object[funcName]
object.super = super
end
object[funcName] = func
-- Created by Alexey Chernikov on Feb 19, 2013
require ("Mixin")
Group = {}
------------------------------------------------------------ BOUNDS LOGIC ----------------------------------------------
-- Moai propagates transformations with parent-child relationships, but it does not calculate bounds based on those transformations
-- This extends moai to update bounds for a hierarchy of transformed scene objects
---------------------------------------------------------- SORT LOGIC --------------------------------------------
-- Moai has support for primitive sort modes, but no general mechanism for sorting added/removed complex elements.
//
// FDRSparklineView.m
// roosevelt
//
// Created by Jacob Eiting on 4/7/13.
// Copyright (c) 2013 Jacob Eiting. All rights reserved.
//
#import "FDRSparklineView.h"
#import "FDRRecording.h"
-- cached, sound played based on the name for the sound effect, rather than the file name
SoundManager.load("dropped_bass", "assets/droppbass.ogg")
SoundManager.playSound("explosion") -- Sounds that aren't preloaded are loaded automatically
SoundManager.playMusic("dropped_bass")
Incident Identifier: [TODO]
CrashReporter Key: [TODO]
Hardware Model: iPhone4,1
Process: eve [9855]
Path: /var/mobile/Applications/9AE39034-0CB3-424E-B97B-6589D116E768/eve.app/eve
Identifier: com.minomonsters.eve
Version: 862
Code Type: ARM
Parent Process: launchd [1]
@jeiting
jeiting / fragshader.fsh
Created September 10, 2012 00:14
YcRcBA Compositing with GLSL
varying highp vec2 v_texCoord;
uniform sampler2D u_YTex;
uniform sampler2D u_cRTex;
uniform sampler2D u_cBTex;
uniform sampler2D u_ATex;
void main()
{
if key in authed_keys and not session.data['is_admin']:
# FAIL
conn.rollback()
request.setResponseCode(403,"Forbidden bro!")
return "Forbidden bro!"
def remove(self, uid = None):
"""Remove an element with UID = uid from the queue."""
if (uid is None):
raise qManagerException("remove: Provide a UID for removal.")
if (not self.lockFlag):
the_elem = None
for elem in self:
Log.debug("found UID %s" % elem['UID'])
if (elem['UID'] == uid):
the_elem = elem