Skip to content

Instantly share code, notes, and snippets.

@yjroot
yjroot / FFT
Last active February 24, 2016 10:43 — forked from anonymous/FFT
import pylab as pl
import numpy as np
class FFT :
def __init__(self, file='data.csv'):
self.file=file
self.readFile()
def readFile(self) :
xy = np.loadtxt(self.file, delimiter=",", skiprows=1).transpose()
@yjroot
yjroot / hex_tri_screw.stl
Last active August 29, 2015 14:25
hex_tri_screw.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function GetForkButton(uid)
{
return document.getElementById('poke_live_item_' + uid).firstChild.firstChild.nextSibling.firstChild.nextSibling.firstChild.nextSibling.firstChild.firstChild
}
function AutoFork(uid){
fork_button = GetForkButton(uid)
if (fork_button.tagName != 'A'){
setTimeout(function(){AutoFork(uid)}, (5000+Math.random()*5000))
#!/usr/bin/env python
import sys, time
from daemon import Daemon
class MyDaemon(Daemon):
def run(self):
while True:
time.sleep(1)
#include <avr/io.h>
#include <util/delay.h>
void inkjet_init(){
PORTB &= ~0x07; //0000 0218
DDRB |= 0x07;
PORTC &= ~0x3e; //0076 5430
DDRC |= 0x3e;