Skip to content

Instantly share code, notes, and snippets.

View jennielees's full-sized avatar

Jennie jennielees

  • Santa Monica, CA
View GitHub Profile
def my_function():
print "I am a function!"
def main():
print "I am the main function"
if __name__=='__main__':
print "I am being run as 'main'"
# Try uncommenting this and see what happens.
from flask import Flask, render_template, request
@app.route('/results', methods=['POST'])
def results():
mc = request['meal_cost']
return render_template('results.html')
@jennielees
jennielees / hiring.md
Last active August 29, 2015 13:57
Seed-funded data-centric startup looking for engineers!

####Seed-funded data-centric startup looking for engineers!

We're a young startup looking to build out our engineering team with more early engineering hires. This is a great opportunity to get in with a funded company and make a huge impact with early stage product development.

Fundamentally, we're focused on understanding your professional network to make you more effective at doing business. Our premium dealmaking platform connects people to exclusive business opportunities and helps members uncover value hidden in their contact lists. If you've ever had to scour your network for investors, mentors, jobs, potential employees, or any other kind of connection -- you've experienced the problem we're solving. We're starting out locally, helping startups raise funding by connecting to the right investors (analyzing the founder's network and company to figure out who to connect to, why, and how).

We're doing a lot of data processing, modelling and analysis and we'd like to grow this team to do even more! If y

@jennielees
jennielees / gist:11162850
Created April 22, 2014 01:51
git awesomeness
# Thanks to http://stackoverflow.com/questions/3666953/showing-git-branch-structure
alias git-branches="git log --graph --simplify-by-decoration --pretty=format:'%Cred%h%Creset-%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all"
@jennielees
jennielees / gist:995822dc248ffcdd59c7
Last active August 29, 2015 14:01
ScotlandVisit

###Scottish Women in Tech Visit

From the home of haggis, kilts and bagpipes, a new export: women in tech!

'Special Edition' is a delegation of women from tech and digital media in Scotland, representing a hand-picked set of rising stars from startups and creative companies spanning games to digital agencies. As part of the programme this group will be in San Francisco from May 19-21 and visiting a number of local tech companies to spark new ideas, make connections, and learn about how things work this side of the pond.

Come and meet these awesome ladies at the wrap-up party -- there will be some short talks around the theme of international technology culture (starting at 7PM), along with delicious eats and plenty of time to mingle.

(Let me know - jennielees at gmail - if you're interested in giving a talk!)

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export TERM="xterm-color"
export PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\W\[\e[0m\]\$ '
@jennielees
jennielees / gist:40249db903325640bfaa
Last active November 8, 2017 20:28
flask jquery jsonify and ajax, sitting in a tree
Server:
from flask import request, jsonify
from models import Result
@route("/update_search")
def update_search():
q = request.args.get('q')
results = Result.query.filter_by(name=q)
root = { 'result': results.all() }
@jennielees
jennielees / 0_reuse_code.js
Created July 16, 2014 22:02
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
@jennielees
jennielees / constants.py
Created October 3, 2014 18:02
Some fun constants
ANIMALS = [
"alligator",
"armadillo",
"bear",
"beaver",
"butterfly",
"camel",
"chicken",
"chipmunk",
"cougar",
@jennielees
jennielees / .screenrc
Last active August 29, 2015 14:08
Getting screen to have colors and scrollwheel support
term xterm-color
termcapinfo xterm* ti@:te@
defshell -bash