Skip to content

Instantly share code, notes, and snippets.

*️⃣
Zappin'

Fokke Zandbergen FokkeZB

*️⃣
Zappin'
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
View keybase.md

Keybase proof

I hereby claim:

  • I am fokkezb on github.
  • I am fokkezb (https://keybase.io/fokkezb) on keybase.
  • I have a public key ASACRlfa-rxPMFJo9GKf6-t866_oNVhZG4bXLkGu8I_UoQo

To claim this, I am signing this object:

@FokkeZB
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) {
afterIntercom();
} else {
Object.defineProperty(window, 'intercomSettings', {
@FokkeZB
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
FokkeZB / git-heroes.md
Last active Oct 30, 2015
Release 5.1.0 Statistics
View git-heroes.md
@FokkeZB
FokkeZB / Package Control.sublime-settings
Last active Aug 29, 2015
Sublime Text Configuration
View Package Control.sublime-settings
{
"in_process_packages":
[
],
"installed_packages":
[
"Compare Side-By-Side",
"DashDoc",
"DoxyDoxygen",
"Fizzy Theme",
View app.js
var w = Ti.UI.createWindow({backgroundColor:'green'});
w.open();
@FokkeZB
FokkeZB / Gruntfile.js
Last active Jun 3, 2016
Grunt for publishing Arrow apps
View Gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
clean: {
node: ['node_modules']
},
spawn: {
unpublish: {
command: 'appc',
args: ['unpublish']
@FokkeZB
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
FokkeZB / !README.md
Last active Apr 13, 2016
Facebook's css-layout for Titanium
View !README.md

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
FokkeZB / README.md
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.