Skip to content

Instantly share code, notes, and snippets.

{
"findItemsByKeywordsResponse":[
{
"ack":[
"Success"
],
"version":[
"1.12.0"
],
"timestamp":[
http = require 'http'
http.get 'http://www.lostfilm.tv', (resp) ->
htmlString = ''
resp.on 'data', (chunk) -> htmlString += chunk
resp.on 'end', ->
titleRegex = /<span class="torrent_title"><b>.+\((.+)\)<\/b><\/span>/g
while results = titleRegex.exec htmlString
console.log results[1].replace '<wbr>', ''
@t3chnoboy
t3chnoboy / gist:9859668
Last active August 29, 2015 13:57
Allow XSS
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security
@t3chnoboy
t3chnoboy / gist:9859920
Created March 29, 2014 18:35
Haskell unicode symbols
( (∈), (∋), (∉), (∌)
, (∅)
, (∪), (∖), (∆), (∩)
{-|
(&#x2208;) = 'member'
U+2208, ELEMENT OF
-}
Share your IT job interview experience.
>Came in
>they asked me whether I use linux
>say yes
>they asked me whether I use it as a desktop OS
>say yes
>get shown the way out
var add = function(x, y) { return x + y }
var mul = function(x, y) { return x * y }
var make = function(x, arr) {
if (typeof x == 'number') {
arr ? arr.push(x) : arr = [x]
return function(x) { return make(x, arr) }
} else return arr.reduce(x)
}
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/Cellar/ruby/2.1.2_2/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.6
Configured with: --prefix=/Applications/Xcode6-Beta.app/Contents/Developer//usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher

#Mocha

Much better async tests (via 'done')

Jasmine

describe("an async spec", function(){
 
 beforeEach(function(){
$ lein figwheel
Exception in thread "main" java.lang.IllegalArgumentException: No matching ctor found for class org.httpkit.server.HttpServer, compiling:(org/httpkit/server.clj:23:11)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6651)
at clojure.lang.Compiler.analyze(Compiler.java:6445)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6632)
at clojure.lang.Compiler.analyze(Compiler.java:6445)
at clojure.lang.Compiler.access$100(Compiler.java:38)
at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:6050)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)
at clojure.lang.Compiler.analyze(Compiler.java:6445)
Possibly confusing dependencies found:
[lein-ring "0.8.13"] -> [org.clojure/clojure "1.2.1"]
overrides
[lein-figwheel "0.2.2-SNAPSHOT"] -> [figwheel-sidecar "0.2.2-SNAPSHOT"] -> [clojurescript-build "0.1.2-SNAPSHOT"] -> [org.clojure/core.async "0.1.346.0-17112a-alpha"] -> [org.clojure/tools.analyzer.jvm "0.1.0-beta12"] -> [org.clojure/core.memoize "0.5.6"] -> [org.clojure/core.cache "0.6.3"] -> [org.clojure/data.priority-map "0.0.2"] -> [org.clojure/clojure "1.3.0"]
and
[lein-figwheel "0.2.2-SNAPSHOT"] -> [figwheel-sidecar "0.2.2-SNAPSHOT"] -> [clojurescript-build "0.1.2-SNAPSHOT"] -> [org.clojure/core.async "0.1.346.0-17112a-alpha"] -> [org.clojure/tools.analyzer.jvm "0.1.0-beta12"] -> [org.clojure/core.memoize "0.5.6"] -> [org.clojure/core.cache "0.6.3"] -> [org.clojure/clojure "1.4.0"]
and
[lein-figwheel "0.2.2-SNAPSHOT"] -> [figwheel-sidecar "0.2.2-SNAPSHOT"] -> [org.clojure/core.async "0.1.346.0-17112a-alpha"] -> [org.clojure/tools.analyzer.jvm "0.1.0-beta12"] -> [org.clojure/core.memoize "0.5.6"] ->