This file contains hidden or 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 ModalDialogHelper | |
| def modal_dialog(options={},&block) | |
| content_tag :div, {class: 'modal hide fade', tabindex: -1, role: 'dialog'}.merge(options), &block | |
| end | |
| def modal_header(options={},&block) | |
| content_tag :div, {class: 'modal-header'}.merge(options), &block | |
| end | |
| def modal_body(options={},&block) |
This file contains hidden or 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
| autoload colors && colors | |
| # cheers, @ehrenmurdick | |
| # http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh | |
| git_branch() { | |
| echo $(/usr/bin/git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'}) | |
| } | |
| git_dirty() { | |
| st=$(git status -sb 2>/dev/null | wc -l) |
This file contains hidden or 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
| cities = City.all | |
| cities.map(&:name) # ['City 1', 'City 2'] |
This file contains hidden or 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
| alias svnu='svn up' | |
| alias sst='svn stat' | |
| alias slog='svn log -l 10' | |
| alias scm='svn commit -m' | |
| alias sme='svn merge' | |
| alias sdf='svn diff | vim -' | |
| svs() { | |
| svn stat | grep -v "classpath" | grep -v "/bin" | grep -v ".settings" | grep -v ".project" | grep -v "target" | |
| } |
This file contains hidden or 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
| package factj.test; | |
| import factj.FactJ; | |
| public class Application { | |
| public static void main(String[] args) { | |
| PersonFabricator.load(); | |
| System.out.println(FactJ.build(Person.class)); | |
| System.out.println(FactJ.build(Person.class)); | |
| } |
NewerOlder