Skip to content

Instantly share code, notes, and snippets.

View briandailey's full-sized avatar

Brian Dailey briandailey

View GitHub Profile
git ci -am"`curl -s http://whatthecommit.com/ | sed -n '/<div id="content">/,/<\/div>/p' | sed 's/<[^>]*>//g' | tr -d "\n"`"
@briandailey
briandailey / EC.txt
Created January 20, 2011 17:46
EC wants to pull in more techies, less suits.
Some context: Michael Burcham is the guy ultimately running the Nashville
Entrepreneur Center. The NEC is a space that is funded by several
different sources (public money included) that provides mentoring,
legal guidance, office space, and other amenties at a pretty low price.
There is a vetting process for companies to be included on the EC
roster.
The EC is located on lower Broadway.
--
@briandailey
briandailey / php_args.sh
Created April 7, 2011 19:02
Show function args from the PHP docs.
# Usage: phpargs array_shift
# Put this in our .bashrc / .bash_profile
phpargs() {
curl -s http://us3.php.net/$1 | \
sed -n '/<div class="methodsynopsis dc-description">/,/<\/div>/p' | \
sed 's/<[^>]*>//g' | tr -d "\n"
echo
}
1. TWSS
2. It's a revelation
3. F18, bro.
4. Leprechaun
5. Ronco
6. Seven Chinese Brothers
7. Movin' on up
8. Toledo armchair
9. Bo and Luke Duke
10. Vigorous rhinocerous
@briandailey
briandailey / dev.md
Last active July 5, 2021 22:35
Stratasan: Senior Software Developer

Become a Stratanaut!

Who We Are

Stratasan is a Nashville-based company that provides intelligence on healthcare markets to hospital strategists, physician offices, community care experts, and others. We aggregate healthcare data, curate it, and provide reports and tools that aid healthcare decision-making. As an example, we give guidance to our clients looking to place a new acute care clinic.

$ brew install glib
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2
File already downloaded in /Users/brian/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
@briandailey
briandailey / gist:2158466
Created March 22, 2012 13:52
Pandas = Magic.
from pandas import read_csv
df = read_csv('all_hospitals.csv')
def by_hcpcs_code():
hcpcs_table = {}
grouped_by_upin = df.groupby('PUF_PROVIDER_NUMBER')
for upin, by_upin in grouped_by_upin:
hcpcs_table.setdefault(upin, {})

Hey Brian, I wanted to introduce myself as I'm launching a grocery shopping venture and in need of a talented PHP (LAMP) developer who can work with the Zend framework, MySQL, and Google Maps and Facebook API. The site is on a Linux server, running on an Amazon EC2.

Our beta site is currently in QA but my relationship with my developer went sour so I'm looking to transition the project to another developer to help me finalize the site and launch the prototype. This venture is totally bootstrapped so I have no more than a $4K budget remaining to pay someone as a work-for-hire OR find myself a tech co-founder (strictly for equity) to help grow the business for the next 12 months. Over the last several months, I've gotten about 6 businesses to sign up and several other (larger) retailers have expressed interested so I'm starting to get the business idea validated…which is great news.

The beta site is currently in QA (and in production mode) and I would say it's about 80% complete but the front-end has i

@briandailey
briandailey / cheap-data-plans.md
Created August 29, 2012 17:04
Cheap plans with unlimited* data, minutes, and text.

Problem

I need a data plan that my wife and I both use, and I don't want to pay more than $100 a month for both. Family plans are a rip-off - even with a limited number of minutes the cheapest I've found for two smartphones is about $120 a month. At a two year contract, that hits nearly $3000. What can I say, I'm a tightwad.

Solution

Pre-paid plans on pre-pay networks.

What You Need To Know

If you've always gone with the big boys (AT&T or Verizon) you probably don't even know about these pre-paid plans. Some of them are even subsidiries of the bigger companies, but they don't advertise them much.

@briandailey
briandailey / leap_year.py
Created September 27, 2012 19:58
method to check a year to see if it's a leap year.
is_leap_year = lambda x: x % 400 == 0 or (x % 100 != 0 and x % 4 == 0)