- The Honest Truth About Dishonesty (Radiolab?)
- An Economist Gets Lunch
- Exit Voice and Loyalty - A O Hischman
- The Rook - Kevin O'Malley. Dad recommends.
- 14 Minutes - Alberto Salazar (distance runner. NYorker article)
- Monkey Love - by Robert S. on Radiolab
Web and Mobile Developer
815 West Princeton Ave / Fresno, CA 93705
(559) 286 - 5662
[email protected]
- A web and mobile developer comfortable working in a variety of platforms such as PHP, HTML5, Javascript, jQuery, Objective-C, Delphi, SQL, MongoDB, Joomla Framework, and Symfony Framework
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
# http://www.goodreads.com/book/title.xml?author=Roberto+Bola%C3%B1o&key=Iz76TB8T47u8g4T90VKg&title=Savage+Detectives&format=json | |
body = urllib.urlencode({ 'author' : 'Karen Russel', 'title' : 'Swamplandia', 'format' : 'json' }) | |
response, content = client.request('%s/book/title.xml' % url, | |
'GET', body, headers) | |
body = urllib.urlencode({'name': 'read', 'book_id': 8584686}) | |
headers = {'content-type': 'application/x-www-form-urlencoded'} | |
response, content = client.request('%s/shelf/add_to_shelf.xml' % url, |
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
import oauth2 as oauth | |
import urlparse | |
url = 'http://www.goodreads.com' | |
request_token_url = '%s/oauth/request_token/' % url | |
authorize_url = '%s/oauth/authorize/' % url | |
access_token_url = '%s/oauth/access_token/' % url | |
consumer = oauth.Consumer(key='Your-GoodReads-Key', | |
secret='Your-GoodReads-Secret') |
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
#!/usr/bin/env python | |
# -*- coding: utf8 -*- | |
import oauth2 as oauth | |
import urlparse | |
import os | |
import urllib | |
import sys | |
import json | |
from pprint import pprint |
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
http://symfony.com/doc/current/book/doctrine.html#saving-related-entities |
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
<?php | |
foreach ($_FILES as $file) { | |
switch($file['error']) { | |
case UPLOAD_ERR_INI_SIZE: | |
error_log("The uploaded file exceeds the upload_max_filesize directive in php.ini. : " . $file['name']); | |
break; | |
case UPLOAD_ERR_FORM_SIZE: | |
error_log("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form. " . $file['name']); |
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
/* | |
I'm converting an existing web-app to angular. We made extensive use of the | |
Google Visualization library in the past. It's a powerful, although | |
complicated API, so I was anxious to get it wrapped up in angular. This | |
populates a table with data returned from a custome service 'Account' | |
*/ | |
'use strict'; | |
/* Directives */ |
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
<h2>{{ transaction.Title || "Transactions" }}</h2> | |
<label for="selectedYear">View transactions from: </label> | |
<select name="selectedYear" ng-model="selectedYear"> | |
<option ng-repeat="year in years">{{year}}</option> | |
</select> |
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
<h1>Alert</h1> | |
<p>Bootstrap JS</p> | |
<div class="alert fade in"> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good. | |
</div> | |
<p></p><a ng-click="alert=true">Open Alert (AngularJS)</a></p> | |
<div class="alert fade" ng-class="{in:alert}"> | |
<button type="button" class="close" ng-click="alert=false">×</button> |
OlderNewer