I hereby claim:
- I am dackdel on github.
- I am dackdel (https://keybase.io/dackdel) on keybase.
- I have a public key ASAZmOt_uUAZVGtMN-HebqnyMZ-HXmlQu1GiHNr_Dkvgdwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
void setup() { | |
size(800, 800); | |
background(#eeeeee); | |
} | |
void draw() { | |
background(random(255), random(255), random(255)); | |
translate(width/2, height/2); | |
for (int n=0; n<30; n++) { | |
stroke(random(255), random(255), random(255)); |
<html> | |
<head> | |
<!-- import jquery--> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<!-- import tramontana--> | |
<script src="https://rawgit.com/pierdr/tramontana/master/lib/tramontana_min.js"></script> | |
<!-- create a tramontana instance --> | |
<script> | |
var iphone=new tramontana(); | |
</script> |
#include <SPI.h> | |
#include <Adafruit_GFX.h> | |
#include <TFT_ILI9163C.h> | |
#include <dht.h> | |
//#include <DS1302.h> | |
//DS1302 rtc(1, 6, 7); | |
//#include <Fonts/FreeSerifItalic12pt7b.h> | |
dht DHT; |
# --------------------------------------------------------------------- | |
# Ankkit Modi / @dackdel | |
# Setting up a new computer for stuff in no real order | |
# --------------------------------------------------------------------- | |
# Command Line Tools via Xcode | |
# | |
1. Get Xcode from App Store | |
2. Open Xcode | |
3. Go to Preferences |
float x, y; | |
PFont font; | |
void setup() { | |
size (400, 400); | |
background(255); | |
smooth(); | |
font = createFont("Arial", 12, true); | |
x = random(width); | |
y = random (height); |
import apwidgets.*; | |
APWidgetContainer widgetContainer; | |
APToggleButton captureButton; | |
APButton resetButton; | |
void setup(){ | |
widgetContainer = new APWidgetContainer(this); |
// Original code from http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ | |
var metas = document.getElementsByTagName('meta'); | |
var i; | |
if (navigator.userAgent.match(/iPhone/i)) { | |
for (i=0; i<metas.length; i++) { | |
if (metas[i].name == "viewport") { | |
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | |
} | |
} |