Skip to content

Instantly share code, notes, and snippets.

Als-Mac-mini% brew install -v postgresql
Warning: Building source; cellar of postgresql's bottle is /usr/local/Cellar
==> Downloading http://ftp.postgresql.org/pub/source/v9.3.5/postgresql-9.3.5.tar.bz2
Already downloaded: /Library/Caches/Homebrew/postgresql-9.3.5.tar.bz2
==> Verifying postgresql-9.3.5.tar.bz2 checksum
tar xf /Library/Caches/Homebrew/postgresql-9.3.5.tar.bz2
==> Patching
patching file contrib/uuid-ossp/uuid-ossp.c
==> ./configure --disable-debug --prefix=/Volumes/DataHD/usr/local/Cellar/postgresql/9.3.5_1 --datadir=/Volumes/DataHD/usr/local/Cellar/postgresql/9.3.5_1/share/postgresql --docdir=/Volumes/DataHD/usr/local/Cellar/postgresql/9.3.5_1/share/doc/postgresql --enable-thread-safety --with-bonjour --with-gssapi --with-ldap --with-openssl --with-pam --with-libxml --with-libxslt --with-perl --with-tcl --with-tclconfig=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib --with-ossp-uuid
checking build system type... x86_64-apple-darwin13.
import os, requests
# set username and password as environment variables before running this script
# export USERNAME=''
# export PASSWORD=''
s = requests.Session()
response = s.post("https://www.lacrossealerts.com/login/", data={'username': os.getenv('USERNAME'), 'password': os.getenv('PASSWORD')})
serials = {
def msort(lst):
if not lst:
return []
if len(lst) == 1:
return lst
else:
first_half = lst[0:len(lst)/2]
second_half = lst[len(lst)/2:]
return merge(msort(first_half), msort(second_half))

Keybase proof

I hereby claim:

  • I am aljohri on github.
  • I am aljohri (https://keybase.io/aljohri) on keybase.
  • I have a public key whose fingerprint is 2F0F 5468 6E8A 506C AF16 D54A 0400 DB11 20C2 4255

To claim this, I am signing this object:

http://www.meetup.com/Chicago-Machine-Learning-Study-Group/
http://www.meetup.com/NU-Machine-Learning-Meetup/
http://www.meetup.com/Chicago-Big-Data/
http://www.meetup.com/Data-Science-Chicago/
http://www.meetup.com/JuliaChicago/
http://www.meetup.com/Northshore-Fringe-Coders/
http://www.meetup.com/Project-Euler-Sprint/
http://www.meetup.com/ChicagoClj/
http://www.meetup.com/ErlangChicago/
http://www.meetup.com/ChicagoElixir/
[
[
"Advance Publications Newspapers",
"http://www.nexis.com/results/shared/sourceInfo.do?csi=309307"
],
[
"Abilene Reporter-News (Texas)",
"http://www.nexis.com/results/shared/sourceInfo.do?csi=317181"
],
[
@AlJohri
AlJohri / nu email regex
Created August 25, 2013 06:58
How do I split an NU email address into first name and last name?
use a case sensitive regular expression
find: (([A-Z]\w+)([A-Z]\w+)((\d+).)?201\d@u.northwestern.edu$)
replace: $2 $3 $5 $1
➜ ~ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 7bc56cf5e44f98569841828b6e3b89abcf3b0e91
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.8.5-x86_64
Xcode: 5.0
CLT: 5.0.0.0.1.1377666378
➜ ~ brew install -v tbb
==> Downloading https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb42_20130725oss_src.tgz
Already downloaded: /Library/Caches/Homebrew/tbb-4.2.tgz
tar xf /Library/Caches/Homebrew/tbb-4.2.tgz
==> make tbb_build_prefix=BUILDPREFIX compiler=clang arch=intel64
make tbb_build_prefix=BUILDPREFIX compiler=clang arch=intel64
Created ./build/BUILDPREFIX_release and ..._debug directories
/usr/bin/make -C "./build/BUILDPREFIX_debug" -r -f ../../build/Makefile.tbb cfg=debug
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=intel64 compiler=clang os=macos runtime=cc4.2.1_os10.8.5
clang++ -o concurrent_hash_map.o -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -m64 -fPIC -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
urls = [
'http://www.baltimorenews.net/index.php/sid/234363921',
'http://www.baltimorenews.net/index.php/sid/234323971',
'http://www.atlantanews.net/index.php/sid/234323891',
'http://www.wpbf.com/news/funeral-held-for-gabby-desouza/33874572',
'http://www.tennessean.com/story/news/politics/2015/06/30/obama-focus-future-health-care-burwell-says/29540753/',
'http://www.atlantanews.net/index.php/sid/234323901',
'http://www.baltimorenews.net/index.php/sid/234323975',
'http://www.utsandiego.com/news/2015/jun/30/backcountry-lilac-development-opposition-general/',
'http://www.newsnet5.com/newsy/apples-ebook-pricing-scandal-a-long-road-to-a-small-fine',