Skip to content

Instantly share code, notes, and snippets.

View julesfern's full-sized avatar

Jules Glegg julesfern

View GitHub Profile

This could be given day as a queer woman in games programming

  • Code reviews.
  • Standup. You feel inadequate because half of your productive hours yesterday went on glue work, so you barely cleared one issue while the men on the team went heads-down and cleared two apiece. The team doesn’t track glue work.
  • 1:1 with a lead. Instead of seeking career advice, you spend it pleading with him to hire women. He tells you he sympathizes, but he “just needs to ship games right now”
  • Write feedback to the person who misgendered you earlier. You generally prefer to do this in person but you don't know him well and you want to keep it in writing until you can gauge whether he's safe.
  • Sync version control and open Visual Studio.
  • D&I round table discussion. Burn 4,000 calories explaining the concept of privilege to someone with a director title and five years less experience than you.
  • Stare blankly into space wondering if anyone noticed you trying not to cry, and when/if the feedback that you "didn't show prop
@julesfern
julesfern / example.log
Last active December 14, 2015 15:19
Simple script for getting embed codes from vj-core
Dash:videojuicer.com danski$ ~/utilities/vj_embed_codes.rb seed=wavecastpro id=1
Requesting from http://api.videojuicer.com/oembed?seed_name=wavecastpro&url=http://api.videojuicer.com/presentations/1.html&maxwidth=600&maxheight=600&format=json
video, http:
<video width="600" height="338" controls poster="http://thumbnails.videojuicer.com/wavecastpro/presentations/1.jpg?maxwidth=600&maxheight=338"> <source type="application/vnd.apple.mpegurl" src="http://wavecastpro-primary.videojuicer.com:1935/wavecast/_definst_/testing/playlist.m3u8"> </video>
video, https:
<video width="600" height="338" controls poster="http://thumbnails.videojuicer.com/wavecastpro/presentations/1.jpg?maxwidth=600&maxheight=338"> <source type="application/vnd.apple.mpegurl" src="http://wavecastpro-primary.videojuicer.com:1935/wavecast/_definst_/testing/playlist.m3u8"> </video>
player-v5, http:
# Patches Jekyll's built-in pagination to work with files *other* than the base index.html.
# Expects the following to be specified in your _config.yml:
#
# paginate_base: "blog" # Puts all pagination folders in the "blog" dir, e.g. "/blog/page2"
# paginate_index: "blog/index.html" # Paginates using the specified file
module Jekyll
class Page

Videojuicer are looking for a talented developer in the Brighton or London areas who...

  • is confident working on complex codebases
  • has very good experience of Flash / AS3 (video experience a definite plus)
  • has good experience with development on the JVM (Scala experience a definite plus)
  • is very comfortable in at least one modern scripting language (Ruby, Python, ...)
  • takes pride in honing and applying their craft
  • often thinks in terms of design patterns
  • treats TDD as the norm
  • is passionate about new (particularly open source) technologies
@julesfern
julesfern / ruby_string_range_in_javascript.js
Created June 20, 2011 18:48
A bit of fun for SpahQL.js - Matching ruby's range operations for strings in Javascript.
evalStringRange: function(start, end) {
var results = [];
// Figure out if this is a reversed or symmetrical range.
// Another easy comparison: Symmetrical ranges have one entry
if(start == end) return [start];
// Easy comparison: One string is shorter than the other or the range is reversed
if((start > end)||(start.length!=end.length)) return results;
// Columnar charcode indexes:
@julesfern
julesfern / machinetags.js
Created May 26, 2011 09:46
parse machine tags
function parseMachineTags(tagStr, namespace) {
var tags = tagStr.split("\0");
var attrs = {};
for(var i in tags) {
var tag = tags[i];
if(tag.indexOf(namespace+":") == 0 && tag.indexOf("=") > namespace.length+2) {
var tagPair = tag.split("=");
attrs[tagPair[0]] = tagPair[1];
}
}
@julesfern
julesfern / gist:970584
Created May 13, 2011 13:59
spah-readme.mdown

Spah: Single-Page Application Helper

Contents

SPA Single page architecture lib design "Spah"

Assumptions:

  • Host API is RESTish
  • All host-client transfer is with JSON and all client-host transfer is with POST and multipart POST.
  • Client-side progressive enhancements are the responsibility of the developer
  • The server-side portion of the library will be ruby-based, and the client-side portion will be jquery-based, but the DTOs used to communicate between two will be thoroughly documented to allow drop-in replacement on either side.
Gargantua:vj-player-v4 danski$ ant up
Buildfile: /Users/danski/Sites/vj-player-v4/build.xml
[echo] FLEX_HOME: /Users/danski/.flex_sdk_4.1.0.16076
[echo] FLEX_HEADLESS: ${env.FLEX_HEADLESS}
[echo] FLASH_HEADLESS: ${env.FLASH_HEADLESS}
[echo] Flash Player: /Applications/Adobe/Flash\ Player.app/Contents/MacOS/Flash\ Player
update:
[exec] Current branch master is up to date.
[exec] From src.videojuicer.com:vj-player-v4
[Test(description="Elements with height: auto correctly recalculate their dimensions when children modify their sizes")]
public function heightAutoElementsCalculateContentSizes():void
{
var wrapper:UIElement = new UIElement(this._baseUI);
wrapper.localStyleString = "width: 100px; height: auto;";
Assert.assertEquals(0, wrapper.contentHeight);
var children:Vector.<UIElement> = new Vector.<UIElement>();
for(var i:uint=0; i<5; i++)