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
(defun custom-color--choose-action (widget &optional _event) ; this function is only needed if you want to use color-picker in Easy Customization | |
"customize `widget-color--chose-action' to not split the screen" | |
(list-colors-display | |
nil nil | |
`(lambda (color) | |
(when (buffer-live-p ,(current-buffer)) | |
(widget-value-set ',(widget-get widget :parent) color) | |
(pop-to-buffer ,(current-buffer)))))) | |
(defun nscolor2hex (color) |
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
;;; Replace entity with the schema | |
{:find [...] | |
:in [...] | |
:where [...]} | |
;;; eav | |
[?e ?a ?v ?tx] | |
;;; txInstant |
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
(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
# http://www.mono-project.com/Compiling_Mono_on_OSX | |
require 'formula' | |
class Mono < Formula | |
url 'http://download.mono-project.com/sources/mono/mono-3.2.0.tar.bz2' | |
sha1 '23268df312906ff7f58f15b11bb030e323cde822' | |
homepage 'http://www.mono-project.com/' | |
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) |