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
NAME="My App" | |
APP_PATH="/var/apps/my_app/current" | |
UNICORN="/usr/local/rvm/wrappers/my_app/unicorn_rails" | |
ENVIRONMENT="production" |
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
%\usepackage{longtable} | |
%\usepackage{tabulary} | |
\newcommand{\cellOneOne}{ \textbf{Foobar} } | |
\newcommand{\cellOneTwo}{ \textbf{Foobar} } | |
\newcommand{\cellOneThree}{ \textbf{Foobar} } | |
% ----- ----- ----- ----- ----- ----- ----- ----- ----- |
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
class @Awesome | |
defaults: | |
isItAwesome: true | |
constructor: (element, options) -> | |
@element = $ element | |
@options = $.extend { }, @defaults, options | |
setup.call @ |
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
@mixin arrow($color: white, $padding: 0 0 0 pem(15)) | |
background: transparent url('/images/bundle/icons/arrows/#{$color}.gif') no-repeat left center | |
padding: $padding | |
@mixin underscore($border-color: #FFF, $border-bottom-width: 1px, $padding: 0 0 pem(1)) | |
display: inline-block | |
.label | |
border-bottom: #{$border-bottom-width} solid transparent | |
padding: $padding |
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
specs = Gem.latest_spec_for 'foo' | |
puts specs.gem_dir |
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
Handlebars.registerHelper 'forEach', (array, options) -> | |
return options.inverse @ if (options.inverse && !array.length) | |
array.map((item, index) -> | |
item.$index = index | |
item.$first = index is 0 | |
item.$last = index is array.length - 1 | |
options.fn item | |
).join '' |
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
#!/usr/bin/env rake | |
# encoding: utf-8 | |
require 'faker' | |
namespace :faker do | |
desc '“Fakes” name' | |
task :name do | |
puts Faker::Name.name | |
end |
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
#!/usr/bin/env monit | |
check host foobar.com with address foobar.com | |
group www | |
group foobar.com | |
if failed icmp type echo with timeout 5 seconds for 1 cycles then alert | |
if failed port 80 protocol http timeout 5 seconds for 1 cycles then alert | |
if failed url http://foobar.com timeout 5 seconds for 1 cycles then alert |
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
$('.v-app').livequery(function() { | |
$(this).resize(function(e) { | |
if ($.browser.msie && parseInt($.browser.version, 10) <= 8) { | |
vaadin.forceLayout(); | |
} | |
}); | |
}); |
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
$ port install scala2.9 | |
$ port install scala_select | |
$ port select --set scala scala2.9 |
NewerOlder