A dynamic, expressive, powerful language compiling to CSS.
SLIDE:
tj holowaychuk
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
-{ extension "match" } | |
local M = { traverse = { }; tags = { }; debug = false } | |
-------------------------------------------------------------------------------- | |
-- Standard tags: can be used to guess the type of an AST, or to check | |
-- that the type of an AST is respected. | |
-------------------------------------------------------------------------------- | |
M.tags.stat = table.transpose{ |
var doc = app.activeDocument; | |
var guides = app.activeDocument.guides; | |
var w = doc.width; | |
var h = doc.height; | |
function MakeGuidesGrid(unitVertical, gutterVertical, unitHorisontal, gutterHorisontal) { | |
if (unitHorisontal !== 0) { | |
var j = h / unitHorisontal; | |
for (var i = 0; i < j; i++) { | |
guides.add(Direction.HORIZONTAL, i * unitHorisontal); |
from deluge._libtorrent import lt | |
from deluge.core.torrentmanager import TorrentManagerState | |
from shutil import copy, _samefile | |
import cPickle | |
import os | |
class Transplant(object): | |
def __init__(self, config_dir="", torrent_ids=None, torrents=None): | |
self.state_dir = "" | |
self.torrents = {} |
license: gpl-3.0 | |
redirect: https://observablehq.com/@mbostock/best-candidate-circles |
-- get Dock height | |
tell application "System Events" to tell process "Dock" | |
set dock_dimensions to size in list 1 | |
set dock_height to item 2 of dock_dimensions | |
end tell | |
-- get the new width and height for the window | |
tell application "Finder" | |
set desktop_dimensions to bounds of window of desktop | |
set new_width to (item 3 of desktop_dimensions) / 2 | |
set new_height to (item 4 of desktop_dimensions) - dock_height |
// Substrate Watercolor | |
// j.tarbell June, 2004 | |
// Albuquerque, New Mexico | |
// complexification.net | |
// Processing 0085 Beta syntax update | |
// j.tarbell April, 2005 | |
int dimx = 250; | |
int dimy = 250; |
#!/bin/bash | |
# An ugly hack to speed up pdflatex using the minted package | |
# place this file with the name 'pygmentize' somewhere on your | |
# path before the 'real' pygmentize, such that this file gets | |
# executed and can act as a wrapper around the 'real' pygmentize. | |
# This script computes a hash-value (md5sum) of the input file | |
# from minted and caches the output of pygmentize. | |
# The working directory is used to store the cached files (it's an ugly hack...) | |
# The real pygmentize command, may need customization to work on your system. |
function find_roku { | |
for i in $(arp -a | awk '{print $2}' | sed "s/[(|)]//g"); do | |
curl $i:8060 &>/dev/null | |
if [[ "$?" == "0" ]]; then | |
echo $i | |
export ROKU_IP=$i | |
fi | |
done | |
} |