Skip to content

Instantly share code, notes, and snippets.

💭
Single and Ready to Mingle

Jolli McBee jmcbee

View GitHub Profile
@jmcbee
jmcbee / .block
Last active Feb 10, 2017 — forked from mbostock/.block
Hexagonal Binning
View .block
license: gpl-3.0
@jmcbee
jmcbee / index.html
Last active Dec 12, 2016 — forked from indiemaps/walmart.html
test of d3.hexbin with walmart locations
View index.html
<html>
<head>
<title>Walmart locations all hexed up</title>
http://mbostock.github.com/d3/d3.js
<!-- styles -->
<link rel="stylesheet" type="text/css" href="http://indiemaps.github.com/hexbin-js/style/main.css" />
<link rel="stylesheet" type="text/css" href="http://indiemaps.github.com/hexbin-js/style/colorbrewer.css" />
<link rel="stylesheet" type="text/css" href="http://indiemaps.github.com/hexbin-js/style/colorbrewer.stroke.css" />
<style type="text/css">
View winston-SyslogConsole-transport.js
'use strict';
var winston = require('winston');
var Syslog = winston.transports.SyslogConsole = function (options) {
var Producer = require('glossy').Produce;
winston.Transport.call(this, options);
this.producer = new Producer({
appName: options.appName || 'winston',
host: options.host || require('os').hostname(),
View ffmpeg.sh
#!/bin/bash
video=bbb_sunflower_2160p_60fps_normal.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 180k -maxrate 180k -vf scale="trunc(oh*a/2)*2:240" -crf 23 -c:a libvorbis -b:a 128k 240p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 300k -maxrate 300k -vf scale="trunc(oh*a/2)*2:360" -crf 23 -c:a libvorbis -b:a 192k 360p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 500k --maxrate 500k vf scale="trunc(oh*a/2)*2:480" -crf 23 -c:a libvorbis -b:a 256k 480p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 1000k -maxrate 1000k -vf scale="trunc(oh*a/2)*2:720" -crf 23 -c:a libvorbis -b:a 256k 720p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 2000k -maxrate 2000k -vf scale="trunc(oh*a/2)*2:1080" -crf 23 -c:a libvorbis -b:a 256k 1080p.mp4
View zprestorc.diff
diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc
index a54fdb0..7dafc6a 100644
--- a/runcoms/zpreztorc
+++ b/runcoms/zpreztorc
@@ -32,7 +32,8 @@ zstyle ':prezto:load' pmodule \
'spectrum' \
'utility' \
'completion' \
- 'prompt'
+ 'prompt' \
View prompt_peepcode_setup.diff
diff --git a/modules/prompt/functions/prompt_peepcode_setup b/modules/prompt/functions/prompt_peepcode_setup
index a83710e..74ccd78 100644
--- a/modules/prompt/functions/prompt_peepcode_setup
+++ b/modules/prompt/functions/prompt_peepcode_setup
@@ -19,6 +19,7 @@ function +vi-git-status() {
function prompt_peepcode_precmd {
vcs_info
+ git-info
View sublime_text.md

Unpopular Sublime Text Keyboard Shortcuts

  • alt+. - close html tag
  • alt+- - jump back
  • alt+shift+- - jump forward
View ffmpeg.sh
function eatShit() {
ffmpeg -i "$1" -vcodec libx264 -s vga -preset slow -crf 24 -pix_fmt yuv420p -acodec libmp3lame -aq 5 ${1%%.*}-reencode.mp4
}
You can’t perform that action at this time.