This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src_files: | |
- assets/javascripts/app.js.coffee | |
- assets/spec.js.coffee | |
# ... | |
stylesheets: | |
- assets/stylesheets/app.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
in="$1" | |
bumper_img="$2" | |
seek="$3" # "hh:mm:ss" or # of seconds | |
length="$4" # "hh:mm:ss" or # of seconds | |
ffmpeg \ | |
-f image2pipe -vcodec ppm -i <( | |
ffmpeg \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code is modified from the working version to remove coupling with the original | |
// application, and hasn't been tested in its new form. So, it's enough to give you | |
// the basic idea, but may not entirely work ;) | |
// | |
// It assumes the src image is in HSV and the dst image is grayscale. | |
// | |
// CvScalar red = cvScalar(179, 255, 255); | |
// CvScalar lowOffset = cvScalar(-20, -150, -150); // find colors down to h = 159, s = 105, v = 105 | |
// CvScalar highOffset = cvScalar(20, 0, 0); // find colors up to h = 19, s = 255, v = 255 (h wraps/is mod 179) | |
// colorThreshold(img, thresholded, red, lowOffset, highOffset); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a version of https://github.com/juliensobrier/google-safe-browsing-lookup-ruby, | |
# modified to work against Ruby 1.9.2 and not blow up when malformed URLs are encountered. | |
# | |
# The library requires an API key from Google. | |
# Sign up for a free key a http://code.google.com/apis/safebrowsing/key_signup.html | |
# | |
# See README.rdoc for more information about Google Safe Browsing v2 API | |
# and this library. | |
# | |
# Author:: Julien Sobrier (mailto:julien@sobrier.net) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function( exports ) { | |
var onDOMReady = function( fn ) { | |
if ( document.readyState !== 'loading' ) { | |
fn(); | |
} else { | |
document.addEventListener( "DOMContentLoaded", fn ); | |
} | |
}; | |
exports.onDOMReady = onDOMReady; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Config.h" | |
#include "cinder/app/App.h" | |
#include <boost/algorithm/string.hpp> | |
using namespace std; | |
using namespace ci; | |
Config::Config( const ci::fs::path &path ) : | |
mPath( path ), | |
mJson( app::loadAsset( path ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DeferredRenderer.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/Log.h" | |
#include "cinder/Buffer.h" | |
#include "DeferredRendererShaders.h" | |
#include "DeferredRenderer_random_png.h" | |
using namespace ci; | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e "Gem.configuration.rubygems_api_key = nil" |