A Pen by Andreas Storm on CodePen.
This file contains 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
// 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"; | |
} | |
} |
This file contains 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
import apwidgets.*; | |
APWidgetContainer widgetContainer; | |
APToggleButton captureButton; | |
APButton resetButton; | |
void setup(){ | |
widgetContainer = new APWidgetContainer(this); |
This file contains 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
float x, y; | |
PFont font; | |
void setup() { | |
size (400, 400); | |
background(255); | |
smooth(); | |
font = createFont("Arial", 12, true); | |
x = random(width); | |
y = random (height); |
This file contains 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
# --------------------------------------------------------------------- | |
# 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 |
This file contains 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 <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; |
This file contains 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
<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> |
This file contains 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
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)); |
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: