Lecture 1: Introduction to Research — [
Lecture 2: Introduction to Python — [
Lecture 3: Introduction to NumPy — [
Lecture 4: Introduction to pandas — [
Lecture 5: Plotting Data — [
View list.md
View etkey.sh
#!/bin/bash | |
thisscript=$(readlink -f $0); | |
mygoto=`dirname $thisscript`; | |
myhome=$HOME; | |
FLOOR=99999; | |
export TZ="GMT"; |
View console-polyfill.js
(function() { | |
let _std_out = ''; | |
let _std_err = ''; | |
/* | |
* HELPERS |
View StandardFirmataPlus.ino
/* | |
Firmata is a generic protocol for communicating with microcontrollers | |
from software on a host computer. It is intended to work with | |
any host computer software package. | |
To download a host software package, please click on the following link | |
to open the list of Firmata client libraries in your default browser. | |
https://github.com/firmata/arduino#firmata-client-libraries |
View Renderer.js
lychee.define('Renderer').tags({ | |
platform: 'html' | |
}).supports(function(lychee, global) { | |
/* | |
* XXX: typeof CanvasRenderingContext2D is: | |
* > function in Chrome, Firefox, IE10 | |
* > object in Safari, Safari Mobile | |
*/ |
View Brain.js
const _LEARNING_RATE = 0.3; | |
const _LEARNING_MOMENTUM = 0.9; | |
const _random = function() { | |
return (Math.random() * 2) - 1; | |
}; | |
const Brain = function(network) { |
View rot32.js
const _DICTIONARY = new Array(96).fill('').map((a,v) => String.fromCharCode(32 + v)); | |
const _encode_rot32 = function(string) { | |
return Array.prototype.map.call(string, val => _DICTIONARY[(32 + _DICTIONARY.indexOf(val)) % _DICTIONARY.length]).join(''); | |
}; | |
const _decode_rot32 = function(string) { | |
return Array.prototype.map.call(string, val => _DICTIONARY[(_DICTIONARY.indexOf(val) - 32 + _DICTIONARY.length) % _DICTIONARY.length]).join(''); | |
}; |
View refactor_po.js
#!/usr/bin/env node | |
/* | |
* XXX: This helper script is for usage with the GNOME Shell fork at | |
* https://github.com/cookiengineer/gnome-shell | |
* | |
* It will refactor "out" all PO translation sections that start with | |
* any of the filtered entries below. | |
*/ |
View apt-pac.sh
#!/bin/bash | |
# Save this file as /usr/bin/apt-pac and chmod +x it. | |
case "$1" in | |
autoremove) | |
pacman -Rns $(pacman -Qdtq); | |
;; |
View split_bootimg.pl
#!/usr/bin/perl | |
###################################################################### | |
# | |
# File : split_bootimg.pl | |
# Author(s) : William Enck <enck@cse.psu.edu> | |
# Description : Split appart an Android boot image created | |
# with mkbootimg. The format can be found in | |
# android-src/system/core/mkbootimg/bootimg.h | |
# | |
# Thanks to alansj on xda-developers.com for |