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
/* | |
This code will enable auto claibration of light sensors. | |
After uploading the code when you switch on the Arduino, within 10 seconds: | |
For the base senosr: | |
Bgring the sensor to a hole , so that it can see the light followed by covering it so that it can see dark. Do it couple of times with in 10 secs | |
so that the microcontroller knows and what is the value to reffer to when it sees light and adrk again . |
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
ArrayList<Pathfinder> pathsLeft = new ArrayList<Pathfinder>(); | |
ArrayList<Pathfinder> pathsRight = new ArrayList<Pathfinder>(); | |
PVector center; | |
PGraphics canvas; | |
void setup() { | |
size(displayWidth, displayHeight); | |
canvas = createGraphics(displayWidth * 2, displayHeight * 2); | |
canvas.beginDraw(); |
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
#--------------------- network File------------------------- | |
# vi /etc/config/network | |
config interface 'loopback' | |
option ifname 'lo' | |
option proto 'static' | |
option ipaddr '127.0.0.1' | |
option netmask '255.0.0.0' | |
config globals 'globals' | |
option ula_prefix 'fd82:9ec9:5222::/48' |
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
#!/usr/bin/env python | |
import argparse | |
import matplotlib.pyplot as plt | |
import librosa | |
import numpy as np | |
import os | |
from progressbar import ProgressBar | |
parser = argparse.ArgumentParser( |
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 t; | |
float size = 40; //50 | |
boolean makeGIF = true; | |
void setup(){ | |
//size(540, 540); | |
size(270,270); | |
} | |
void draw(){ |
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 android.os.Environment; | |
PImage img; | |
PImage imgTwo; | |
String directory = ""; | |
String filename = "beloved.jpg"; | |
void setup() { | |
size(displayWidth, displayHeight); |
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
// Marius Watz - http://workshop.evolutionzone.com | |
// | |
// Window frame control: Disable frame decoration (see | |
// init() function), manipulate frame position (see | |
// keyPressed(), draw() ) | |
int framePosX=0; | |
int framePosY=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 subprocess | |
import time | |
tabs = 0 | |
#----------------- open a new tab | |
def open_new_tab(serach_website): | |
new_tab_cmd = "osascript -e 'tell application \"Google Chrome\" to open location \"https://" + serach_website + "\" & activate'" | |
# this will be executed from a shell moment and will open 3 tabs | |
new_tab_code = subprocess.call(new_tab_cmd, shell=True) |
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
~~(WIP videos) >> https://vimeo.com/groups/421216 ~~ | |
It has been moved to : | |
https://www.youtube.com/playlist?list=PLytT-JPS5UET1wDMpvR-gZJ9yLMduNlcg | |
OlderNewer