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
#!/usr/bin/env python | |
from csvkit.convert.js import json2csv | |
from collections import OrderedDict | |
from flask import Flask | |
import rethinkdb as r | |
import json, StringIO | |
config = { | |
"port": 8096, |
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 alfred_script(q) | |
tell application "Google Chrome" | |
activate | |
tell application "System Events" | |
repeat with p in paragraphs of q | |
repeat with w in p | |
keystroke "" & w | |
delay (random number from 0.01 to 0.2) | |
end repeat | |
keystroke return |
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
using System; | |
using Cocos2D; | |
using Box2D.Dynamics; | |
using Box2D.Common; | |
using Box2D.Collision.Shapes; | |
using Microsoft.Xna.Framework; |
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
using System; | |
using System.Drawing; | |
using MonoMac.Foundation; | |
using MonoMac.AppKit; | |
using Leap; | |
namespace XamMacLeap | |
{ |
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
diff --git a/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs b/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs | |
index 76c2416..eb36a38 100644 | |
--- a/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs | |
+++ b/src/Microsoft.AspNet.SignalR.Core/Messaging/MessageBroker.cs | |
@@ -19,7 +19,7 @@ public class MessageBroker : IDisposable | |
{ | |
private readonly Queue<ISubscription> _queue = new Queue<ISubscription>(); | |
- private readonly IPerformanceCounterManager _counters; | |
+ //private readonly IPerformanceCounterManager _counters = null; |
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
using System; | |
using System.Net; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Text.RegularExpressions; | |
using SQLite; |
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
import json, urllib2 | |
CLIENT_IP = "xxxx" | |
CLIENT_ID = "xxxx" | |
def build_url(endpoint): | |
return "http://{0}/api/{1}/{2}".format(CLIENT_IP, CLIENT_ID, endpoint) | |
def send(endpoint, value): | |
url = build_url(endpoint) |
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
<html> | |
<head> | |
<title>HTML5 Photo Booth</title> | |
<style> | |
#live { | |
-webkit-filter: sepia(0.8); | |
} | |
</style> | |
</head> | |
<body> |
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 "Google Chrome" | |
make new window with properties {mode:"incognito"} | |
tell application "System Events" to set frontmost of process "Google Chrome" to true | |
end tell |