Skip to content

Instantly share code, notes, and snippets.

View maxsteenbergen's full-sized avatar

Max Steenbergen maxsteenbergen

View GitHub Profile
@maxsteenbergen
maxsteenbergen / framerapp.webmanifest
Last active April 17, 2024 17:16
How to enable fullscreen prototype previews with Framer (Sites)
{
"name": "Framer Fullscreen Prototype",
"short_name": "Framer",
"description": "A fullscreen Framer prototype as PWA",
"start_url": "https://fullscreen-prototype.framer.website",
"scope": "https://fullscreen-prototype.framer.website",
"display": "fullscreen",
"orientation": "any",
"theme_color": "#ffffff",
"background_color": "#ffffff",
@maxsteenbergen
maxsteenbergen / Cinema4Dtutorials.md
Created September 12, 2016 11:21
A list of lesser known but indispensable Cinema4D tutorials
@maxsteenbergen
maxsteenbergen / atomspotlight.log
Created December 16, 2015 07:58
Spotlight crash when highlighting Atom Beta
16/12/15 08:55:05,098 Spotlight[15530] XPC connection was invalidated
16/12/15 08:55:05,329 Spotlight[15530] XPC connection was invalidated
16/12/15 08:55:05,488 Spotlight[15530] *** Assertion failure in -[NSTextFieldCell _objectValue:forString:errorDescription:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1404.34/AppKit.subproj/NSCell.m:1684
16/12/15 08:55:05,489 Spotlight[15530] Invalid parameter not satisfying: aString != nil
16/12/15 08:55:05,491 Spotlight[15530] (
0 CoreFoundation 0x00007fff98fe5ae2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff9f9a7f7e objc_exception_throw + 48
2 CoreFoundation 0x00007fff98fe58ba +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fff8fe8388c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 AppKit 0x00007fff9cf9660c -[NSCell _objectValue:forString:errorDescription:] + 180
$.getJSON("js/energy_presets.json").fail(function(json){
alert(json.responseText)
})
@maxsteenbergen
maxsteenbergen / index.html
Created May 30, 2013 09:08
View.js gallery
<div class="portfolioItem">
<!-- MAIN IMAGE -->
<a href="" class="view" rel="polaroids"><img src="img/polaroids.png"></a>
<!-- OTHER HIDDEN IMAGES -->
<a title="Polaroid, sketched image" href="img/polaroids_detail3.jpg" class="view" rel="polaroids"></a>
<a title="Polaroid, sketched image" href="img/polaroids_detail4.jpg" class="view" rel="polaroids"></a>
<a title="Polaroid, blueprinted image" href="img/polaroids_detail5.jpg" class="view" rel="polaroids"></a>
<a title="Polaroid, blueprinted image" href="img/polaroids_detail6.jpg" class="view" rel="polaroids"></a>
//
// WOMAppDelegate.m
// PopoverMenulet
//
// Created by Julián Romero on 10/26/11.
// Copyright (c) 2011 Wuonm Web Services S.L. All rights reserved.
//
#import "WOMAppDelegate.h"
#import "WOMMenulet.h"
@maxsteenbergen
maxsteenbergen / gist:5567362
Last active December 17, 2015 06:39
Updated NSStatusItem code
//
// WOMAppDelegate.m
// PopoverMenulet
//
// Created by Julián Romero on 10/26/11.
// Copyright (c) 2011 Wuonm Web Services S.L. All rights reserved.
//
#import "WOMAppDelegate.h"
#import "WOMMenulet.h"
@maxsteenbergen
maxsteenbergen / NSStatusItem issue
Created May 13, 2013 09:18
This should draw an icon in the Status Bar. It works on my MacBook, but on my iMac it doesn't show an icon. The menulet is there, I can click it: it simply doesn't show the icon.
- (void)drawRect:(NSRect)rect
{
/* NSImage *img = [NSImage imageNamed:@"[email protected]"];
rect = CGRectInset(rect, 2, 3);
NSRect imageRect;
imageRect.origin = NSZeroPoint;
imageRect.size = [img size];
[img drawInRect:rect fromRect:imageRect operation:NSCompositeSourceOver fraction:1];