This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dt.XCode IDEIndexDisable 1 | |
defaults write com.apple.dt.XCode IDEIndexDisable 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "QuickTime Player" | |
open file "YOUR FILE" | |
activate | |
set the looping of document 1 to true | |
set the bounds of the first window to {-1920, 0, 0, 1080} | |
end tell | |
tell application "System Events" | |
keystroke "f" using command down | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on idle | |
tell application "System Events" | |
set ProcessList to name of every process | |
if "YOUR_APPNAME" is not in ProcessList then | |
tell application "YOUR_APPNAME" to launch | |
end if | |
end tell | |
return 30 | |
end idle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = PlusFreqScopeWindow.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)init | |
{ | |
self = [super init]; | |
if (self) | |
{ | |
NSLog(@"%@: %@", NSStringFromSelector(_cmd), self); | |
} | |
return self; | |
} | |
- (void)dealloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on idle theObject | |
set x to (do shell script "diskutil list") | |
if "ramdisk" is not in x then | |
try | |
do shell script "diskutil erasevolume HFS+ 'ramdisk' `hdiutil attach -nomount ram://8388608`" | |
end try | |
end if | |
return 60 | |
end idle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
t = Task ({ | |
inf.do ({ | |
var dataList, en_subject, jp_subject; | |
dataList = Array.new; | |
en_subject = ""; | |
jp_subject = ""; | |
x = DOMDocument.new; | |
x.parseXML( "curl --request GET \ --header \"X-ApiKey: APIKEY\" \ http://api.cosm.com/v2/feeds/87638.xml".unixCmdGetStdOut; ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = DOMDocument.new; | |
x.parseXML( "curl --request GET \ --header \"X-ApiKey: APIKEY_HERE\" \ http://api.cosm.com/v2/feeds/FEED_NUM.xml".unixCmdGetStdOut; ); | |
m = x.getElementsByTagName("data"); | |
m.do({arg item; | |
var child; | |
v = item.getAttribute("id"); | |
child = item.getChildNodes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PORT 5000 | |
#import "ofmain.h" | |
#include "ofxOsc.h" | |
#include "User.h" | |
class OSCThreadedObject : public ofThread { | |
private: | |
ofxOscReceiver receiver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
s.waitForBoot { | |
var rootPath, window, view, | |
drawBuf, bufnum, sound, task, | |
width, height, fps, curX, curY, pixSize, | |
processFunc, loadFile; | |
// initial settings | |
rootPath = "/path/to/root/dir"; | |
pixSize = 5; |