Skip to content

Instantly share code, notes, and snippets.

View ffbit's full-sized avatar

D H ffbit

  • Here GmbH
  • Germany, Frankfurt am Main Area
View GitHub Profile

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

I want to implement a simple simulator (Cellular automaton) and can use both java.util.concurrent.* or java.util.stream.* for parallel execution (later produces nicer code). With Java9 I want to execute on the GPU. Which package to use to prepare for GPU computation? Will there be a .parallelGPUStream()?
@ffbit
ffbit / Makefile
Created December 29, 2013 12:36 — forked from AlexDenisov/Makefile
all: calc
calc: parser lexer
CC lexer.c parser.c -o calc
lexer:
flex -o lexer.c lexer.l
parser:
bison -d -o parser.c parser.y
@ffbit
ffbit / build.gradle
Last active December 31, 2015 21:19 — forked from Dierk/build.gradle
apply plugin:'java'
apply plugin:'idea'
repositories { mavenCentral() }
dependencies {
testCompile 'junit:junit:4.11'
}
task makeDirs(description:'make all dirs for project setup') << {
# Selenium launcher is a great npm module for booting
# selenium server via a Node.js process.
selenium = require 'selenium-launcher'
soda = require 'soda'
process.env.NODE_ENV = "cucumber"
# This is our app's file.
server = require '../../server'
# We add some empty variables to store the web browser
function asyncForeach(array, fn, callback) {
var completed = 0;
var arrayLength = array.length;
if(arrayLength === 0) {
callback();
}
for(var i = 0; i < arrayLength; i++) {
fn(array[i], i, function() {
completed++;
if(completed === arrayLength) {
@ffbit
ffbit / pr.md
Created March 21, 2013 08:31 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

package org.test;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;