Skip to content

Instantly share code, notes, and snippets.

<div id="ooyalaplayer<%= division[:id] %>" class="OoyalaHtml5VideoPlayer"></div>
<script>
OO.ready(function() {
var setup = function() {
OO.Player.create(
'ooyalaplayer<%= division[:id] %>', '<%= division[:video] %>', {
onCreate: function(player) {
var thisPlayer = player;
$('#<%= division[:id] %>').on('page.unload', function() {
thisPlayer.pause();
{
"installed": {
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"client_secret": "",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"client_email": "",
"redirect_uris": [
"urn:ietf:wg:oauth:2.0:oob",
"oob"
],
@ryanmark
ryanmark / index.js
Created March 30, 2013 16:23
voxel.js game
var createGame = require('voxel-engine')
function sphereWorld(x, y, z) {
// return the index of the material you want to show up
// 0 is air
if (x*x + y*y + z*z > 15*15) return 0
return 3
}
function flatWorld(x, y, z) {
@ryanmark
ryanmark / hh-git-talk.md
Created September 26, 2012 03:00
H/H Git talk

Setup everyone on github

Introductions

Talk about the problem of writing and editing in groups, prompt crowd for questions

Talk about other features we want in our writing and editing software

  • multiple actors working on the same stuff
  • change history
  • nothing lost (don't need a bunch of backup copies)
@ryanmark
ryanmark / import_tix.py
Created May 11, 2012 19:13 — forked from brianboyer/import_tix.py
Unfuddle ticket generator
#!/usr/bin/env python
# Takes a markdown formatted sked of milestones and tickets and
# pushes it all into unfuddle. Tries to prevent duplicates, but
# doesn't do a great job because Unfuddle's API acts strangely.
#
# TODO: Figure out why new tickets don't show up in the get tickets API request
#
# usage: import_tix.py sked.txt
#
@ryanmark
ryanmark / responsive-screens.js
Created March 5, 2012 15:59
Easy responsive screenshots with Phantom.js
/*
* Take a set of full height screenshots for a range of screensizes.
* phantomjs responsive-screens.js http://www.cnn.com/ png
*
* This will create a directory tree in your current directory which
* mirrors the URL. All files will be named with the current time.
* You can run this on a cron to build an archive of screenshots.
**/
var page = new WebPage(),