This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
angular.module('app.common.directives.html-editor', []) | |
.directive('htmlEditor', function() { | |
return { | |
restrict: 'E', | |
scope: { | |
'html': '=' | |
}, | |
link: function (scope, element, attrs, ctrl) { | |
// this is a browserify bundle where my react components live |
require 'coderay' | |
codeToHighlight = `pbpaste` | |
highlightedCode = CodeRay.scan(codeToHighlight, :ruby).div | |
IO.popen("pbcopy", mode='w') do |io| | |
io.write highlightedCode | |
end |
require 'find' | |
def convertFile(path) | |
puts "Converting #{path}" | |
choppedSafeFilePath = path.chomp(File.extname(path)) | |
`ffmpeg -i "#{choppedSafeFilePath}.flac" -ar 44100 -ab 128k -y "#{choppedSafeFilePath}.mp3" 2>/dev/null` | |
end | |
Find.find("/media/New Volume/song_directory") do |path| | |
if File.extname(path) == ".flac" | |
convertFile path |
# run in command line | |
gsettings set org.gnome.settings-daemon.plugins.power 'use-time-for-policy' 'false' |
// in app/assets/javascripts/application.js | |
//= require jquery | |
//= require jquery_ujs | |
//= require ./stitch_header | |
//= require_tree . |
(ns sudoku | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic)) | |
(defn get-square [rows x y] | |
(for [x (range x (+ x 3)) | |
y (range y (+ y 3))] | |
(get-in rows [x y]))) | |
(defn init [vars hints] |
/** | |
* KineticJS Bezier Extension | |
* Compatible with KineticJS JavaScript Library v3.8.0 | |
* Author: Greg Zoller | |
* Date: Apr 12 2012 | |
*/ | |
/////////////////////////////////////////////////////////////////////// | |
// Bezier | |
/////////////////////////////////////////////////////////////////////// |
var connect = require('connect'); | |
var fs = require('fs'); | |
var querystring = require('querystring'); | |
var util = require('util'); | |
var pageMarkup = 'Error'; | |
var staticFiles = new Array(); | |
try { | |
staticFiles['/'] = fs.readFileSync('page.html', 'ascii'); | |
staticFiles['/jquery-1.7.1.min.js'] = fs.readFileSync('jquery-1.7.1.min.js', 'ascii'); |
module Homepage | |
module V2 | |
class Board | |
include Redis::Objects | |
value :name | |
value :exists | |
counter :views | |