Skip to content

Instantly share code, notes, and snippets.

View SeekBarPreference.java
package com.robobunny;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.Preference;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
View gist:11336880
asdf asdfa sdfm asdfl@gma.com sdfdlf "asdf@dsafldsf.cs" >aldsf@sadlfdsl.dfsds.com< sdlf.sdfloasdf-asdfkl55@c6-55-5dsf.com asdlf
View gist:10319578
/* This is a very simple program to create the mandelbrot set */
#include <stdio.h>
#include <fcntl.h>
#include <math.h>
#include <stdlib.h>
#define width 640
#define height 480
View gist:10020978
# script in python 3.3
import sys
import pprint
def vd (input):
pprint.pprint (input)
try:
file = open('input.txt', 'r')
View Qt 5 Dark Fusion Palette
qApp->setStyle(QStyleFactory::create("Fusion"));
QPalette darkPalette;
darkPalette.setColor(QPalette::Window, QColor(53,53,53));
darkPalette.setColor(QPalette::WindowText, Qt::white);
darkPalette.setColor(QPalette::Base, QColor(25,25,25));
darkPalette.setColor(QPalette::AlternateBase, QColor(53,53,53));
darkPalette.setColor(QPalette::ToolTipBase, Qt::white);
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
darkPalette.setColor(QPalette::Text, Qt::white);
View related_posts
View gist:7669808
package com.katariya.example;
import java.util.Random;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.SurfaceHolder;
@Chovanec
Chovanec / easeOutElastic.php
Created Oct 2, 2013
easeOutElastic easing function
View easeOutElastic.php
// t: current time, b: begInnIng value, c: change In value, d: duration
function ani ($t, $b, $c, $d)
{
$s = 1.70158;
$p = 0;
$a = $c;
if ($t == 0) return $b;
if (($t /= $d) == 1) return $b + $c;
View gist:5394184
package com.chovanec.runo;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
View gist:5144118
int main(int argc, char ** argv)
{
return 0;
}