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 <Windows.h> | |
#include <cstdio> | |
#include "log.h" | |
#define COLOR_BLACK 0x0 | |
#define COLOR_BLUE 0x1 | |
#define COLOR_GREEN 0x2 | |
#define COLOR_AQUA 0x3 | |
#define COLOR_RED 0x4 |
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/sh | |
rm www/version.txt -i | |
cat /dev/null > www/version.txt | |
git rev-parse --short HEAD >> www/version.txt | |
git add www/version.txt |
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
@ECHO OFF | |
FOR %%f IN (*.flac) DO ( | |
echo Converting: %%f | |
ffmpeg -i "%%f" -ab 320k -map_metadata 0 "%%~nf.mp3" | |
) | |
echo Finished | |
PAUSE |
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
/* 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 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 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 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 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 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 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" |
OlderNewer