View end.gcode
M104 S0 ; turn off extruder | |
M140 S0 ; turn off heatbed | |
M107 ; turn off fan | |
G91 ; relative positioning | |
G1 Z25 ; raise head 25mm | |
G90 ; back to absolute positioning | |
G1 X0 Y220; home X axis and push Y forward | |
M84 ; disable motors | |
View darkstar.py
# -*- coding: utf-8 -*- | |
""" | |
Darkstar | |
"Talk to the amp. You have to talk to it, Doolittle. Teach it PHENOMENOLOGY." | |
Control a Blackstar ID guitar amplifier with MIDI Program Change and | |
Control Change messages. | |
Author: Todd Hartmann |
View Gemfile
source "https://rubygems.org" | |
gem 'eventmachine' | |
gem 'sinatra' | |
gem 'yajl-ruby', require: 'yajl' | |
gem 'thin' | |
gem 'em-websocket' |
View CuadradoMagico.java
package cuadrado; | |
public class CuadradoMagico { | |
private int[][] m; | |
public CuadradoMagico(int[][] digitos){ | |
this.m = digitos; | |
} | |
// Public Functions |