This file contains hidden or 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
#include<stdio.h> | |
#include<time.h> | |
int main(){ | |
time_t now, then; | |
time(&now); | |
int i; | |
for(i = 0; i < 1000000; i++){ | |
// do nothing? |
This file contains hidden or 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 void setColor (float r, float g, float b, float a) { | |
int intBits = ((int)(255 * a) << 24) | ((int)(255 * b) << 16) | ((int)(255 * g) << 8) | ((int)(255 * r)); | |
float color = NumberUtils.intToFloatColor(intBits); | |
if (color == this.color) return; | |
this.color = color; | |
float[] vertices = this.vertices; | |
for (int i = 2, n = idx; i < n; i += 5) | |
vertices[i] = color; | |
} |
This file contains hidden or 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
"It's showtime!" | |
% | |
"Alright everyone, chill." | |
% | |
"Allow me to break the ice." | |
% | |
"I need you clothes, your boots and your motorcycle." | |
% | |
"What the hell did you do to him, man?" | |
"I did nothing. The pavement was his enemy." |
This file contains hidden or 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
int fib(int x){ | |
if(x <= 0) | |
return 0; | |
if(x == 1) | |
return 1; | |
return fib(x - 1) + fib(x - 2); | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style> | |
<body> | |
<div style="max-width:900px; -webkit-transform:rotate(0deg);"> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> |
This file contains hidden or 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
FATAL EXCEPTION: main | |
java.lang.IllegalArgumentException: pointerIndex out of range | |
at android.view.MotionEvent.nativeGetAxisValue(Native Method) | |
at android.view.MotionEvent.getX(MotionEvent.java:1981) | |
at com.bitwaffle.guts.android.input.touch.TouchHandler.move(TouchHandler.java:90) | |
at com.bitwaffle.guts.android.input.touch.TouchHandler.touchEvent(TouchHandler.java:71) | |
at com.bitwaffle.guts.android.SurfaceView.onTouchEvent(SurfaceView.java:44) | |
at android.view.View.dispatchTouchEvent(View.java:7239) | |
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174) | |
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917) |
NewerOlder