Skip to content

Instantly share code, notes, and snippets.

View boboldehampsink's full-sized avatar

Bob Olde Hampsink boboldehampsink

View GitHub Profile
@boboldehampsink
boboldehampsink / ios_disable_push_notifications.js
Created March 17, 2015 15:11
Cordova - after_platform_add hook to disable push notifications code
#!/usr/bin/env node
var GCC_PREPROCESSOR_DEFINITIONS = '"$(inherited) DISABLE_PUSH_NOTIFICATIONS=1"';
var fs = require("fs");
var path = require("path");
var xcode = require('xcode');
var projectRoot = process.argv[2];
function getProjectName(protoPath) {
@boboldehampsink
boboldehampsink / MatrixCollapsePlugin.php
Created June 18, 2015 16:57
Matrix Collapse Plugin, put this in a folder called "matrixcollapse" in craft/plugins/
<?php
namespace Craft;
/**
* Matrix Collapse Plugin.
*/
class MatrixCollapsePlugin extends BasePlugin
{
/**
<?php
namespace Craft;
class UploadsController extends BaseController {
/**
* Process uploaded files
*
* @author Bob Olde Hampsink
*/
<?php
namespace Craft;
/**
* The class name is the UTC timestamp in the format of mYYMMDD_HHMMSS_pluginHandle_migrationName.
*/
class m150904_071603_inspections_DistanceText extends BaseMigration
{
/**

Keybase proof

I hereby claim:

  • I am boboldehampsink on github.
  • I am boboldehampsink (https://keybase.io/boboldehampsink) on keybase.
  • I have a public key ASCRtpA9X58lqau34xxjdiOm8y6GtjPB3Wn5Z4zBP4v29wo

To claim this, I am signing this object: