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
{ | |
"name": "My jasmine-enabled project", | |
"description": "A project which installs Jasmine into vendors", | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "pivotal/jasmine", | |
"version": "1.3.1", | |
"dist": { |
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
#!/bin/bash | |
# PR been merged on github? This will checkout develop, git pull, and then delete the branch you were on. | |
# Thanks http://stackoverflow.com/a/1593487/328817 | |
branch_name="$(git symbolic-ref HEAD 2>/dev/null)" || | |
branch_name="(unnamed branch)" # detached HEAD | |
branch_name=${branch_name##refs/heads/} | |
if [ "$branch_name" = "develop" ] || [ "$branch_name" = "master" ] |
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
#!/bin/bash | |
M=`man -w $*` # Get path of page source. | |
if [ -z $M ]; then exit; fi # Quit if it doesn't exist. | |
N=`basename $M .gz` # Extract the name of the file and | |
P=/tmp/man.$N.pdf # use it to create a PDF file name. | |
if [ ! -e $P ]; then # If the PDF file doesn't exist, | |
echo Creating PDF for $N... | |
man -t $1 | ps2pdf - $P # generate it. | |
fi |
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
selectedItem = jQuery('div.ghx-selected');itemId = selectedItem.find('a').attr('href').replace('/browse/', '');itemText = selectedItem.find('.ghx-inner').text();harvestText = itemId + ': ' + itemText;window.prompt('Put this in Harvest', harvestText); |
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
#!/bin/bash | |
# Coding Standards fixer from http://cs.sensiolabs.org/ pre-commit hook for git | |
# | |
# Based on https://github.com/s0enke/git-hooks | |
# | |
# @author Soenke Ruempler <[email protected]> | |
# @author Sebastian Kaspari <[email protected]> | |
# | |
# see the README |
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
<?php | |
namespace YourProj\YourBundle\Assetic\Filter; | |
use Assetic\Asset\AssetInterface; | |
use Assetic\Exception\FilterException; | |
use Assetic\Filter\FilterInterface; | |
/** | |
* Bless splits up CSS files to get around the limit of 4096 selectors per file in IE<=9. |
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
# ... | |
# Use NFS if the host operating system supports it | |
config.vm.share_folder("v-root", "/vagrant", "./", :nfs => !RUBY_PLATFORM.downcase.include?("w32")) | |
# ... |