empty initial commit
$ git commit --allow-empty -m "initial commit"
create a "blank" branch (coming from an existing branch)
and remove all files and directories in the current directory
$ git checkout --orphan newbranch
import tweepy | |
import psycopg2 | |
# Tweepy API doc here: http://pythonhosted.org/tweepy/html/api.html | |
# psycopg2 API doc here: http://initd.org/psycopg/docs/ | |
# Keys | |
consumer_key = '' | |
consumer_secret = '' | |
access_token = '' |
http://www.legofoundation.com/
Lots of great reasearch on childhood, learning and play. The research I cited can be found as PDFs on this page. Five Types of Play under Future of Play and Motivations of Play under Systematic Creativity in the Digital Realm
http://www.joanganzcooneycenter.org/publications/
Research center for children's learning through digital media, by Sesame Street people.
I should preface this by saying that I got a Withings Smart Body Analyzer for Christmas last year and I’ve been generally happy with it. It purports to be able to take my heart rate through my bare feet and that seems not to work for my physiology, but overall I’m a fan. If if their Wikipedia page is to be believed they are having a pretty rad impact on making the Quantified Self movement more for normal people and they only have 20 full time employees. Also they try hard to use SI units, which I can get behind. Anyway, on to the rant.
I originally called this post “Everything wrong with the Withings API” and I meant it. For every useful field I can extract from their “award winning” app, I have spent an hour screaming at the inconsistencies in their implementation or inexplicable holes in their data
/** | |
* | |
* Add to bookmark | |
* Several tests are necessary in order for this "simple" action to work in most of the browsers | |
* | |
*/ | |
// First, we define the element where the "Add to bookmark" action will trigger | |
var triggerBookmark = $(".js-bookmark"); // It must be an `a` tag |
So you're writting a twitterbot and you need to authorize your application to post to the account. You need an access token and secret for the account you're posting to. If the posting account is the same account that owns the application, no problem, you just push the button on your application's settings page to make the keys. But if you want to post to a different twitter account, there's no UI on apps.twitter.com to authorize it. So I made this bare-minimum node server to run through the authorization process. There's probably a much better way to do this, so please let me know what that way is!
Arrange files like this:
apple/
__init__.py
apple.py
tests/
test_everything.py
See also the linear path tweening example.
#!/bin/bash | |
show_usage () { | |
echo "Usage: `basename $0` [START [END]]" | |
echo | |
echo "Steps through the commit history from START to END," | |
echo "then returns to the branch or commit from before execution." | |
echo | |
echo "START defaults to the root commit (beginning of history)." | |
echo "END defaults to current branch/commit." |
This gist details the following: