Like go get
, git-get
organizes repos in directories according to 1) host, 2) user, and 3) project name.
git get git@github.com:pietvanzoen/dotfiles.git
will clone the project into $GIT_PATH/github.com/pietvanzoen/dotfiles
.
COMMENTO_PORT=9000 | |
COMMENTO_DATABASE_FILE=/var/commento/commento.db | |
AKISMET_KEY=<your-akismet-key> |
#!/bin/bash | |
# Returns a list of all unique production dependencies for the current node project. | |
if [[ ! -f package.json ]]; then | |
echo "Not a node project" | |
exit 1 | |
fi | |
npm list --prod | | |
head -n -2 | |
<?php | |
// Goes in codeigniter/libraries | |
if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
class Numbertowords { | |
function convert_number($number) { | |
if (($number < 0) || ($number > 999999999)) { |
I hereby claim:
To claim this, I am signing this object:
dependencies: | |
pre: | |
- ./install-yarn.sh | |
cache_directories: | |
- ~/.yarn | |
- ~/.yarn-cache | |
override: | |
- yarn install |
// Returns TRUE when time() is greater than $datatime_string | |
function time_cop($datetime_string = '3/27/2013 6AM') | |
{ | |
if (empty($datetime_string)) { | |
return FALSE; | |
} | |
return time() >= strtotime($datetime_string); | |
} |
var $collapseToggle = $('.js_collapse_toggle'), | |
$collapseContent = $('.js_collapse_content'); | |
$collapseContent.hide(); | |
$collapseToggle.on('click', function(event) { | |
event.preventDefault(); | |
$(this).toggleClass('collapse_active'); | |
$($(this).attr('href')+'.js_collapse_content').stop(true, false).slideToggle(); | |
}); |
$('.js-loadvideo').on('click', function(e){ | |
e.preventDefault(); | |
var $vid_id = $(this).attr('href').split('v=')[1]; | |
var width = $(this).attr('data-width'); | |
var height = $(this).attr('data-height'); | |
var $video = '<iframe width="'+width+'" height="'+height+'" src="//www.youtube-nocookie.com/embed/'+ $vid_id +'?rel=0&showinfo=0&wmode=opaque&autoplay=1&modestbranding=1" frameborder="0" allowfullscreen></iframe>'; | |
$(this).parent('.playoverlay').html($video); | |
return false; | |
}); |