Skip to content

Instantly share code, notes, and snippets.

@timbophillips
timbophillips / local-fonts-icons-angular
Created January 1, 2019 00:44
host roboto font and material icons locally in angular app
//// npm install --save roboto-fontface material-icons
//// put the below stuff into src/styles.scss
// for npm roboto-fontface package (to load local files)
$roboto-font-path: "~roboto-fontface/fonts" !default;
@import "~roboto-fontface/css/roboto/sass/roboto-fontface";
// for npm material-icons package (to load local files)
$material-icons-font-path: '~material-icons/iconfont/';
{
"templates": [
{
"data": [
{"name": "synth-id", "value": "urn:uuid:536c2060-c9ea-4781-97d9-12d6f717a88c"},
{"name": "foo", "value": "bar"}
]
},
{
"data": [
@hamnis
hamnis / c+j.json
Last active December 27, 2015 15:59
{
"collection": {
"href": "http://example.com",
"accept-bulk": "application/vnd.collection-templates+json",
"template": {
"data": [
{"name": "foo"}
]
}
}
#!/usr/bin/env ruby
require 'cinch'
require 'i18n'
def beer?
weeknum = (I18n.l Time.now, :format => '%V').to_i
dow = (I18n.l Time.now, :format => '%u').to_i
dow == 2 && (weeknum % 2 == 1)
@ruckus
ruckus / gist:2293434
Created April 3, 2012 16:36
Basic setup of WAL-E for continuous archiving and recovery

WAL-E needs to be installed on all machines, masters and slaves.

How to install WAL-E

Only one machine, the master, writes WAL segments via continuous archiving. The configuration for the master postgresql.conf is:

archive_mode = on
archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'
archive_timeout = 60
@myszek123
myszek123 / xmonad.hs
Created October 17, 2011 07:39 — forked from btran/xmonad.hs
basic xmonad on ubuntu 11.10 oneiric ocelot, using gnome-classic
# Based off of http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Unity_2D
#
# /usr/share/xsessions/xmonad.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png