Skip to content

Instantly share code, notes, and snippets.

View jeiting's full-sized avatar

Jacob Eiting jeiting

View GitHub Profile
// ==========================================================================
// Project: ExposureView
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals ExposureView */
/** @namespace
My cool new framework. Describe your framework.
// ==========================================================================
// Project: ExposureView
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals ExposureView */
/** @namespace
My cool new framework. Describe your framework.
// ==========================================================================
// Project: ExposureViewer.mainController
// Copyright: ©2010 My Company, Inc.
// ==========================================================================
/*globals ExposureViewer StandardViews*/
/** @class
(Document Your Controller Here)
// This is in the controller
formatExposureTitle: function () {
SC.RunLoop.begin();
var value = ExposureViewer.getPath('exposureNumber.value');
console.log(value);
console.log('formattedExposure!');
this.set('formattedExposure','Exposure #' + value);
SC.RunLoop.end();
}.observes('ExposureViewer.exposureNumber','ExposureViewer.exposureNumber.value')
progressBools: SC.WellView.design({
layout: {
top: 151, centerX: 0, height: 50, right:5, left:5
},
childViews: 'view1'.w(),
view1: SC.View.design({})
})
progressBar: SC.ProgressView.design({
layout: {
left: 5,
right: 5,
top: 30
},
value: 50,
minimum: 0,
maximum: 100
})
// ==========================================================================
// Project: VariableViewer.appController
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals VariableViewer SharedVariableEngine*/
/** @class
(Document Your Controller Here)
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
if key in authed_keys and not session.data['is_admin']:
# FAIL
conn.rollback()
request.setResponseCode(403,"Forbidden bro!")
return "Forbidden bro!"
@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()
{