Skip to content

Instantly share code, notes, and snippets.

neon:~ Eric$ sudo pip install virtualenv --upgrade
Downloading/unpacking virtualenv
Downloading virtualenv-1.6.4.tar.gz (1.9Mb): 1.9Mb downloaded
Running setup.py egg_info for package virtualenv
warning: no previously-included files matching '*.*' found under directory 'docs/_templates'
Installing collected packages: virtualenv
Found existing installation: virtualenv 1.6.4
Uninstalling virtualenv:
Successfully uninstalled virtualenv
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper_bashrc
hello world
def wut(self):
print True
#!/usr/bin/env python
import os
import re
import subprocess
import sys
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)')
CHECKS = [
<?php
function queryItem($item){
$dbo = new DatabaseObject ;
$resultSet4 = $dbo->query("SELECT id, name, level, ab, damages, damagel, hp, mp, ac, hit, dam, str, inte, wis, con, dex, regen, mr, ability FROM tblItems WHERE id = '".$item."';");
$itemstats = $resultSet4->fetch_object();
$itemid = $itemstats->id;
$itemname = $itemstats->name;
$itemname = str_replace("'", "`", "$itemname");
<?php
header("Content-type: text/xml");
require_once('classes/class_dbo.php');
include('items.php');
$dbo = new DatabaseObject;
$name = $dbo->sanitize($_GET['n']);
function xmlitem($tag, $item, $tooltip)
{
$margin = 5;
<?php
require_once('classes/class_dbo.php');
$dbo = new DatabaseObject;
$doc = new DOMDocument();
$doc->load( 'php://input' );
$players = $doc->getElementsByTagName( "player" );
foreach( $players as $player )
{

Keybase proof

I hereby claim:

  • I am ericvaladas on github.
  • I am ericvaladas (https://keybase.io/ericvaladas) on keybase.
  • I have a public key ASDUWJSATChw98rF1xvpEyVE4_TbWb3QHLO5_sqH-vo91wo

To claim this, I am signing this object:

render() {
return (
<Form onSubmit={form => this.handleSubmit(form)}>
<Field validators={[minLength(3)]}>
{state =>
<div>
<input name="username"/>
<span>{state.message}</span>
</div>
}