Skip to content

Instantly share code, notes, and snippets.

View TranquilMarmot's full-sized avatar
🛸
Better Nate than Lever

Nate Moore TranquilMarmot

🛸
Better Nate than Lever
View GitHub Profile
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)
<!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)">
int fib(int x){
if(x <= 0)
return 0;
if(x == 1)
return 1;
return fib(x - 1) + fib(x - 2);
}
@TranquilMarmot
TranquilMarmot / arnold_fortune
Last active December 14, 2015 18:38
Arnold fortune
"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."
@TranquilMarmot
TranquilMarmot / gist:5456079
Created April 24, 2013 22:19
What in sam hill
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;
}
#include<stdio.h>
#include<time.h>
int main(){
time_t now, then;
time(&now);
int i;
for(i = 0; i < 1000000; i++){
// do nothing?
Compiling with SSL support
-- checking for module 'openssl'
-- package 'openssl' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindOpenSSL.cmake:244 (find_package_handle_standard_args)
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Name|Number
Zelenia|-0.15514031490306
Jana|0.26035423480434
Ariana|0.54730114984997
Martin|-0.020354777126382
Blythe|0.030353115846311
Alfreda|-0.073044525147702
Katell|0.17497148833083
Alea|-0.17967283320587
Prescott|-0.13148820963037
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Name|Number|Money
Isaiah|83498|4
Mariko|16819|7
Cathleen|2158RX|5
Samuel|2840NL|2
Uma|444597|8
Guy|517990|9
Valentine|23177|5
Guy|59305|3
Flavia|C0P 2V7|2
syntax on
set background=dark
set autoindent
set expandtab
set shiftwidth=2
set tabstop=2