Z_new = Z ^ (B/A)
Z_new = Z * (B/A)^2
| #!/usr/bin/env bash | |
| # | |
| # Depends on ffmpeg with libvpx so you'll need to | |
| # brew install ffmpeg --with-libvpx | |
| # or | |
| # brew reinstall ffmpeg --with-libvpx | |
| # if you've already got ffmpeg, but it's not linked against libvpx. | |
| # | |
| vid_name='vidup_tmp' | |
| remote='you@yourdomain.tld:/home/you/vidcaps' |
| default: all | |
| all: public/index.html | |
| public/index.html: index.html | |
| cpp index.html | sed '/^#.*/d' > public/index.html |
| module Main ( | |
| main | |
| ) where | |
| import Control.Monad.State | |
| import Control.Monad.Reader | |
| import Data.Word | |
| import Foreign | |
| import Graphics.UI.SDL |
| 'use strict'; | |
| var playerModes = require('../../game/player').modes; | |
| /** | |
| * This module exports a single function that checks a game state and | |
| * its latest diff for game sound triggers and plays the appropriate | |
| * sounds on the provided AudioPlayer object. | |
| */ |
| <!DOCTYPE html> | |
| <html> | |
| <style> | |
| body { background: #fff; } | |
| #paper { background: #ccc; } | |
| </style> | |
| <body> | |
| <canvas id="paper" width="800" height="600"></canvas> | |
| </body> | |
| <script src="/socket.io/socket.io.js"></script> |
| /** | |
| * Json Frame Array Sprite Sheet Importer | |
| * | |
| * Creates a new MovieClip in the library, then for each frame in the imported spritesheet | |
| * animation this script will create a bitmap-filled shape on the timeline of the newly-created | |
| * movieclip. | |
| */ | |
| var LIBRARY_FOLDER = 'imported-sprites'; | |
| var dom = fl.getDocumentDOM (); |
| #!/usr/bin/env bash | |
| data="$( | |
| cat "$1" \ | |
| | sed 's/"/\\"/g' \ | |
| | sed ':a;N;$!ba;s/\n/\\n/g' \ | |
| )" | |
| if [[ -z "$2" ]]; then | |
| context='' |