Skip to content

Instantly share code, notes, and snippets.


Fokke Zandbergen FokkeZB

Block or report user

Report or block FokkeZB

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am fokkezb on github.
  • I am fokkezb ( on keybase.
  • I have a public key ASACRlfa-rxPMFJo9GKf6-t866_oNVhZG4bXLkGu8I_UoQo

To claim this, I am signing this object:

FokkeZB / script.js
Last active Mar 6, 2019
Let a script loaded before Intercom wait until intercom has booted
View script.js
function afterIntercom() {
if (window.intercomSettings.is_intercom_bubble_enabled && window.intercomSettings.is_intercom_twoway_enabled) {
// do something
if (window.intercomSettings) {
} else {
Object.defineProperty(window, 'intercomSettings', {
FokkeZB / MyController.swift
Last active Dec 1, 2015
How to extend WKInterfaceImage with a method to load remote images on watchOS
View MyController.swift
import WatchKit
public extension WKInterfaceImage {
public func setImageWithUrl(url:String, scale: CGFloat = 1.0) -> WKInterfaceImage? {
NSURLSession.sharedSession().dataTaskWithURL(NSURL(string: url)!) { data, response, error in
if (data != nil && error == nil) {
let image = UIImage(data: data!, scale: scale)
FokkeZB /
Last active Oct 30, 2015
Release 5.1.0 Statistics
FokkeZB / Package Control.sublime-settings
Last active Aug 29, 2015
Sublime Text Configuration
View Package Control.sublime-settings
"Compare Side-By-Side",
"Fizzy Theme",
View app.js
var w = Ti.UI.createWindow({backgroundColor:'green'});;
FokkeZB / Gruntfile.js
Last active Jun 3, 2016
Grunt for publishing Arrow apps
View Gruntfile.js
module.exports = function (grunt) {
clean: {
node: ['node_modules']
spawn: {
unpublish: {
command: 'appc',
args: ['unpublish']
FokkeZB / console.js
Last active Oct 27, 2015
Get all GitHub usernames on a GitHub page
View console.js
// Array
$('.aname').map(function(){return $(this).text();}).get();
// One per line
$('.aname').map(function(){return $(this).text();}).get().join('\n');
// CSV
$('.aname').map(function(){return $(this).text();}).get().join(',');
FokkeZB / !
Last active Apr 13, 2016
Facebook's css-layout for Titanium
View !

Facebook's css-layout for Titanium

Exploring how it could be used to have a more iOS-autolayout-like layout system on Titanium.

Getting the script to work

  1. Put Layout.js in app/lib.
  2. Put the below computeLayout.js in app/lib to fix this.
  3. Use the below alloy.js and confirm it to work.
FokkeZB /
Last active Aug 29, 2015
Preparing restored iCloud Calendar Events to be imported in a new Calendar
You can’t perform that action at this time.