Skip to content

Instantly share code, notes, and snippets.

View mattr-'s full-sized avatar

Matt Rogers mattr-

View GitHub Profile
@mattr-
mattr- / Preferences.sublime-settings
Created February 5, 2013 16:52
My Sublime Text Settings
{
"ensure_newline_at_eof_on_save": true,
"font_options":
[
"directwrite"
],
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
@mattr-
mattr- / errlog
Created April 16, 2013 21:02
really long error message stuff from vmg/redcarpet#140
03:38:12 web.1 | Started GET "/apidoc" for 127.0.0.1 at 2012-06-28 03:38:12 -0500
03:38:12 web.1 | Processing by Restapi::RestapisController#index as HTML
03:38:12 web.1 | /Users/krainboltgreene/Code/Ruby/manacurve-api/vendor/ruby/1.9.1/gems/restapi-0.0.4/lib/restapi/markup.rb:27: [BUG] Segmentation fault
03:38:12 web.1 | ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
03:38:12 web.1 |
03:38:12 web.1 | -- Control frame information -----------------------------------------------
03:38:12 web.1 | c:0087 p:---- s:0463 b:0463 l:000462 d:000462 CFUNC :render
03:38:12 web.1 | c:0086 p:0015 s:0459 b:0459 l:000458 d:000458 METHOD /Users/krainboltgreene/Code/Ruby/manacurve-api/vendor/ruby/1.9.1/gems/restapi-0.0.4/lib/restapi/markup.rb:27
03:38:12 web.1 | c:0085 p:0037 s:0455 b:0455 l:000454 d:000454 METHOD /Users/krainboltgreene/Code/Ruby/manacurve-api/vendor/ruby/1.9.1/gems/restapi-0.0.4/lib/restapi/helpers.rb:4
03:38:12 web.1 | c:0084 p:0020 s:0451 b:0451 l:
@mattr-
mattr- / gist:5457306
Created April 25, 2013 03:27
Installing redcarpet and Jekyll 1.0.0rc1
$ gem install redcarpet && gem install jekyll --pre
Building native extensions. This could take a while...
Successfully installed redcarpet-2.2.2
1 gem installed
Installing ri documentation for redcarpet-2.2.2...
Installing RDoc documentation for redcarpet-2.2.2...
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Building native extensions. This could take a while...
Successfully installed liquid-2.5.0
@mattr-
mattr- / gist:5993180
Last active December 19, 2015 17:39
kramdown hack
doc = Kramdown::Document.new(full_text_as_string)
output = Kramdown::Converter::HTML.convert(doc, our_options_hash)
redcarpet:
extensions: []
generate_toc: true # this line is new
I also got the same problem, especially when use with AMD RequireJS, and optimised by r.js\r\n\r\n```\r\n$ r.js -o build.js \r\n\r\nTracing dependencies for: main\r\n\r\n/Project/www/scripts/main-built.js\r\n----------------\r\n/Project/www/scripts/less.js\r\n/Project/www/scripts/sockjs-0.3.4.min.js\r\n/Project/www/scripts/jquery-1.8.2.min.js\r\n/Project/www/scripts/jquery.ba-hashchange-1.3.js\r\n/Project/www/scripts/vertxbus.js\r\n/Project/www/scripts/can/util/can.js\r\n/Project/www/scripts/can/util/array/each.js\r\n/Project/www/scripts/can/util/jquery.js\r\n/Project/www/scripts/can/util/library.js\r\n/Project/www/scripts/can/view.js\r\n/Project/www/scripts/can/util/string.js\r\n/Project/www/scripts/can/util/bind.js\r\n/Project/www/scripts/can/observe/compute.js <<< Note here, No can/observe was included\r\n/Project/www/scripts/can/view/elements.js\r\n/Project/www/scripts/can/view/scanner.js\r\n/Project/www/scripts/can/view/node_lists.js\r\n/Project/www/scripts/can/view/live.js\r\n/Project/www/scripts/can/vi
@mattr-
mattr- / gist:6067654
Created July 24, 2013 02:22
Corrected markdown
I also got the same problem, especially when use with AMD RequireJS, and
optimised by r.js
```
$ r.js -o build.js
Tracing dependencies for: main
/Project/www/scripts/main-built.js
----------------
@mattr-
mattr- / gist:6107477
Created July 29, 2013 20:24
Find test files with failures
rake test | grep ' test/' | cut -d':' -f1 | sort | uniq
@mattr-
mattr- / .rspec
Last active August 29, 2015 14:10 — forked from coreyhaines/.rspec
--colour
-I app
@mattr-
mattr- / Gemfile
Created December 25, 2014 04:22
jglovier.github.io updated Gemfile
source "https://rubygems.org"
gem 'github-pages', "31"
gem 'jekyll-redirect-from'
gem 'sass'
gem 'jekyll'