A recreation in SVG of the pleasing gradient in the background of the Stripe: Checkout page.
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
require "formula" | |
class PipeLogger < Formula | |
homepage "" | |
url "https://github.com/hkjels/pipe-logger/archive/master.tar.gz" | |
sha1 "6ec4754bc4dd0b27f1ec53a6ce5ec15860dc9d07" | |
def install | |
system "make install" | |
end |
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 '[datomic.api :only [q db] :as d]) | |
(def uri "datomic:mem://accounts") | |
;; create database | |
(d/create-database uri) | |
;; connect to database | |
(def conn (d/connect uri)) |
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> | |
circle { | |
stroke: #fff; | |
} | |
</style> | |
<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
(function (win, _, d3, format){ | |
var canvas = d3.select("body").append("svg:svg") | |
.attr("viewbox", format("0 0 %s %s", 1920, 1080)) | |
.attr("width", format("%spx", win.innerWidth)) | |
.attr("height", format("%spx", win.innerHeight)); | |
function counter(num, x, y, r){ |
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
<?php | |
$date = strtotime('today'); | |
if (date('D', $date) == 'Fri') { | |
$sentences = array( | |
'en fest med', | |
'i dag blir det', | |
'konge!! ', | |
'Can you dig it! ', | |
'På menyen i dag har vi', | |
'Ikke no kebab her nei!' |
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
Loading /Users/Henrik/.emacs.d/core/core-load-paths.el (source)...done | |
Loading /Users/Henrik/.spacemacs...done | |
(Spacemacs) Setting font "Hack"... | |
(Spacemacs) Banner: /Users/Henrik/.emacs.d/core/banners/img/spacemacs.png | |
Mark set [2 times] | |
Loading /Users/Henrik/.emacs.d/.cache/spacemacs-buffer.el (source)...done | |
(Spacemacs) Executing user init... | |
(Spacemacs) Calling dotfile layers... | |
(Spacemacs) -> Discovered configuration layer: themes-megapack | |
(Spacemacs) -> Discovered configuration layer: syntax-checking |
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
/** | |
*/ | |
config = require('yaml').eval( | |
require('fs') | |
.readFileSync(process.env['HOME'] + '/.clickatell.yml') | |
.toString('utf-8') | |
); | |
var clickatell = require("../lib/clickatell.js"); | |
clickatell = new clickatell(config) |
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
// When I send "req.body", the entire object is sent correctly | |
"data" : req.body // {'key':value, 'key':value} | |
// However, if I prepend the key "settings". Only the key is passed a long with a blank string | |
"data" : { "settings" : req.body } // { 'settings' : '' } | |
// Same result if I build the object separately | |
data = {} | |
data["settings"] = req.body | |
"data" : data // { 'settings' : '' } |
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
/*! | |
* Routes | |
*/ | |
app.param('title', routes.precondition) | |
app.get('/', routes.tasks) | |
app.get('/task/:title', routes.task) |
OlderNewer