Input file:
$ cat foo
qwe
123
bar
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
GPL Ghostscript 9.14 (2014-03-26) | |
Copyright (C) 2014 Artifex Software, Inc. All rights reserved. | |
Usage: gs [switches] [file1.ps file2.ps ...] | |
Most frequently used switches: (you can use # in place of =) | |
-dNOPAUSE no pause after page | -q `quiet', fewer messages | |
-g<width>x<height> page size in pixels | -r<res> pixels/inch resolution | |
-sDEVICE=<devname> select device | -dBATCH exit after last file | |
-sOutputFile=<file> select output file: - for stdout, |command for pipe, | |
embed %d or %ld for page # | |
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF |
javascript:(function(){function R(w){try{var d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=['object','embed','applet','iframe'][j];++j){T=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3||!R((C=N.contentWindow)?C:N.contentDocument.defaultView)){b=d.createElement('div');b.style.width=N.width; b.style.height=N.height;b.innerHTML='<del>'+(j==3?'third-party '+t:t)+'</del>';N.parentNode.replaceChild(b,N);}}}catch(E){r=0}return r}R(self);var i,x;for(i=0;x=frames[i];++i)R(x)})() |
require 'rubygems' | |
require 'cucumber/rake/task' | |
begin | |
task :features => 'db:test:prepare' | |
task :features => "features:all" | |
namespace :features do | |
desc 'Run All Features' | |
Cucumber::Rake::Task.new(:all) do |t| |
require 'colored' | |
def banner(title, pad = 85) | |
puts "\n#{title} ".ljust(pad, "*").yellow | |
end | |
def stripe | |
puts ("-" * 84 + "\n").yellow | |
end | |
<style type="text/css" media="screen"> | |
#spotlight {zoom:1; z-index:1; | |
width:390px; | |
margin:5px 0 0 5px; | |
min-height:400px; | |
display: -moz-inline-stack; | |
display: inline-block; | |
vertical-align: top; | |
zoom: 1; | |
*display: inline; |
respond_to do |format| | |
format.js {render :update do |page| | |
page.replace_html :deal_object_selector, :partial => "configure_"+@class_type.underscore, :locals => {:deal => deal, :f => nil} | |
page.hide :deal_object_selector | |
page.visual_effect :appear, :deal_object_selector, :duration => 0.5 | |
end} | |
end |
#!/usr/bin/env ruby | |
HELP = <<EOS | |
git-wtf displays the state of your repository in a readable and easy-to-scan | |
format. It's useful for getting a summary of how a track branch relates to a | |
remote server, and for understanding how feature branches and relate to | |
integration branches. | |
git-wtf can show you: | |
- How a branch relates to the remote repo, if it's a tracking branch. |
#!/usr/bin/env ruby | |
# Complete rake tasks script for bash | |
# Save it somewhere and then add | |
# complete -C path/to/script -o default rake | |
# to your ~/.bashrc | |
# Nicholas Seckar <nseckar@gmail.com> | |
# Saimon Moore <saimon@webtypes.com> | |
# http://www.webtypes.com/2006/03/31/rake-completion-script-that-handles-namespaces |