This file contains hidden or 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 | |
import codecs | |
from datetime import datetime | |
import logging | |
import json | |
import os | |
from os.path import isdir, join | |
from urllib import urlretrieve |
This file contains hidden or 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
markpasc@markpascbook:~/Work/project$ mate .git/config | |
markpasc@markpascbook:~/Work/project$ git branch --help | |
markpasc@markpascbook:~/Work/project$ git branch --set-upstream origin/master | |
The --set-upstream flag is deprecated and will be removed. Consider using --track or --set-upstream-to | |
Branch origin/master set up to track local branch master. | |
If you wanted to make 'master' track 'origin/master', do this: | |
git branch -d origin/master | |
git branch --set-upstream-to origin/master |
This file contains hidden or 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 | |
from itertools import izip, chain | |
import re | |
import sys | |
""" | |
Checks a solution to this regular expression crossword: |
This file contains hidden or 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
from urllib import urlencode | |
from urlparse import parse_qsl | |
from flask import Flask, request, redirect, url_for | |
import requests | |
GITHUB_AUTHORIZE_URL = 'https://github.com/login/oauth/authorize' | |
GITHUB_ACCESS_TOKEN_URL = 'https://github.com/login/oauth/access_token' | |
app = Flask(__name__) |
This file contains hidden or 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
$ bin/rdio collection --json collection.json | |
WARNING: Downloading collection of 674 albums (this will take a while) | |
100% |#########################################################################| | |
$ head collection.json | |
[ | |
{ | |
"albumKey": "a1522320", | |
"albumUrl": "/artist/alt-J/album/An_Awesome_Wave/", | |
"artist": "alt-J", | |
"artistKey": "rl1809209|67377", |
This file contains hidden or 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
Hi! It would be a great feature if when an open message tab is closed by an | |
action (Archive, Delete), and a new message is selected in the Inbox tab, the | |
message is left unread until opened. | |
1. Enable “Automatically mark messages as read” in Preferences → Advanced → | |
General. | |
2. Turn off the Message Pane by unchecking the View → Show → Message Pane menu | |
option. | |
3. Go to the Inbox tab, with two or more consecutive messages unread. | |
4. Double-click the first message to open it in a new tab. The message is |
OlderNewer