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
require 'find' | |
require 'rubygems' | |
require 'digest/md5' | |
gem 'net-sftp', '<2.0.0' | |
require 'net/sftp' | |
class SftpDirPublisher | |
CHECKSUM_FILENAME = ".checksums" | |
attr_reader :host, :username, :password, :remote_dir, :local_dir, :exclude |
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
# module: sftp | |
# A generic Thor module for sftp syncing. | |
# | |
# 1. Call `thor sftp:setup` to create config file. | |
# 2. Edit the config file | |
# 3. Call `tor sftp:sync` start the sync | |
# | |
# Ze 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
// | |
// Graphic Novelist (graphic-novelist.js) | |
// Created by M@ McCray | |
// site: http://mattmccray.com | |
// email: matt at elucidata dot net | |
// | |
// API: | |
// | |
// GraphicNovelist.parse( text ) -> Parse text into array of script Nodes | |
// GraphicNovelist.renderNodes( nodes ) -> Renders array of script Nodes into HTML |
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
/* | |
Scrippets: | |
Blocks of text formatted as a screenplay | |
Original Ruby script by John August: | |
site: http://johnaugust.com | |
script: http://pastie.org/257717 | |
css: http://pastie.org/257678 | |
JavaScript version by M@ McCray: |
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
// PROJECT MOVED TO: http://github.com/darthapo/liquid.js | |
/* Copyright (c) 2005, 2006 Tobias Luetke, | |
JavaScript port by M@ McCray (http://www.mattmccray.com) | |
Requires Mootools 1.2 | |
http://github.com/darthapo/liquid.js/wikis | |
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
# A webby filter for turning absolute paths (paths that start with a slash "/") | |
# into relative paths ("../"). | |
# | |
# Should be used as a filter for Layouts. | |
# | |
# Created by: M@ McCray (http://mattmccray.com) | |
require 'hpricot' | |
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/env ruby | |
# | |
# file_organizer.rb | |
# (http://gist.github.com/16180) | |
# | |
# By M@ McCray -- www.mattmccray.com (matt at elucidata dot net) | |
# | |
# Usage: | |
# | |
# organize_files_within( target_folder ) |
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
desc "Compiles haml files (and hamlets) - v1.2" | |
task :hamlet do | |
# by M@ | |
require 'rubygems' | |
require 'haml' | |
require 'fileutils' | |
main_files = [] | |
@@src_path = File.expand_path( ENV.fetch('SRC', './') ) | |
@@out_path = File.expand_path( ENV.fetch('OUT', './') ) |
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
# For use with red: http://github.com/backtik/red/tree/master | |
require 'redshift' | |
# | |
# Usage: | |
# | |
# // The following are all comparable | |
# Styles.selectors['.task-entry'].properties[:width] = '300px' | |
# Styles['.task-entry'].properties[:width] = '300px' | |
# Styles['.task-entry'][:width] = '300px' |
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
!columns ||= 12 | |
!column_width ||= 60 | |
!column_margin ||= 20 | |
.row | |
overflow: hidden | |
margin: 0 auto | |
width: #{!columns * !column_width + !columns * !column_margin}px | |
.row |
OlderNewer