Skip to content

Instantly share code, notes, and snippets.

View TheSkorm's full-sized avatar

Michaela Wheeler TheSkorm

View GitHub Profile
#run as root and run this first
# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
# derived from http://code.activestate.com/recipes/409689-icmplib-library-for-creating-and-reading-icmp-pack/
# https://gist.github.com/pklaus/856268
# Distributable under the terms of the GNU General Public License
# version 2. Provided with no warranties of any sort.
inputcsv = """0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Keybase proof

I hereby claim:

  • I am theskorm on github.
  • I am mwheeler (https://keybase.io/mwheeler) on keybase.
  • I have a public key whose fingerprint is 05C6 ED26 D13E 0ED1 FD3D 47B7 EF7E 3141 5926 5359

To claim this, I am signing this object:

#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
// User-specified version info of this build to display in [Pronterface, etc] terminal window during
// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
// build by the user have been successfully uploaded into firmware.
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include "boards.h"
#include "macros.h"
//===========================================================================
//============================= Getting Started =============================
//===========================================================================
/*
default_feed_rate 5400 # Default rate ( mm/minute ) for G1/G2/G3 moves
default_seek_rate 5400 # Default rate ( mm/minute ) for G0 moves
mm_per_arc_segment 0.5 # Arcs are cut into segments ( lines ), this is the length for
# these segments. Smaller values mean more resolution,
# higher values mean faster computation
#mm_per_line_segment 0.5 # Lines can be cut into segments ( not useful with cartesian
# coordinates robots ).
delta_segments_per_second 100 # for deltas only same as in Marlin/Delta, set to 0 to disable
# and use mm_per_line_segment
// npm install irc requests slack-client tail
Slack = require('slack-client');
slackToken = ''
autoReconnect = true
autoMark = true
slack = new Slack(slackToken, autoReconnect, autoMark)
// This script can be run in AWS Lambda and simply just searches for all cards on a list and turns them into a checklist on a predefined card.
// Any checklist items that are checked off will also remove the cards
// The checklist can be deleted and will be created again with all the remaining cards.
var Trello = require("trello");
var trello = new Trello("", "");
board = '';
list_check = '';
check_list_id = "";
@TheSkorm
TheSkorm / .py
Created December 10, 2015 03:15
f = open('Downloads/input.txt', 'r')
chars=0
memory=0
for line in f:
print bytes(line[:-1])
print len(bytes(line[:-1]))
print len(line.decode('string_escape'))-3
memory += len(bytes(line[:-1]))
chars += len(line.decode('string_escape'))-3
results = {"b": 956}
queue = a.split("\n")
while queue:
test = queue.pop(0)
(operation, resultant) = test.split(" -> ")
spaces = operation.count(" ")
print test
process=True
# Automatically generated LIRC file
#
# Creating tool: IrScrutinizer version 0.1.0pre
# Creating user: bengt
# CreateDate: Sun Sep 01 21:47:20 CEST 2013
#
#
# Export from IrScrutinizer
#
begin remote