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/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 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
| /** | |
| * |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
| 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
| 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
| #!/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
| RewriteEngine on | |
| RewriteBase / | |
| RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1 # Developer IP | |
| RewriteCond %{REQUEST_URI} !^/maintenance\.html$ | |
| RewriteRule ^(.*)$ http://myhost.co.uk/maintenance.html [R=307,L] |
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
| // TypeScript | |
| class Point | |
| { | |
| public x: number; | |
| public y: number; | |
| constructor(x:number = 0.0, y:number = 0.0) | |
| { | |
| this.x = x; | |
| this.y = y; |
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
| [root@freenas] ~# gpart list ada2 | |
| Geom name: ada2 | |
| modified: false | |
| state: OK | |
| fwheads: 16 | |
| fwsectors: 63 | |
| last: 8191999966 | |
| first: 34 | |
| entries: 128 | |
| scheme: GPT |
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
| <--------------- RAID Z ----------- ---> | |
| 3 TB 4 TB 4 TB | |
| +----------+ +----------+ +----------+ | |
| | | | | | | | |
| | 3 TB | | 3 TB | | 3 TB | | |
| | | | | | | | |
| +----------+ +----------+ |..........| | |
| | 1 TB | | 1 TB | | |
| +----------+ +----------+ | |
| <---------MIRROR---------> |
OlderNewer