Skip to content

Instantly share code, notes, and snippets.

@xoan
xoan / README.md
Created November 25, 2010 10:11
Cineforiano Live

Live Show Script

Requisites

Install flashcam (in order to provide vloopback)

$ wget -c http://www.swift-tools.net/Flashcam/flashcam-1.4.5.tgz
$ tar xfzv flashcam-1.4.5.tgz
@xoan
xoan / myheadings.sty
Created January 25, 2012 21:30
Header / Footer in LaTeX with fancyhdr
\usepackage{fancyhdr}
\setlength{\headheight}{14pt}
\renewcommand{\headrulewidth}{0pt}
% Need to define \titlename and \authorname
%% Inner Header / Outer Footer
\lhead[]{\fancyplain{}{\footnotesize\titlename}}
\rhead[\footnotesize\nouppercase\authorname]{}
\lfoot[\thepage]{}
@xoan
xoan / xui.data.js
Created June 13, 2012 17:16
Add data attribute support to xui.js
xui.extend({
data: function(attribute, val) {
if (arguments.length == 2) {
return this.attr(attribute, val);
} else {
return this.attr(attribute);
}
}
});
@xoan
xoan / WebViewActivity.java
Created June 19, 2012 12:28
HTML5 WebDatabase support in android WebView
package com.example.webview;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebStorage.QuotaUpdater;
import android.webkit.WebView;
@xoan
xoan / TestActivity.java
Created June 21, 2012 09:36
Cordova Test Application (with zoom support)
package com.example.test;
import android.app.Activity;
import android.os.Bundle;
import org.apache.cordova.*;
public class TestActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
module mount_block() {
intersection() {
translate(v = [0,0,7/2]) cube(size = [64,15, 7], center = true);
cylinder(r = 64/2, h = 7, $fn = 100);
}
}
module mount_holes() {
// Filament hole
translate(v = [0,0, -1]) cylinder(r = 2, h = 9, $fn = 30);
@xoan
xoan / Configuration.h
Created June 19, 2013 20:48
Gen7 LCD I2C support on Marlin
#define ULTRA_LCD
#define LCD_I2C_TYPE_PCF8575
#define LCD_I2C_ADDRESS 0x20
#define NEWPANEL
@xoan
xoan / HS1101.ino
Last active December 27, 2015 02:19
#include <Wire.h>
#include <LiquidCrystal.h>
#define LM35DATA 5 // Analog
#define HS1101DATA 47 // TCNT5 (the only timer in Mega?)
#define HS1101POWER 7
#define DEBUG
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
@xoan
xoan / FoldaRap.ini
Last active August 29, 2015 14:08
Slic3r 1.1.7 config for FoldaRap
avoid_crossing_perimeters = 0
bed_size = 140,140
bed_temperature = 0
bottom_solid_layers = 2
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 40
brim_width = 0
complete_objects = 0
@xoan
xoan / Configuration.h
Last active February 10, 2016 22:51
Marlin 1.0 basic configuration
//// MOVEMENT SETTINGS
#define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
#define HOMING_FEEDRATE {60*60, 60*60, 4*60, 0} // set the homing speeds (mm/min)
// default settings
#define DEFAULT_AXIS_STEPS_PER_UNIT {(200*16)/(2*16), (200*16)/(2*16), (200*8)/0.8, 175}
#define DEFAULT_MAX_FEEDRATE {300, 300, 4, 100} // (mm/sec)
#define DEFAULT_MAX_ACCELERATION {3000, 3000, 200, 9000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.
#define DEFAULT_ACCELERATION 1500 // X, Y, Z and E max acceleration in mm/s^2 for printing moves