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
{ | |
sortable_key: { | |
'en-US': 'some text', | |
'es-AR': 'otro texto' | |
} | |
... | |
} |
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
import os | |
from datetime import datetime, timedelta | |
root_destino = 'C:\\backups\\' # windows | |
root_destino = '/Users/leandroardissone/Downloads/test-backup' # unix | |
root = 'D:\\aaaa\\Downloads\\' # windows | |
root = '/Users/leandroardissone/Downloads/' # unix | |
carpetas = [ # relativas, dentro de root |
%2520-%2520Default%2520Colors.jpg)
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
------------------------------------------------------------ | |
/Users/leandroardissone/workspace/Envs/mitmproxy/bin/pip run on Wed Nov 21 12:06:49 2012 | |
Downloading/unpacking lxml | |
Running setup.py egg_info for package lxml | |
Building lxml version 3.0.1. | |
Building without Cython. |
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
{ | |
name: 'foo', | |
values: [1234, 4321, 2345] | |
}, | |
{ | |
name: 'bar', | |
values: [3222, 2321] | |
} |
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
http://www.pythonregex.com/ | |
http://txt2re.com/ | |
http://gskinner.com/RegExr/ | |
http://regexpal.com/ | |
http://regex.larsolavtorvik.com/ | |
http://www.debuggex.com/?re=&str= |
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
var data1 = [ | |
[1, 16.3], | |
[2, 11.6], | |
[3, 10.6] | |
]; | |
$.plot("#container", [ | |
{ | |
data: data1.sortBy(function(n) { | |
return n[0]; |
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 os import walk | |
from mutagen.mp3 import MP3 | |
mypath = '/Volumes/Macintosh HD/Media/Music/iTunes/' | |
mypath = '/Volumes/Media HD/MP3/' | |
f = [] | |
artists = [] | |
a = 0 | |
b = 0 |
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 boto.s3.connection import S3Connection, Key | |
import glob | |
import os | |
filelist = filter(os.path.isfile, glob.glob('/tmp/motion/*.jpg')) | |
filelist.sort(key=lambda x: os.path.getmtime(x)) | |
filename = filelist[-1] | |
conn = S3Connection('', '') |
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
users/ | |
directives/ | |
users.html | |
usersDirective.js | |
services/ | |
userService.js | |
items/ | |
directives/ | |
... | |
services/ |