Skip to content

Instantly share code, notes, and snippets.

View mrdrozdov's full-sized avatar

Andrew Drozdov mrdrozdov

View GitHub Profile
@mrdrozdov
mrdrozdov / alumin-checkins.txt
Last active August 29, 2015 14:23
Recurse Center Alumni Checkins
Initiated every day at 10:30am AEST, checkins is a time to share
what you are working on or an interesting bit of knowledge if
you'd prefer not to talk about your work.
@mrdrozdov
mrdrozdov / alumni-checkins.sh
Created June 14, 2015 17:30
Alumni Checkins Script
#!/bin/sh
. /root/Developer/bot-ids/alumni
DATETOUSE="$(TZ=Australia/ACT date "+%A. %B %d, %Y")"
SUBJECT="Checkins! $DATETOUSE"
CONTENT="Welcome to [checkins](https://gist.githubusercontent.com/mrdrozdov/bfd8d218a9414ce11b4d/raw/a23ff8cf560ef6fa60893bade9d05c5fc7f12313/alumin-checkins.txt)!"
curl https://api.zulip.com/v1/messages \
-u $ZULIP_BOT_EMAIL_ALUMNI:$ZULIP_BOT_KEY_ALUMNI \
-d "type=stream" \
-d "to=alumni-checkins" \
-d "subject=$SUBJECT" \
@mrdrozdov
mrdrozdov / snippets.pig
Created June 17, 2015 14:37
snippets.pig
-- Load all files in directory
raw_data = load 'file_dir/*' using PigStorage('\t');
-- Load multiple files
raw_data = load '{file1,file2}' using PigStorage('\t');
-- Load multiple files using variable
%default SUPER_INPUT '{file1,file2}'
raw_data = load '$SUPER_INPUT' using PigStorage('\t');
@mrdrozdov
mrdrozdov / trips.txt
Created July 6, 2015 01:14
MTA Trips
route_id,service_id,trip_id,trip_headsign,trip_short_name,direction_id,block_id,shape_id,wheelchair_boarding
2,1,6331399,Southeast,980,1,,3,1
2,1,6331397,Southeast,972,1,,3,1
2,1,6331402,Southeast,988,1,,3,1
2,1,6331405,Southeast,998,1,,3,1
2,1,6331403,Southeast,992,1,,3,1
2,1,6331395,Southeast,964,1,,3,1
2,1,6331393,Southeast,956,1,,3,1
2,1,6331387,Southeast,940,1,,3,1
2,1,6331389,Southeast,948,1,,3,1
This
is
an
essay.
@mrdrozdov
mrdrozdov / soccer.txt
Created July 13, 2015 13:11
soccer.txt
Start Date: Around July 24th
Game Day/Time: 1 game per week, either Tuesday or Friday, between 7:00pm and 10:00pm
*All games are followed by a post-game social with drink specials
Game Play: Two 21-minute halves
Location: Baruch Playground (Houston Street and East River)
Team Fee: $2,100 ($131/person with full roster)
Players: 7 vs. 7 Co Ed
Roster: 12-16 players
Season: 7 games guaranteed plus playoffs
@mrdrozdov
mrdrozdov / soccer-reg.txt
Created July 13, 2015 14:19
soccer-reg.txt
1. Visit www.nycsocial.com
2. Select the sport you are looking to register for from the “League” menu in the top navigation bar. Our league is Outdoor Soccer Baruch Tue/Fri
3. Once on the sport page, click the “registration” tab listed in the navigation bar
4. Now you will see all available leagues for this particular sport
5. Click the division name to see more details about the division such as roster requirements, or click the register button to continue registration for this division.
6. After hitting the register button you will see three options.
7. Select the option to register as a “Team Player” on the right hand side.
8. If this is your first time in our new system, please create a profile. If you are a returning member, please login with your site credentials
9. Please make sure to apply any discount codes or buybacks on the League Registration Terms & Wavier page as they can not be applied later in registration
10. Please make sure to choose the team you are jo
@mrdrozdov
mrdrozdov / calendar_dates.txt
Created July 14, 2015 01:41
calendar_dates.txt
service_id,date,exception_type
1,20150914,2
1,20150921,2
4728,20150914,1
4728,20150921,1
1,20150907,2
4771,20150907,1
1,20150702,2
4775,20150702,1
3,20150704,2
@mrdrozdov
mrdrozdov / lobster_bookmarklet.md
Last active August 29, 2015 14:25
Lobsters Bookmarklet

Expanded

javascript: (function () {
    /* http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format */
    if (!String.prototype.format) {
        String.prototype.format = function() {
            var str = this.toString();
            if (!arguments.length)
                return str;
@mrdrozdov
mrdrozdov / LICENSE
Last active August 29, 2015 14:25 — forked from jamztang/LICENSE
Copyright (c) 2013 Jamz Tang <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all