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
(function () { | |
function c() { | |
var e = document.createElement("link"); | |
e.setAttribute("type", "text/css"); | |
e.setAttribute("rel", "stylesheet"); | |
e.setAttribute("href", f); | |
e.setAttribute("class", l); | |
document.body.appendChild(e) | |
} | |
function h() { |
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
#!/usr/bin/env python | |
'''docclass.py: Language classifier''' | |
__author__ = "Rob Skillington" | |
from math import sqrt, log | |
import re, os, sys, getopt | |
DEFAULTS = { |
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
class Request : NSObject { | |
func send(url: String, f: (String)-> ()) { | |
var request = NSURLRequest(URL: NSURL(string: url)) | |
var response: NSURLResponse? | |
var error: NSErrorPointer = nil | |
var data = NSURLConnection.sendSynchronousRequest(request, returningResponse: &response, error: error) | |
var reply = NSString(data: data, encoding: NSUTF8StringEncoding) | |
f(reply) | |
} |
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
Blatantly borrowed from StackOverflow | |
Uninstall MySQL 5.6.12: | |
brew unlink mysql | |
brew uninstall mysql | |
Go to the homebrew directory: | |
cd /usr/local | |
Go to version 5.6.10 (you can find a list of versions by running brew versions mysql: |
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
// Anonymize | |
(function () { | |
Function.prototype.callAsync = function () { | |
var self = this, args = arguments, result = {returned:false}; | |
setTimeout(function () { result.returnVal = self.apply(self, args); result.returned = true; }, 0); | |
return result; | |
} | |
})(); |
NewerOlder