Skip to content

Instantly share code, notes, and snippets.


Paul Batum paulbatum

View GitHub Profile
View Extension.cs
if (AppSettings["MS_DatabaseSchemaName"] != null
|| AppSettings["MS_SchemaName"] != null
|| AppSettings["MS_Schemo"] != null
|| AppSettings["MS_TableSchema"] != null)
//God dammit Dale!!
// do stuff
paulbatum / gist:140dfa27c07b1f39575c
Last active Aug 29, 2015
Adding an alpha pack download to MultiMC
View gist:140dfa27c07b1f39575c
OK so you the alpha pack downloaded but you don't know how to run it? Here's how:
1. Download MultiMC
2. Run MultiMC. It will create an instances folder inside the MultiMC folder.
3. Add your minecraft account details to MultiMC using the button in the top right.
4. Extract the alpha pack to the instances folder. Make sure you end up with a file structure like \MultiMC\instances\ME^-1\minecraft
5. In MultiMC click the refresh button. The downloaded pack should appear.
6. Double click the pack to run it.
paulbatum / gist:06d26f2800820375959e
Created Oct 9, 2014
Evolve 2014 Resources for Mobile Services
View gist:06d26f2800820375959e
Get started with Mobile Services:
Field Engineer Lite:
Full Field Engineer Sample (windows and xamarin):
View gist:638015245b48171cd434
public class NetworkActivityHandler : DelegatingHandler
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken)
using (new NetworkActivityDisposable())
return base.SendAsync(request, cancellationToken);
View gist:be5ce06e913a5d68f255
var memorySink = []; = function(request, response) {
var sizeKB = request.query.kb || 1024;
var entry = { size: sizeKB, buffer: new Buffer(sizeKB * 1024) };
View gist:962d6268fd765f8ac8cb
public void CanStartGameWithThreeOrMorePlayers()
foreach (var i in Enumerable.Range(1, 7))
viewmodel.NewPlayerName = "Player" + i;
// Test passes with this assert present, fails with it commented out
//Assert.Equal(i >= 3, viewmodel.StartGame.CanExecute(null));
View zumorepl
var util = require('util');
function insert(item, user, request) {
var result;
eval("result = " + item.code);
request.respond(200, result);
View PAX
var url = "";
var client = new HttpClient();
var response = await client.GetAsync(url);
paulbatum / OUTPUT
Created Nov 25, 2012
Magic buckets
this is from the script
this is from a module
paulbatum / zumo.ts
Created Oct 7, 2012
TypeScript declaration file for Windows Azure Mobile Services server scripts
View zumo.ts
// TypeScript declaration file for Windows Azure Mobile Services server scripts
interface ZumoError {
interface StatusCodes {
OK: number;
NOT_FOUND: number;
You can’t perform that action at this time.