Skip to content

Instantly share code, notes, and snippets.

View jbubriski's full-sized avatar

John Bubriski jbubriski

View GitHub Profile
@phoboslab
phoboslab / menus.js
Created November 11, 2012 22:13
Z-Type Menu
ig.module(
'game.menus'
)
.requires(
'impact.font'
)
.defines(function(){
MenuItem = ig.Class.extend({
getText: function(){ return 'none' },
@developerdizzle
developerdizzle / ajax-loading.js
Last active December 18, 2015 10:19
jQuery/UpdatePanel busy/loading cursor
// html.ajax-loading { cursor: wait; }
define(['jquery'], function ($) {
$(function () {
var $html = $('html');
var $document = $(document);
var cssClass = 'ajax-loading';
var requests = 0;
function setBusy() {
anonymous
anonymous / gist:5556157
Created May 10, 2013 17:56
var setCookieHeader = response.Headers["SET-COOKIE"];
var sltCookie = setCookieHeader.Substring(0, setCookieHeader.IndexOf(';'));
if (sltCookie.StartsWith("slt"))
{
Cookies.Add(new Cookie("slt", sltCookie.Substring(4), "/", "www.litefighter.com"));
}
@motowilliams
motowilliams / gist:3784042
Created September 25, 2012 19:51
motowilliams opml for Google Listen
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>"Listen Subscriptions" subscriptions via MotoWilliams in Google Reader</title>
</head>
<body>
<outline title="Listen Subscriptions" text="Listen Subscriptions">
<outline text="(406)Sta-rtup" title="(406)Sta-rtup"
type="rss" xmlUrl="http://406startup.com/feed/" htmlUrl="http://406startup.com"/>
anonymous
anonymous / About.cshtml
Created November 10, 2011 14:27
Example of a base view for razor with RouteInfo property
@{
ViewBag.Title = "About Us";
}
<h2>About</h2>
<p>
Hi @RouteInfo.name(), welcome to the @RouteInfo.action() action, which is located in the @RouteInfo.controller() controller
</p>
@codeimpossible
codeimpossible / JamesBond.cs
Created October 28, 2014 02:52
JamesBond - a quick and dirty lesson in reflection, invocation and generally mucking about with an objects private vars
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Dynamic;
using System.Reflection;
using System.Linq.Expressions;
namespace MISix {
public class ReflectedResult<T> {