Skip to content

Instantly share code, notes, and snippets.

@madbonkey
madbonkey / blog.fefe.de-plain.css
Created April 22, 2018 12:55
blog.fefe.de-plain.css
body {
width: 67.777%;
max-width: 720px;
margin: 0 auto;
font-family: 'Plantagenet Cherokee', Georgia, Baskerville, Palatino, Times, serif;
font-size: 15px;
line-height: 1.333334;
}
blockquote {
(ns myapp.typeahead
(:require [reagent.core :as r]
[goog.functions :as gf]
[myapp.api :as api]))
(defn input-control [props]
(let [value (r/atom (:default-value props ""))
local-change #(reset! value (.. % -target -value))]
(fn [{:keys [on-change] :as props}]
@madbonkey
madbonkey / music-channels.md
Last active December 25, 2015 20:19
Probably the best music in the world
#menu a {
color: #555;
}
#menu > p {
color: #232323;
}
#header .sh_sourceCode {
background-color: #272727;
@madbonkey
madbonkey / double-vs-single-quotes.php
Created May 23, 2012 13:54
PHP double vs single quotes
<pre>
<?php
$foo = 'bar';
echo $foo."\n".$foo;
echo "$foo\n$foo";
echo '$foo\n$foo';
?>
@madbonkey
madbonkey / helper.html_element.php
Created November 17, 2011 19:58
HTML Element function
<?php
if(!function_exists("html_element")) {
function html_element($element, $attributes, $innerHTML = false) {
if(empty($element) || empty($attribues) || !is_array($attributes))
return false;
$output = '<'.$element;
foreach($attribues as $attr => $val) {
if(empty($val))
$output .= ' '.$attr;
else