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
products=read.csv('stable.csv',header=TRUE) | |
products = cbind(products, rep(0, dim(products)[1])) | |
colnames(products)[dim(products)[2]] = 'Unavailable?' | |
pipeline=read.csv('pipeline.csv', header=TRUE) | |
pipeline=pipeline[,1:7] | |
fillLaunchWeeks = function(pipeline){ | |
for(row in c(1:dim(pipeline)[1])){ | |
row.niche = toString(pipeline[,1][row]) | |
row.productType = toString(pipeline[,2][row]) |
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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSICOLORS=ExFxBxDxCxegedabagacad | |
export PATH=/usr/local/bin:$PATH | |
export PATH=$PATH:/Users/mshock/AWS/eb/macosx/python2.7 |
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
#! perl -w | |
use strict; | |
use feature 'say'; | |
my $application = $ARGV[0] || 'massdrop-production'; | |
my @app_versions_lines = split /\n/, `/usr/local/bin/aws elasticbeanstalk describe-application-versions --application-name $application`; | |
my @environment_lines = split /\n/, `/usr/local/bin/aws elasticbeanstalk describe-environments`; | |
my %running; | |
for (@environment_lines) { |
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
#! ruby | |
require 'sinatra' | |
require 'data_mapper' | |
require 'haml' | |
require 'sinatra/reloader' | |
debug = true | |
if debug |
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
#! perl -w | |
####################################################################### | |
# | |
# Matt Shockley - 3/31/2014 | |
# all work original | |
# | |
####################################################################### | |
use strict; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>start</title> | |
<link rel="shortcut icon" type="image/png" href="" /> | |
<style type="text/css"> | |
*, * * { | |
font-family: termsyn !important; |
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
function cleandir($dir) { | |
$a = Get-ChildItem $dir -filter *.* -recurs | |
foreach($x in $a) | |
{ | |
$y = ((Get-Date) - $x.CreationTime).Days | |
if ($y -gt 60 -and $x.PsISContainer -ne $True) | |
{$x.Delete()} | |
} | |
} |
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
sub getsleep { | |
my ($thour) = @_; | |
return 0 unless $thour; | |
my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) | |
= localtime(time); | |
my $dif = $thour - $hour - $min / 60 - $sec / 3600; | |
if ( $dif >= 0 ) { | |
return $dif * 3600; |
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
sub gdate { | |
my $jdn = shift; | |
my $l= $jdn+68569; | |
my $n= int(4*$l/146097); | |
$l= int($l-(146097*$n+3)/4); | |
my $i = int(4000*($l+1)/1461001); | |
$l= int($l-1461*$i/4+31); | |
my $j = int(80*$l/2447); | |
my $k = int( $l - 2447 * $j/80); | |
$l = int($j/11); |
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
$z='1'; | |
$r=$z; | |
for(0..32){ | |
@d=split' ',$z; | |
unshift@d,0; | |
@n=(); | |
while($#d!=-1){ | |
push@n,($d[0]||0)+($d[1]||0); | |
shift@d | |
} |