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
#------------------------------------------------------------------------------- | |
# Sunrise theme for oh-my-zsh by Adam Lindberg (eproxus@gmail.com) | |
# Intended to be used with Solarized: http://ethanschoonover.com/solarized | |
# (Needs Git plugin for current_branch method) | |
#------------------------------------------------------------------------------- | |
# Modified by Sundeep Malladi to include Mercurial (and some other shtuff). | |
# Color shortcuts | |
R=$fg[red] |
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
#!/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 | |
# |
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
var end_time = new Date().setUTCHours(23,59,59,59).getTime(); |
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
archive(){ | |
for var in "$@" | |
do | |
if [ -z "$var" ] | |
then | |
echo "You must supply a folder to archive." | |
return | |
else | |
if [ -d $var ] | |
then |
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
// calculate end day | |
// note, end day should be the final second | |
// of the final day (23:59:59) and 1 day | |
// before today | |
var end_time = parseInt(new Date().setUTCHours(23,59,59,59)/1000 - 86400, 10), | |
// calculate start day, x number of days before | |
// end day, note start day should be the start | |
// of the day (00:00:00) | |
start_time = parseInt(new Date((end_time - (days_ago * 86400)) * 1000).setUTCHours(0,0,0,0) / 1000, 10); |
NewerOlder