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
#!/usr/bin/perl -i | |
use strict; | |
use warnings; | |
# Slic3r 0.9.8 Post Processing Script to make it work with MakerWare 2.0 and Firmware 7 (only tested on a Rep1) | |
# Dualstrusion works | |
# Support on secondary extruder works | |
# Save this file somewhere, then under Print Settings, Output Options, Post-processing scripts, enter path to this file | |
# Under Printer Settings, General, set G-code flavor to MakerBot, extruders 2, bedsize 225 x 145, etc... |
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
latest version now at: http://github.com/tbuser/openscad-bitmap | |
module make_atari_bitmap(char, block_size, height, include_base) { | |
if (char == "0") { | |
make_bitmap([ | |
0,0,0,0,0,0,0,0, | |
0,0,1,1,1,1,0,0, | |
0,1,1,0,0,1,1,0, | |
0,1,1,0,1,1,1,0, | |
0,1,1,1,1,1,1,0, |
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
function foo() { | |
alert('bar'); | |
} |
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
namespace :db do | |
task :pull do | |
run "cd #{current_release} && RAILS_ENV=#{rails_env} rake db:data:dump" | |
download "#{current_release}/db/data.yml", "db/data.yml" | |
`rake db:reset db:data:load` | |
end | |
end |
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
# 1) Point *.example.com in your DNS setup to your server. | |
# | |
# 2) Setup an Apache vhost to catch the star pointer: | |
# | |
# <VirtualHost *:80> | |
# ServerName *.example.com | |
# </VirtualHost> | |
# | |
# 3) Set the current account from the subdomain | |
class ApplicationController < ActionController::Base |