Skip to content

Instantly share code, notes, and snippets.

View LucasAlfare's full-sized avatar
💭
Attempting "masterize" JetPack Compose

Francisco Lucas LucasAlfare

💭
Attempting "masterize" JetPack Compose
View GitHub Profile
@nhunzaker
nhunzaker / animationLoop
Created August 27, 2012 00:07
JS: requestAnimationFrame Loop Pattern
/*
TIME BASED ANIMATION:
---------------------
To keep things moving at a constant time-based rate instead of varying
frame-based, multiply your movement by APP.deltaTime
BAD: 100 pixels per frame (BOO... movement is tied to framerate)
var velocity = 100;
BETTER: 100 pixels per second (Horray! Framerate independence!)
import java.io.FileReader;
import java.io.IOException;
import java.io.StreamTokenizer;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Created with IntelliJ IDEA.
* User: smevok
* Date: 05.07.12
@banthar
banthar / Split.java
Created June 13, 2012 10:33
java split benchmark
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.StringTokenizer;
public class Split {
private static String string = "a/b/c/d/e/f/g/h/i/j/asd/asdas/dasdjasodjoa/sjd/oajs/djoasjd/as/odj/jaowdj/oajw/odj/aojwd/oja/owjd/oja/wjdoja/wdj/awjdojaw/odj/oawjd/oja/wjdoawjdojaw/d/dff";
@cs0x7f
cs0x7f / sq1solver.js
Created May 15, 2012 14:22
sq1-twophase-algorithm solver, javascript generated by GWT
function nullMethod(){
}
function FullCube_copy(obj, c){
obj.ul = c.ul;
obj.ur = c.ur;
obj.dl = c.dl;
obj.dr = c.dr;
obj.ml = c.ml;