made with esnextbin
made with esnextbin
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
do shell script "curl -o /tmp/gloockler.jpg http://i.imgur.com/Z25yiba.jpg" | |
tell application "Finder" | |
tell application "System Events" | |
set theDesktops to count of desktops | |
repeat with x from 1 to theDesktops | |
tell desktop x | |
set picture to POSIX file "/tmp/gloockler.jpg" | |
end tell | |
end repeat |
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
'use strict'; | |
var webpack = require('webpack'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
module.exports = { | |
devtool: 'eval', | |
entry: [ | |
'webpack-dev-server/client?http://localhost:3000', | |
'webpack/hot/only-dev-server', |
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
(def start [1 2 3 4 5 6 7 8 9 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9]) | |
(def filter-not-nil (partial filter (comp not nil?))) | |
(defn match? [v1 v2] | |
(and v1 v2 (or (= v1 v2) (= 10 (+ v1 v2))))) | |
(defn find-match [tiles i1 incr] | |
(let [t1 (tiles i1)] | |
(loop [i2 (+ incr i1)] |
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
blabla boot -vvv development | |
registering src/cljs [:create :modify] | |
registering src/cljs/blabla [:create :modify] | |
sending change event | |
watch service closed | |
registering src/cljs [:create :modify] | |
registering src/cljs/blabla [:create :modify] | |
registering resources [:create :modify] | |
sending change event | |
<< started reload server on ws://localhost:51128 >> |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: 'Courier New', Helvetica, Arial, sans-serif; | |
width: 960px; | |
height: 500px; | |
position: relative; | |
} |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
width: 960px; | |
height: 500px; | |
position: relative; | |
} |
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
(def dates [[14 4] [12 4] [15 3] [13 3] [10 3] [1 1]]) | |
(defn get-num-date [[day month]] | |
(+ month (* 0.1 day))) | |
(defn part-dates | |
([coll] | |
(let [curdate (apply max-key get-num-date coll)] | |
(part-dates coll curdate))) | |
([coll [day month]] |