This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
// import UDP library | |
import hypermedia.net.*; | |
UDP udp; | |
void setup() { | |
udp = new UDP( this, 3054 ); //port from xbee wi-fi | |
udp.listen( true ); | |
} |
This file contains hidden or 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
this.car_select = $("#swipe-section").children("img"); | |
$('#carSelect').hammer({ | |
prevent_default: true, | |
drag_vertical: true, | |
release: true | |
}) | |
.on('drag dragend', function (ev) { | |
if (!self.isAnimating) { | |
var gest = ev.gesture; | |
switch (ev.type) { |