This file contains hidden or 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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>ScrollWheel(Left/Right)</name> | |
<appendix>(You can switch Desktop by scroll wheel left/right.)</appendix> | |
<identifier>private.scroll_wheel_left_right</identifier> | |
<autogen> | |
__ScrollWheelToKey__ | |
ScrollWheel::LEFT | ModifierFlag::NONE, | |
KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_R |
This file contains hidden or 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 | |
find masters -regex '.*[wavmp3ogg]' | while read f; do | |
file=${f##*/} | |
filename=${file%.*} | |
echo "Converting file $f to web/$filename.mp3 web/$filename.ogg" | |
ff=$(printf '%q' "$f") |
This file contains hidden or 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 | |
printf "\e[1;36m\n\ | |
_ _ ____ _ \n\ | |
__ _(_) __| | ___ ___ ___|___ \__ _____| |__ \n\ | |
\ \ / / |/ _\` |/ _ \/ _ \/ __| __) \ \ /\ / / _ \ '_ \ \n\ | |
\ V /| | (_| | __/ (_) \__ \/ __/ \ V V / __/ |_) | \n\ | |
\_/ |_|\__,_|\___|\___/|___/_____| \_/\_/ \___|_.__/ \n\ | |
https://gist.github.com/joshua-barnett/0764f654ba992b663ee9\n\ | |
Usage: \n\ | |
$ ./videos2web.sh input_directory/ output_directory \e[m\\n" |
This file contains hidden or 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
// <img id="myimage" src="http://placecage/1280/720"> | |
var image = document.getElementById('myimage'); | |
var mc = new Hammer.Manager(image); | |
var pinch = new Hammer.Pinch(); | |
var pan = new Hammer.Pan(); | |
pinch.recognizeWith(pan); |
This file contains hidden or 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
KeyManager.held(Key.LEFT) | |
KeyManager.pressed(Key.A, function():void { addEntity(_player) } ); | |
ContactManager.beginContact("player", "landscape", function():void { _player.alpha = 0.5; } ); | |
ContactManager.endContact("player", "landscape", function():void { _player.alpha = 1; } ); |
This file contains hidden or 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
project(racer-sdl) | |
cmake_minimum_required(VERSION 2.8) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
add_executable(${PROJECT_NAME} src/main.cpp) | |
include(FindPkgConfig) | |
pkg_search_module(SDL2 sdl2) |
This file contains hidden or 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
/** | |
* |0|3|6| => 0 3 6 | |
* | | | | => ----- | |
* |1|4|7| => 1 4 7 | |
* | | | | => ----- | |
* |2|5|8| => 2 5 8 | |
* | |
* [0,1,2,3,4,5,6,7,8] => [0,3,6,1,4,7,2,5,8] | |
* | |
*/ |
This file contains hidden or 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
/* global require */ | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var sync = require('browser-sync'); | |
var source = require('vinyl-source-stream'); | |
var uglify = require('gulp-uglify'); | |
var plumber = require('gulp-plumber'); | |
var streamify = require('gulp-streamify'); | |
var watchify = require('watchify'); |
This file contains hidden or 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
/* jshint browser: true, devel: true */ | |
/* global require, module, plugins, Media */ | |
module.exports = { | |
debug: false, | |
sounds: {}, | |
clones: {}, | |
root: window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/')) + '/', | |
manifest: { | |
failure: 'assets/sounds/failure.mp3', |
This file contains hidden or 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
@ECHO OFF | |
FOR %%f IN (*.flac) DO ( | |
echo Converting: %%f | |
ffmpeg -i "%%f" -ab 320k -map_metadata 0 "%%~nf.mp3" | |
) | |
echo Finished | |
PAUSE |