Simple PixiJS graphics test to see what works on mobile. Uses the set-background-to-black hack as mentioned in issue #938.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iOS release build | |
Eigen additions 375 | |
Eigen multiplications 1258 | |
GLM additions 620 | |
GLM multiplications 767 | |
CML additions 397 | |
CML multiplications 3029 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mnem on github. | |
* I am mnem (https://keybase.io/mnem) on keybase. | |
* I have a public key whose fingerprint is 1D88 0A68 B233 8A02 1B92 393A 17C9 EF8D 13F7 7DC2 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { | |
UITableViewRowAction *moreAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"More" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){ | |
// maybe show an action sheet with more options | |
[self.tableView setEditing:NO]; | |
}]; | |
moreAction.backgroundColor = [UIColor lightGrayColor]; | |
UITableViewRowAction *blurAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Blur" handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){ | |
[self.tableView setEditing:NO]; | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface NAHMainTable : UITableViewController | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
//: Types to make my typing life simpler | |
typealias Cell = Int | |
typealias Board = [Cell] | |
typealias CellPosition = Int | |
typealias PackedBoard = Int64 | |
typealias AddNeighbours = (Board, CellPosition) -> Cell | |
typealias SwapNeighbours = (Board, CellPosition) -> Board | |
typealias Mutator = (add:AddNeighbours, swap:SwapNeighbours) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.cpp | |
// jpm-code-dojo-2015-05-cpp | |
// | |
// Created by David Wagner on 18/05/2015. | |
// Copyright (c) 2015 David Wagner. All rights reserved. | |
// | |
#include <iostream> | |
#include <set> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function newMrNoisy() :void | |
{ | |
returnMrNoisy(new MrNoisy()).thing += 50; | |
} | |
// ABC Output for newMrNoisy | |
// function :CompoundOperatorsAndNew:::newMrNoisy()::void | |
// maxStack:3 localCount:1 initScopeDepth:9 maxScopeDepth:10 | |
// getlocal0 | |
// pushscope | |
// getlocal0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function speedTestA() :void | |
{ | |
var a :int = 1; | |
var b :int = 2; | |
b = a + a + a; | |
} | |
public function speedTestB() :void | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is just one of the reasons why | |
// treating null as a boolean false | |
// is Bad and Wrong | |
var iAmAStringInstance :String = ""; | |
var iAmANullString :String = null; | |
if(iAmAStringInstance) | |
{ | |
trace("iAmAStringInstance: That there is an instance!"); |
OlderNewer