From | To | Expression |
---|
gifify() { | |
if [[ -n "$1" ]]; then | |
if [[ $2 == '--good' ]]; then | |
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
rm out-static*.png | |
else | |
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
fi | |
else |
#!/bin/bash | |
# Download all VMWare Fusion machines from Modern.IE Website to test your Website/Web Application in Microsoft Internet Explorer on Mac OSX. All VM's and other VM's for Windows and Linux and other Virtual Manager's such as VirtualBox can be found at http://modern.ie/ | |
# Don't have cURL or want to learn more, visit http://curl.haxx.se/.. are you really a Developer? First part of that sentence comes from the MS site. | |
read -p "--> Downloading Internet Explorer 6-10 on Windows XP/7/8 Appliances for VMWare Fusion. Large downloads ahead. (Press Enter to continue)." | |
echo "--> Download Internet Explorer 6 on Microsoft Windows XP Appliance for VMWare Fusion." | |
curl --progress-bar -O "http://virtualization.modern.ie/vhd/IEKitV1_Final/VMWare_Fusion/IE6_XP/IE6.XP.For.MacVMware.sfx" | |
echo "--> Download Internet Explorer 8 on Microsoft Windows XP Appliance for VMWare Fusion." |
// Linear Congruential Generator | |
// Variant of a Lehman Generator | |
var lcg = (function() { | |
// Set to values from http://en.wikipedia.org/wiki/Numerical_Recipes | |
// m is basically chosen to be large (as it is the max period) | |
// and for its relationships to a and c | |
var m = 4294967296, | |
// a - 1 should be divisible by m's prime factors | |
a = 1664525, | |
// c and m should be co-prime |
const windowUtils = require("window-utils"); | |
const NS_XUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; | |
exports.Menuitem = function Menuitem(options) { | |
new windowUtils.WindowTracker({ | |
onTrack: function (window) { | |
if ("chrome://browser/content/browser.xul" != window.location) return; | |
tr-tz-mbp-2:guiMbb brandonwilburn$ cat Gruntfile.coffee | |
module.exports = (grunt) -> | |
path = require('path') | |
gruntConfig = | |
pkg: grunt.file.readJSON('package.json') | |
exec: | |
generateAppResourcesJson: |
Prerequisites
- Somewhat modern version of OpenSSH
- Server you have SSH access to in the region you want to stream from.
Bummed about region lock? Start up your terminal and do this:
$ ssh -N -D 9999 yourserver.com
grunt.initConfig({ | |
db: { | |
// Books will be populated when setfromdb is ran | |
books: [] | |
}, | |
other: { | |
target: { | |
options: { | |
// Now when other:target is ran it will consume db.books | |
books: '<%= db.books %>' |
For ETS's SKLL project, we found out the hard way that Travis-CI's support for numpy and scipy is pretty abysmal. There are pre-installed versions of numpy for some versions of Python, but those are seriously out of date, and scipy is not there are at all. The two most popular approaches for working around this are to (1) build everything from scratch, or (2) use apt-get to install more recent (but still out of date) versions of numpy and scipy. Both of these approaches lead to longer build times, and with the second approach, you still don't have the most recent versions of anything. To circumvent these issues, we've switched to using Miniconda (Anaconda's lightweight cousin) to install everything.
A template for installing a simple Python package that relies on numpy and scipy using Miniconda is provided below. Since it's a common s
From 626c8ac5634c543a3e922e60c83b0e2dfdd5b094 Mon Sep 17 00:00:00 2001 | |
From: Timothy J Fontaine <[email protected]> | |
Date: Mon, 11 Nov 2013 02:09:12 +0000 | |
Subject: [PATCH] src: HandleWrap::OnClose needs HandleScope | |
--- | |
src/handle_wrap.cc | 1 + | |
1 file changed, 1 insertion(+) | |
diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc |