Skip to content

Instantly share code, notes, and snippets.

View saxenap's full-sized avatar

Praveen Saxena saxenap

  • West Lafayette, IN
View GitHub Profile

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should be using:

<?php
//much of this borrowed from the amazon documentation
//http://docs.amazonwebservices.com/amazondynamodb/latest/developerguide/LowLevelPHPTableOperationsExample.html
require_once('include.php');
$response = $dynamoDB->query(array(
'TableName' => $properties["table"]["TableName"]
, 'HashKeyValue' => array(
$properties["table"]["KeySchema"]["HashKeyElement"]["AttributeType"]
=> $hashKey )

(This is the text of the keynote I gave at Startup Riot 2009. Will update when video becomes available.)

Hi everyone, I'm Chris Wanstrath, and I'm one of the co-founders of GitHub.

GitHub, if you haven't heard of it, has been described as "Facebook for developers." Which is great when talking about GitHub as a website, but not so great when describing GitHub as a business. In fact, I think we're the polar opposite of Facebook as a business: we're small, never took investment, and actually make money. Some have even called us successful.

Which I've always wondered about. Success is very vague, right? Probably even relative. How do you define it?

After thinking for a while I came up with two criteria. The first is profitability. We employ four people full time, one person part time, have thousands of paying customers, and are still growing. In fact, our rate of growth is increasing - which means January was our best month so far, and February is looking pretty damn good.

@saxenap
saxenap / 0_reuse_code.js
Last active August 29, 2015 14:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@saxenap
saxenap / us-states-and-counties.xml
Last active September 15, 2015 18:20 — forked from bzerangue/us-states-and-counties.xml
US States and Counties in XML and YAML format
<?xml version="1.0" encoding="utf-8"?>
<states updated="2007-10-17">
<state>
<name>Alabama</name>
<abv>AL</abv>
<counties>
<county>Autauga County</county>
<county>Baldwin County</county>
<county>Barbour County</county>
<county>Bibb County</county>
@saxenap
saxenap / world-currency-list.xml
Last active September 15, 2015 18:20 — forked from bzerangue/world-currency-list.xml
World currencies list source from themoneyconverter.com. With name of currency, currency code, (unicode symbols for those available), and rss feed locations.
<?xml version="1.0" encoding="UTF-8"?>
<currency source-url="http://themoneyconverter.com">
<entry code="ARS" feed-location="/rss-feed/ARS/rss.xml">
<name>Argentine Peso</name>
<unicode>
<decimal>36</decimal>
<hex>24</hex>
</unicode>
</entry>
<entry code="AWG" feed-location="/rss-feed/AWG/rss.xml">
@saxenap
saxenap / currency-symbols.xml
Last active September 15, 2015 18:20 — forked from bzerangue/currency-symbols.xml
World currencies with their symbols
<?xml version="1.0" encoding="UTF-8"?>
<!--
## SOURCE: xe.com
-->
<currency-symbol count="115">
<entry code="ALL" unicode-decimal="76, 101, 107" unicode-hex="4c, 65, 6b">Albania Lek</entry>
<entry code="AFN" unicode-decimal="1547" unicode-hex="60b">Afghanistan Afghani</entry>
<entry code="ARS" unicode-decimal="36" unicode-hex="24">Argentina Peso</entry>
<entry code="AWG" unicode-decimal="402" unicode-hex="192">Aruba Guilder</entry>
<entry code="AUD" unicode-decimal="36" unicode-hex="24">Australia Dollar</entry>
@saxenap
saxenap / transform-html5.php
Last active September 15, 2015 18:20 — forked from bzerangue/transform-html5.php
PHP: XSLT Transformation to build HTML5 html output (use xhtml 1.0 strict as your settings in your XSLT stylesheet)
<?php
// Load the XML source
$xml = new DOMDocument;
$xml->load('XML_SOURCE_LINK_HERE');
// Load XSLT stylesheet
$xsl = new DOMDocument;
$xsl->load('XSL_STYLESHEET_PAGE_LINK_HERE');
@saxenap
saxenap / .htaccess
Created October 27, 2015 17:07 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@saxenap
saxenap / install node
Created March 10, 2016 17:00 — forked from guybrush/install node
install multiple nodejs versions, use same npm packages
#
# node ---------------> ~/.nvm/<node-version>/bin/node
# node-libraries -----> ~/.node_libraries
# node-binaries ------> ~/.node_binaries
#
aptitude install g++ curl libssl-dev apache2-utils make
git clone git://github.com/creationix/nvm.git ~/.nvm
vi ~/.bashrc
export PATH=$PATH:~/.node_binaries
NVM_DIR=$HOME/.nvm