Skip to content

Instantly share code, notes, and snippets.


Julian F. Weinert julian-weinert

  • Berlin, Germany
View GitHub Profile
julian-weinert / p5-round.js
Created Jan 28, 2018
P5.js random rounding test; I'm comparing JavaScript rounding functions in P5 to prove that ceil and floor will omit one pissibility.
View p5-round.js
function evaluate(callback, from, to, count) {
var results = {};
for (var i = 0; i < count; i++) {
var result = callback(from, to);
results[result] = results[result] ? results[result] + 1 : 1;
return results;
View Main.storyboard
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="" version="3.0" toolsVersion="7706" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="GUs-KQ-G3b">
<plugIn identifier="" version="7703"/>
<!--Navigation Controller-->
<scene sceneID="JDN-Wl-fKI">
<navigationController id="GUs-KQ-G3b" sceneMemberID="viewController">
julian-weinert / GISTViewController.m
Created Aug 26, 2015
`-scrollViewDidScroll` not called when `UITableView` removes a section and must scroll
View GISTViewController.m
@interface GISTViewController : UITableViewController
@implementation GISTViewController
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 3;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
You can’t perform that action at this time.