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:
| # 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 |
| /* | |
| * Copyright (c) 2012, Luigi R. Viggiano | |
| * All rights reserved. | |
| * | |
| * This software is distributable under the BSD license. | |
| * See the terms of the BSD license in the documentation provided with this software. | |
| */ | |
| package org.aeonbits.owner; |
| mvn archetype:generate \ | |
| -DgroupId=com.ffbit.maven.plugins \ | |
| -DartifactId=solr-maven-plugin \ | |
| -DarchetypeGroupId=org.apache.maven.archetypes \ | |
| -DarchetypeArtifactId=maven-archetype-mojo |
| gpg --export -a |
| set spell |
| import org.junit.Test; | |
| import java.util.Arrays; | |
| public class IntToBitesTest { | |
| @Test | |
| public void intToBytes() throws Exception { | |
| int n = 1234567890; | |
| byte[] a = new byte[4]; |
| apply plugin:'java' | |
| apply plugin:'idea' | |
| repositories { mavenCentral() } | |
| dependencies { | |
| testCompile 'junit:junit:4.11' | |
| } | |
| task makeDirs(description:'make all dirs for project setup') << { |
| 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 |
| 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()? |