This file contains 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 urlparse | |
import oauth2 as oauth | |
consumer_key = '' | |
consumer_secret = '' | |
request_token_url = 'http://www.tumblr.com/oauth/request_token' | |
access_token_url = 'http://www.tumblr.com/oauth/access_token' | |
authorize_url = 'http://www.tumblr.com/oauth/authorize' |
This file contains 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
/* | |
Instructions: | |
1. Log in with your account and go to the desired course | |
2. Open the courseware tab | |
3. Configure the week variable | |
4. Copy this code and paste it in the browser console | |
*/ |
This file contains 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
use admin_loja; | |
db.planos.find().forEach( function(plano) { | |
if (typeof(plano.deals) != 'undefined') { | |
for (i = 0; i < plano.deals.length; i++) { | |
produtos = plano.deals[i].produtos; |
This file contains 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 urllib, json | |
author = 'Youtube_Username' | |
foundAll = False | |
ind = 1 | |
videos = [] | |
while not foundAll: | |
inp = urllib.urlopen(r'http://gdata.youtube.com/feeds/api/videos?start-index={0}&max-results=50&alt=json&orderby=published&author={1}'.format( ind, author ) ) | |
try: | |
resp = json.load(inp) |
This file contains 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
jnaves@skynet:~$ rvm install 1.9.2 | |
Searching for binary rubies, this might take some time. | |
No binary rubies available for: debian/wheezy_sid/x86_64/ruby-1.9.2-p320. Continuing with compilation. Please read ‘rvm help mount’ to get more information on binary rubies. | |
Checking requirements for debian. Installing requirements for debian. | |
Hit http://br.archive.ubuntu.com precise Release.gpg | |
Hit http://br.archive.ubuntu.com precise-updates Release.gpg | |
Hit http://br.archive.ubuntu.com precise-backports Release.gpg |
This file contains 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
jnaves@skynet:~/Apps$ git clone https://github.com/thomasf/exitwp | |
Cloning into 'exitwp'... | |
remote: Counting objects: 253, done. | |
remote: Compressing objects: 100% (135/135), done. | |
remote: Total 253 (delta 134), reused 225 (delta 110) | |
Receiving objects: 100% (253/253), 45.39 KiB, done. | |
Resolving deltas: 100% (134/134), done. | |
jnaves@skynet:~/Apps/exitwp$ sudo pip install --upgrade -r pip_requirements.txt |
This file contains 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
jnaves@skynet:~/Apps/exitwp$ python exitwp.py | |
reading: wordpress-xml/worpress.xml | |
Traceback (most recent call last): | |
File "exitwp.py", line 361, in <module> | |
data = parse_wp_xml(wpe) | |
File "exitwp.py", line 82, in parse_wp_xml | |
root = tree.parse(file, parser) | |
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse | |
parser.feed(data) | |
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed |
This file contains 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
[Desktop Entry] | |
Name=Eclipse | |
Type=Application | |
Exec=eclipse | |
Terminal=false | |
Icon=eclipse | |
Comment=Integrated Development Environment | |
NoDisplay=false | |
Categories=Development;IDE; | |
Name[en]=Eclipse |
This file contains 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 serviceApp = angular.module('ep10App', ['ngRoute']); |
This file contains 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
serviceApp.config(['$routeProvider', | |
function($routeProvider) { | |
$routeProvider. | |
when('/states', { templateUrl: 'list.html', controller: 'controllerEp10'}). | |
when('/create', { templateUrl: 'create.html', controller: 'controllerEp10'}). | |
when('/delete', { templateUrl: 'list.html', controller: 'controllerEp10'}). | |
otherwise({ | |
redirectTo: '/states' | |
}); | |
} |
OlderNewer