I hereby claim:
- I am alvaromuir on github.
- I am alvaromuir (https://keybase.io/alvaromuir) on keybase.
- I have a public key whose fingerprint is B755 99EB 1371 531F 4C4F 815D 8134 38A3 DCE5 8212
To claim this, I am signing this object:
#!/usr/bin/python | |
# This script takes a 'fields' row from a Google DFA report file | |
# and makes it db import friendly for all of ya big data needs | |
# @alvaromuir, updated: 11/2014 | |
import sys | |
if(len(sys.argv) < 2): | |
print "Error - Requires an input file" |
#!/bin/bash | |
# Script to download videos from UC's replay system | |
# requires curl | |
# usage example ./getreplay.sh <some replay url.hmtl> <file_outputname> | |
# will add ".mp4" to file, warning will overwrite existing. | |
set -e | |
link=$1 | |
file=./$2.mp4 | |
base=${link%'.html'} |
# base data-science vagrant linux build | |
# last update, 9.28.14 | |
# @alvaromuir | |
## Base installs ## | |
sudo yum -y update | |
sudo yum -y upgrade | |
sudo yum clean all |
#!/usr/bin/env bash | |
############################################# | |
# Builds the latest xnu (Darwin) kernel # | |
# create a directory to do this in first!!! # | |
# it cleans the downloaded files after # | |
# ya homie, @alvaromuir # | |
############################################# | |
export PATH="/usr/local/bin:$PATH" |
I hereby claim:
To claim this, I am signing this object:
class Config < Thor | |
desc "heroku", "setup heroku from .heroku_config" | |
def heroku | |
puts "running Heroku config . . ." | |
config = ".heroku_config" | |
if File.exists?(config) | |
settings = File.open(config).read | |
settings.gsub!(/\r\n?/, "\n") | |
settings.each_line do |line| |
Yelp meets kickstarter for social good. | |
People should be able to post information and images about things they want to change in their community. | |
Requires social login to ensure the word is spread | |
Gamaified by karma points. | |
Gains attention of local governing bodies, community members, neighbors |
#define PI 3.141592654 | |
#define TWO_PI 2.0 * PI | |
#define SQUARE(x) ((x)*(x)) | |
#define CUBE(x) ((x)*(x)*(x)) | |
#define IS_LEAP_YEAR(y) y % 4 == 0 && y % 100 != 0 || y % 400 == 0 | |
#define IS_LOWER_CASE(x) ( ((x) >= 'a') && ((x) <= 'z')) | |
#define TO_UPPER(x) (IS_LOWER_CASE(x) ? (x) - 'a' + 'A': (x)) | |
#define INCHES_PER_CENT 0.394 | |
#define CENT_PER_INCH (1/INCHES_PER_CENT) |
// Remove timestamp from NSLog | |
#define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]); |
def ordinal(n): | |
if 4 <= n <= 20 or 24 <= n <= 30: | |
return n + 'th' | |
else: | |
return str(n) + ["st", "nd", "rd"][n % 10 - 1] |