Skip to content

Instantly share code, notes, and snippets.

View edwardsharp's full-sized avatar
🥺
i'm a teapot

edward sharp edwardsharp

🥺
i'm a teapot
View GitHub Profile
@edwardsharp
edwardsharp / hotlist.pd
Created September 29, 2013 04:51
wondering about a better way, if going through a spigot, to get all the cold sliders to act like hot ones...
#N canvas 0 22 410 576 10;
#X obj 242 39 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 226.89 256;
#X obj 242 60 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 0 256;
#X obj 243 81 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 0 256;
#X obj 244 103 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 116.457 256;
#X obj 19 -225 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
var module = {
getUser: function() {
return this.user;
},
user: "jim user"
};
> undefined
module.getUser();
> "jim user"
//this could be another annon function!
@edwardsharp
edwardsharp / gist:5223010
Created March 22, 2013 17:07
pwirks CLOC
beuys-2:partywirks edward$ /Users/edward/src/tower/smc/edward/perl/cloc.pl .
2970 text files.
2742 unique files.
7937 files ignored.
http://cloc.sourceforge.net v 1.56 T=24.0 s (103.8 files/s, 12480.4 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
Javascript 496 17223 20020 96188
@edwardsharp
edwardsharp / uainit.js
Created October 9, 2012 04:36
#urbanairship
document.addEventListener("deviceready", function() {
// BEGIN UA PUSH NOTIFICATION INIT
push = window.pushNotification;
// Callback for when a device has registered with Urban Airship.
// https://docs.urbanairship.com/display/DOCS/Server%3A+Android+Push+API#ServerAndroidPushAPI-Registration
push.registerEvent('registration', function (id) {
console.log("Registered with ID: " + id)
});
// Callback for when the app is running, and recieves a push.
@edwardsharp
edwardsharp / e.js
Created August 15, 2012 02:24
cordova-2.0.0 FileWriter issue
var CREDENTIALS_FILE_NAME = "credentials.json";
var credentials;
// INIT -- Wait for PhoneGap to load
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, initCredentialReader, fail);
}
function initCredentialReader(fileSystem) {
fileSystem.root.getFile(CREDENTIALS_FILE_NAME, {create: true}, gotFileEntryReader, fail);
I’m fascinated with mutation as it applies to the human body and mind-- mutation that brings about change in physical form both immediately (repetitive physical exertion, being out of breath, responsiveness to the present, and so on) and the long term (stamina, choreography, memory, text, etc.). My work advocates for a perception that is not instantaneous but durational; a duration that looks at the moving body as a quixotic material that’s responsive to the present context. Performance might be happening all the time?
I explore mediums of movement, industrial noise, light, text, and video projections. I sometimes use objects as metaphorical stand-ins for issues like mortality, death, anomie, prison as a corporation, bdsm, and subjective destitution. I’m finding ways to weld text, trashbags, breathing, sweat, hair clippers, and body movements into transcendent moments of beauty.
@edwardsharp
edwardsharp / pd303b.pd
Created April 21, 2015 18:00
PD 303b (edward's sequencer thingy)
#N canvas 321 23 750 711 10;
#X declare -lib mrpeach;
#N canvas 108 23 1024 667 page-2 1;
#X obj 17 -1496 r pd303-p1;
#X obj -513 -1404 OSCroute /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 /11 /12 /13
/14 /15 /16;
#X obj 45 668 tgl 15 0 empty empty empty 17 7 0 10 -232576 -159808
-1 0 1;
#X obj -513 -1431 OSCroute /multitoggle1 /multitoggle2 /toggle2 /toggle3
;
#N canvas 546 24 945 631 10;
#X obj 35 54 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 35 74 openpanel;
#X msg 35 96 open \$1;
#X obj 11 235 pix_movie;
#X obj 35 130 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X msg 35 150 auto \$1;
#X text 61 128 LOOP;
@edwardsharp
edwardsharp / numpyTestProj.log
Last active August 29, 2015 14:11
numpyTestProj log
2014-12-09 10:02:48.117 numpyTestProj[4039:1771091] PythonHome is: /private/var/mobile/Containers/Bundle/Application/D643E332-4669-443D-90AF-E49CFF0257F7/numpyTestProj.app
2014-12-09 10:02:48.119 numpyTestProj[4039:1771091] Initializing python
2014-12-09 10:02:48.235 numpyTestProj[4039:1771091] Running main.py: /private/var/mobile/Containers/Bundle/Application/D643E332-4669-443D-90AF-E49CFF0257F7/numpyTestProj.app/main.py
Traceback (most recent call last):
File "/private/var/mobile/Containers/Bundle/Application/D643E332-4669-443D-90AF-E49CFF0257F7/numpyTestProj.app/main.py", line 1, in <module>
from numpy import *
ImportError: No module named numpy
2014-12-09 10:02:48.240 numpyTestProj[4039:1771091] Application quit abnormally!
2014-12-09 10:02:48.245 numpyTestProj[4039:1771091] Leaving
@edwardsharp
edwardsharp / build-scipy.sh.log00
Created December 2, 2014 06:36
build-scipy.sh.log00
eeeeee:kivy-ios edward$ tmp/Python-2.7.1/hostpython
Python 2.7.1 (r271:86832, Dec 1 2014, 16:11:42)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.54)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy