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
Why we need to structure our apps using engines within Rails Applications | |
model != controllers|views | |
controllers != models|1view | |
views != some models--->whatever these have | |
put core code into external engine (not the other way around) | |
rails plugin new myengine --full --mountable (places engine in namespaced module) | |
engines folder -> with engines1, engines2, etc. | |
structured app |
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 | |
# Class Variables | |
# One quick way to manage references between sub-classes through a parent class | |
# is to use a class variable. Class variable are designated by `@@` in front of a variable name. | |
# e.g. | |
class Foo | |
@@configuration_file = 'foo/bar.yml' |
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
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. | |
Post-install message from paperclip: | |
################################################## | |
# NOTE FOR UPGRADING FROM PRE-3.0 VERSION # | |
################################################## | |
Paperclip 3.0 introduces a non-backward compatible change in your attachment | |
path. This will help to prevent attachment name clashes when you have | |
multiple attachments with the same name. If you didn't alter your | |
attachment's path and are using Paperclip's default, you'll have to add |
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
make | |
* If you experience any problems building Crawl, please take a second look | |
* at INSTALL.txt: the solution to your problem just might be in there! | |
* rebuilding crawl: new build flags or prefix | |
* Need to build contribs: lua/src | |
make[1]: Entering directory `/media/Storage/rp-archive/raw/dungeon-crawl-soup/stone_soup-0.10.0/source/contrib' | |
make[2]: Entering directory `/media/Storage/rp-archive/raw/dungeon-crawl-soup/stone_soup-0.10.0/source/contrib/lua/src' | |
* rebuilding lua: new build flags or prefix | |
CC lapi.o | |
CC lcode.o |
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 Jekyll | |
class MembersGenerator < Generator | |
safe true | |
def generate(site) | |
puts "Test!!!!" | |
end | |
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
safe: true | |
source: . | |
plugins: ./_plugins | |
destination: _site | |
lsi: true | |
pygments: true |
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 of 1] Compiling Main ( /tmp/haskell-src-exts-1.11.124942/haskell-src-exts-1.11.1/Setup.hs, /tmp/haskell-src-exts-1.11.124942/haskell-src-exts-1.11.1/dist/setup/Main.o ) | |
Linking /tmp/haskell-src-exts-1.11.124942/haskell-src-exts-1.11.1/dist/setup/setup ... | |
Configuring haskell-src-exts-1.11.1... | |
setup: happy version >=1.17 is required but it could not be found. | |
cabal: Error: some packages failed to install: | |
haskell-src-exts-1.11.1 failed during the configure step. The exception was: | |
ExitFailure 1 |
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
class String | |
JP_TRANSFORM = { | |
"a" => "ka", | |
"b" => "tu", | |
"c" => "mi", | |
"d" => "te", | |
"e" => "ku", | |
"f" => "lu", | |
"g" => "ji", |
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
(defun bf-pretty-print-xml-region (begin end) | |
"Pretty format XML markup in region. You need to have nxml-mode | |
http://www.emacswiki.org/cgi-bin/wiki/NxmlMode installed to do | |
this. The function inserts linebreaks to separate tags that have | |
nothing but whitespace between them. It then indents the markup | |
by using nxml's indentation rules." | |
(interactive "r") | |
(save-excursion | |
(nxml-mode) | |
(goto-char begin) |
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
GitHub username: fozze | |
Day job: Software Developer | |
Favorite open source project: curveship | |
Open Source contributions (if any): | |
Stranded on an island, what 3 items do you take: knife, hammer, shovel | |
Tie-breaker, pick a number between 1 and 20,000: 7659 |