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
G91 ; Relative positioning for all axes | |
G92 E0 | |
G1 E-8 F3600 ; retract 5mm at 60mm/s | |
G0 Z20 F4800 | |
G28 X0 ; home x axis | |
M106 S0 ; turn off cooling fan | |
M104 S0 ; turn off extruder | |
M140 S0 ; turn off bed | |
M84 ; disable motors |
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 mmh3 | |
import array | |
import math | |
import matplotlib.pyplot as plt | |
import numpy as np | |
class CMSketch(object): | |
def __init__(self): |
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
app.xml: | |
<keymap> | |
<global> | |
<appcommand> | |
<browser_home>PreviousMenu</browser_home> | |
<launch_mail>stop</launch_mail> | |
</appcommand> | |
</global> | |
</keymap> |
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
<advancedsettings> | |
<video> <!-- Stop XBMC indexing some unwanted common items --> | |
<excludetvshowsfromscan action="prepend"> | |
<regexp>(?i)sample</regexp> <!-- Greedy, whole path, case insensitive ignore --> | |
<regexp>(?i)uTorrentPartFile</regexp> <!-- Ignore common scrap files --> | |
<regexp>[\/\\][sS]pecials?[\/\\]</regexp> | |
<regexp>[\/\\][Ee]xtras?[\/\\]</regexp> | |
<regexp>(?i)[\. \-_](?:nc)?(?:op|ed|sp|pv)[\. \-_\(\[\d]</regexp> | |
</excludetvshowsfromscan> | |
</video> |
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
class PCA: | |
def __init__(self): | |
self.e_values = None | |
self.e_vectors = None | |
self.mean_data = None | |
# Find all eigenvalues and eigenvectors | |
# data -> instances as rows | |
def prepare(self, data): | |
# Substract mean |
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
# Change the default escape key to ` | |
escape `` | |
# Automatically change the title of the screen. | |
shelltitle '$ |' | |
# Windows start from number 1 instead of 0 | |
bind c screen 1 | |
bind ^c screen 1 | |
bind 0 select 10 |