Skip to content

Instantly share code, notes, and snippets.

@polerin
polerin / roundmanager.cs
Last active February 15, 2018 21:22
First time StartRound() is called, everything flows through correctly, including waiting the correct amount of time. Second time, it flows through to the await, but that never returns from the await.
namespace Blah {
public class RoundManager {
// ... //
/// <summary>
/// Load up the right round inspector and , activate the appropriate bins and dispensers.
/// </summary>
protected async void StartRound(RoundStartEvent StartEvent)
{
@polerin
polerin / faker.js
Created October 23, 2015 20:52
Generate fake users for Parse.
"use strict";
/**
* This assumes emails.js is something like
* modules.export = ["[email protected]", "[email protected]",...];
*
*
* @param request
* @param status
*/
exports.generateFakeUserData = function (request, status) {
@polerin
polerin / gist:03247f74323daad1b8c6
Created November 11, 2014 14:28
Remove the YouTube floating header from a page. Useful if you want to watch some long running video in a smaller window.
// Create a new bookmark and paste this in.
// Any time you want to remove the header, select that bookmark while on the page.
javascript:document.getElementById('yt-masthead-container').remove();
@polerin
polerin / gist:6253451
Created August 16, 2013 20:56
Tweaks for wftda.tv live feed page
#videodetails {
width : 31%;
}
#video {
width : 68.5%;
}
#videopane {
height : 470px;