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
# -*- coding: utf-8 -*- | |
import numpy as np | |
import pylab as pl | |
import datetime | |
import pytz | |
import time | |
from time import mktime | |
from matplotlib.dates import strpdate2num, epoch2num, num2date | |
tz = pytz.timezone('Asia/Taipei') |
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
p5E3(%^}&;tUww!D"#IK#XFZ4 |
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
############################################################## | |
japanimo.name=Japanimo | |
japanimo.upload.protocol=arduino | |
japanimo.upload.maximum_size=14336 | |
japanimo.upload.speed=19200 | |
japanimo.bootloader.low_fuses=0xff | |
japanimo.bootloader.high_fuses=0xdd |
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 numpy as np | |
import pylab as plt | |
import string | |
import random | |
## Just generate some data | |
sets, items = 500, 200 # number of symbols, number of datapoints for each symbol | |
dataset = np.random.random((sets, items)) - 0.5 | |
up = string.ascii_uppercase | |
n = len(up) |
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
diff --git a/p32/include/pinguino/core/digitalw.c b/p32/include/pinguino/core/digitalw.c | |
index dee0ffe..e10b1c0 100755 | |
--- a/p32/include/pinguino/core/digitalw.c | |
+++ b/p32/include/pinguino/core/digitalw.c | |
@@ -89,17 +89,20 @@ const u32 pinmask[]={_2,_3,_0,_5,_6,_7,_8,_11, // 0-7 | |
#ifdef PIC32_PINGUINO_T795 | |
const u32 portmask[]= | |
- {pD,pD,pD,pD,pD,pD,pD,pD, // 0-7 | |
- pB,pB,pG,pG,pG,pG,pB,pB, // 8-15 |
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
// File = LilyPadBoot_168.hex | |
byte PROGMEM LilyPadBOOT_168_hex [] = { | |
0x0C, 0x94, 0x34, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, | |
0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, | |
0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, | |
0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, | |
0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, | |
0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, | |
0x0C, 0x94, 0x4F, 0x1C, 0x0C, 0x94, 0x4F, 0x1C, 0x11, 0x24, 0x1F, 0xBE, 0xCF, 0xEF, 0xD4, 0xE0, |
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
# mongodb.conf | |
# Where to store the data. | |
#dbpath=/var/lib/mongodb | |
#where to log | |
#logpath=/var/log/mongodb/mongodb.log | |
logappend=true | |
#bind_ip = 127.0.0.1 |
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
http://www.sciencedirect.com/science/article/pii/0003491660901263 |
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
#!/bin/bash | |
# Put all PDF in a single numbered directory on its own (from 01...) | |
# Change the upper limit here to the number of directories created | |
# Expcet Ignite style talk (that is 20 or so slides) | |
for i in {01..13} | |
do | |
cd $i | |
# find filename |
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
#!/bin/bash | |
fullname=$1 | |
filename=$(basename "$fullname") | |
extension="${filename##*.}" | |
filename="${filename%.*}" | |
if [ -f "audio.wav" ] | |
then |