Skip to content

Instantly share code, notes, and snippets.

View dackdel's full-sized avatar

dackdel dackdel

View GitHub Profile

Keybase proof

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:

@dackdel
dackdel / circles
Created February 10, 2019 11:53
processing sketch on generative circles
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
@dackdel
dackdel / Radio-Button.markdown
Created February 26, 2014 18:51
A Pen by Andreas Storm.
@dackdel
dackdel / gist:5051610
Created February 27, 2013 20:52
angle between vectors
float x, y;
PFont font;
void setup() {
size (400, 400);
background(255);
smooth();
font = createFont("Arial", 12, true);
x = random(width);
y = random (height);
@dackdel
dackdel / gist:5047245
Last active December 14, 2015 06:59
apWidget for Map
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";
}
}