Skip to content

Instantly share code, notes, and snippets.

View fiskurgit's full-sized avatar
🌑
...

öppenteknikstudio fiskurgit

🌑
...
View GitHub Profile
PShape box;
int vertexCount;
float xRotation;
float yRotation;
float zRotation;
ArrayList<PVector> coords = new ArrayList();
boolean mouseRotate = true;
PShape sphere;
int sphereDetail = 8;
int vertexCount;
float xRotation;
float yRotation;
float zRotation;
ArrayList<PVector> coords = new ArrayList();
PShape sphere;
int sphereDetail = 8;
float xRotation;
float yRotation;
float zRotation;
ArrayList<PVector> coords = new ArrayList();
boolean rotateActive = true;
@fiskurgit
fiskurgit / 3Dto2D.pde
Created May 30, 2018 17:53
Draw 3d object in 2d space...
PShape shape;
float xmag, ymag = 0;
float newXmag, newYmag = 0;
void setup(){
size(500, 500, P3D);
noFill();
stroke(255, 0, 0);
shape = makeCube();
@fiskurgit
fiskurgit / MicroBitSerialSpeech.py
Last active December 15, 2017 14:34
Text to Speech using Processing and a BBC Micro:Bit
from microbit import *
import speech
uart.init(9600)
word = ""
while True:
word = str(uart.readline())
if word and word != "None":
int[] xAnchors = new int[4];
int[] yAnchors = new int[4];
int columns = 12;
int rows = 8;
int columnWidth;
int rowHeight;
int frameSize = 40;
@fiskurgit
fiskurgit / Helox_001.java
Last active February 7, 2017 15:28
Processing.org - double helix.
int cx, cy;
int segmentCount = 70;
int stepHeight = 1000;
int step = 0;
float plotDiameter, plotRadius;
void setup(){
size(500, 500, OPENGL);
cx = width/2;
cy = height/2;
tell application "System Events"
set change interval of current desktop to change interval of current desktop
end tell
@fiskurgit
fiskurgit / charge.sh
Created June 14, 2016 18:01
Un-brick Android bash script
#!/bin/bash
fastboot getvar battery-voltage
fastboot reboot-bootloader
sleep 5s
bash ./charge.sh && exit

Keybase proof

I hereby claim:

  • I am fiskurgit on github.
  • I am fiskur (https://keybase.io/fiskur) on keybase.
  • I have a public key whose fingerprint is A100 5757 8E69 BFEA 76D3 3AEE 58D6 8052 4F96 14F5

To claim this, I am signing this object: