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
$ rails -v | |
Rails 3.1.0.rc4 | |
$ rails plugin new my_engine --skip-bundle -O --old-style-hash --full | |
$ cd my_engine | |
$ rails g --help | |
/home/x/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc4/lib/rails/railtie.rb:192:in `load_generators': wrong number of arguments (0 for 1) (ArgumentError) | |
from /home/x/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc4/lib/rails/generators.rb:331:in `load_generators_from_railties!' | |
from /home/x/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc4/lib/rails/generators.rb:313:in `lookup!' | |
from /home/x/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc4/lib/rails/generators.rb:217:in `help' | |
from /home/x/.rvm/gems/ruby-1.9.2-p136/gems/railties-3.1.0.rc4/lib/rails/commands/generate.rb:7:in `<top (required)>' |
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
-# This renders perfectly. | |
= bubbl | |
-# This doesnt render... why? | |
= bubble |
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
# ... | |
browserify = require 'browserify' | |
fileify = require 'fileify' | |
# Set up the browserify client bundle. | |
bundle = browserify | |
watch: true | |
bundle.use fileify("templates", "#{__dirname}/../../client/site/projects") |
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 'shellwords' | |
module Jekyll | |
class StylusConverter < Converter | |
safe true | |
def matches(ext) | |
ext =~ /\.styl/i | |
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
# Be sure to set the following in the `_config.yml`. | |
# | |
# markdown: rdiscount | |
# rdiscount: | |
# extensions: [generate_toc] | |
# | |
module Jekyll | |
class MarkdownConverter | |
def convert(content) | |
setup |
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 'term/ansicolor' | |
include Term::ANSIColor | |
dir = ARGV[0].gsub /\/$/, "" | |
def compile(d) | |
`(cd #{d} && g++ *.cpp)` # -Wall | |
return $? == 0 | |
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
require 'shellwords' | |
module Jekyll | |
class StratusColorBlock < Liquid::Block | |
def initialize(tag_name, markup, tokens) | |
super | |
@lang = markup | |
end | |
def render(context) |
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
### | |
Allow the user to download a file or a directory as a _.tar.gz_ | |
compressed version. | |
### | |
fs = require "fs" | |
{exec} = require "child_process" | |
{resolve} = require "path" | |
# `callback` receives `(tarPath)` |
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
{ "fractus.autocomplete": "Control- " | |
, "file.recent.limit": 0 | |
, "save-on-blur": | |
[ "CSS" | |
, "Sass" | |
, "Stylus" | |
] | |
} |
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
$ npm install hook.io -g [40/1895] | |
> [email protected] preinstall /home/x/local/lib/node_modules/hook.io/node_modules/mdns | |
> node-waf clean || true; node-waf configure build | |
> [email protected] preinstall /home/x/local/lib/node_modules/hook.io/node_modules/weak | |
> node build.js | |
Nothing to clean (project not configured) |
OlderNewer