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:
| 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()? |
| 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 |
| 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) { |
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 = [email protected]: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; |