Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
// All non-merge commits | |
reg = /^(.+?)(\n|$)/; ' * ' + Array.prototype.slice.call(document.querySelectorAll('.commit-message a')).map(el => el.title).filter(title => title && title.indexOf('Merge') !== 0).map(title => { var mm = title.match(reg); return mm && mm[1]; }).join("\n * "); | |
// Only merge commits | |
reg = /^[^#]+(#[0-9]+)[^\n]+\n\n((?:.|\n)+)$/; Array.prototype.slice.call(document.querySelectorAll('.commit-message a')).map(el => el.title).filter(title => title.indexOf('Merge') === 0).map(title => { var mm = title.match(reg); return mm && mm[2] + ' (' + mm[1] + ')'; }).join("\n * "); |
#!/usr/bin/env bash | |
# | |
# This is a hack that allows you to express loop and conditional processing | |
# of an array of items in terms of function definitions. | |
# | |
# My initial motivation came from the need to process an array of items, and | |
# then for those successfully processed items, do another different processing | |
# step, and similarly for the failed items; perform further processing/filtering | |
# steps for each failed/successful items. | |
# |
$z-indexes: ( | |
main: ( | |
above-inherit: (), | |
nested: ( | |
low, | |
middle, | |
high | |
), | |
tooltip: () | |
), |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
{ | |
"name": "Imgix", | |
"settings": [ | |
{ | |
"type": "paragraph", | |
"content": "For more info on these theme settings refer to the original [blog post](http:\/\/freakdesign.com.au\/blogs\/news\/91099207)" | |
}, | |
{ | |
"type": "checkbox", | |
"id": "enableImgix", |
require 'nokogiri' | |
module Jekyll | |
module StripFootnotesFilter | |
def strip_footnotes(raw) | |
doc = Nokogiri::HTML.fragment(raw.encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => '')) | |
for block in ['div', 'sup', 'a'] do | |
doc.css(block).each do |ele| |
import math | |
def rgb_to_hsv(r, g, b): | |
r = float(r) | |
g = float(g) | |
b = float(b) | |
high = max(r, g, b) | |
low = min(r, g, b) | |
h, s, v = high, high, high |
#!bash -e | |
TOKEN= # slack token is generate from: https://api.slack.com/web | |
CHANNEL= # name of channels or group | |
MESSAGE= # message | |
NICK= # bot name | |
IS_PRIVATE= # 1 or 0 | |
if [ $IS_PRIVATE -eq 1 ]; then | |
API_TYPE=groups |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
#!/usr/bin/env xcrun swift | |
import Foundation | |
let kDelayUSec : useconds_t = 500_000 | |
func DragMouse(from p0: CGPoint, to p1: CGPoint) { | |
let mouseDown = CGEventCreateMouseEvent(nil, .LeftMouseDown, p0, .Left) | |
let mouseDrag = CGEventCreateMouseEvent(nil, .LeftMouseDragged, p1, .Left) | |
let mouseUp = CGEventCreateMouseEvent(nil, .LeftMouseUp, p1, .Left) |