(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "[email protected]"
cd /develop/myrepo
# in reply to http://groups.google.com/group/openwferu-users/browse_frm/thread/96354a232e2cad8e | |
# let's assume the engine is accessible via the 'engine' variable and | |
# that the process instance id (wfid) is '20090119-biropoheku' | |
process_status = engine.processes_status('20090119-biropoheku') | |
sequence_expression = process_status.all_expressions.find { |fexp| | |
fexp.fei.expid == '0.0' | |
# or |
(Several of these git examples have been extracted from the book 'Pragmatic guide to GIT' of Travis Swicegood )
git config --global user.name "Fernando Guillen"
git config --global user.email "[email protected]"
cd /develop/myrepo
# requires root permissions in /usr/bin/ | |
star = String.new | |
8.times { star += "*" } | |
Star = "\n#{star * 3}\n" | |
def newblock string | |
puts "\n#{Star}#{string}#{Star}\n" | |
end |
# Ruby `retry` with steroids: | |
# | |
# - retry up to 5 times without waiting between them and retrying after any exception | |
# | |
# retry_upto(5) do ... end | |
# | |
# - retry up to 5 times, waiting 2 seconds between retries | |
# | |
# retry_upto(5, :wait => 2) do ... end | |
# |
// | |
// SPTexture+Additions.h | |
// Sparrow | |
// | |
// Created by Shilo White on 10/15/11. | |
// Copyright 2011 Shilocity Productions. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "SPTexture.h" |
require 'meatloaf' | |
require 'steps' | |
Feature "Eat candies" do | |
Scenario "Eat a candy from a jar full of them" do | |
Given "I have a jar with candies", candies: 10 | |
When "I eat one candy" | |
Then "the jar won't be empty" | |
end |
#!/bin/sh | |
# | |
# IDE Session starter - you should save this script as ~/bin/session, make it | |
# executable with chmod +x ~/bin/session, and then make a symlink to it for | |
# every application you want to start. | |
# E.g. ln -s session ~/bin/members creates a "members" symlink, and when you'll issue | |
# "members" on the command line this script will: | |
# Check if a tmux session named "members" exists |
def be_guest_member_of(expected) | |
Class.new do | |
def initialize(expected) | |
@expected = expected | |
end | |
def matches?(target) | |
@target = target | |
@target.memberships.where(role: "guest").map(&:network).include? @expected | |
end |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |