Skip to content

Instantly share code, notes, and snippets.

View mrodalgaard's full-sized avatar

Martin Rodalgaard mrodalgaard

View GitHub Profile
@mrodalgaard
mrodalgaard / atomTestRunner.coffee
Last active July 21, 2017 09:42
Atom custom test runner with Mocha and Coverage
fs = require 'fs'
path = require 'path'
Mocha = require 'mocha'
coffeeCoverage = require 'coffee-coverage'
{allowUnsafeEval, allowUnsafeNewFunction} = require 'loophole'
module.exports = (args) ->
@mrodalgaard
mrodalgaard / AppViewController.h
Created October 21, 2013 06:34
Gist showing simple use of RNFrostedSidebar with a Navigation Controller. This temporary hides the navigation bar when the sidebar is shown with smooth animation. Using segue from -didTapItemAtIndex works perfectly with this setup (iOS7, but should also work on iOS6). Also I'm giving my NSManagedObjectContext to the new view when calling segue1.
#import <UIKit/UIKit.h>
#import "RNFrostedSidebar.h"
@interface AppViewController : UIViewController <RNFrostedSidebarDelegate>
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
- (IBAction)onMenu:(id)sender;
@end