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
{ | |
"metadata": { | |
"name": "Minicourse Analysis" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
require 'pry' | |
require 'bson' | |
require 'json' | |
manifest = [] | |
outfile = 'for_testing' | |
blank_images = [] | |
["MRE11 TMAs.zip"].each do |zip_name| |
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 pprint | |
import json | |
import csv | |
file = open('all.txt') | |
j_file = open("all.json","w") | |
csv_file = open("all.csv","w") | |
writer = csv.writer(csv_file, delimiter="\t") | |
pp = pprint.PrettyPrinter(depth=6) |
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
{ | |
"metadata": { | |
"name": "Untitled0" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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
from mailbox import mbox | |
# from bs4 import BeautifulSoup | |
from pyquery import PyQuery as pq | |
import code | |
m = mbox("noreply.mbox") | |
reject_emails = [] | |
warnings = [] |
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
{ | |
"project":{ | |
"name" : "my bio project", | |
"description": "Dolore voluptate sint proident ad quis esse non exercitation deserunt elit est consectetur id. Tempor veniam sint voluptate voluptate eiusmod. Non deserunt ex eiusmod laboris commodo consectetur quis reprehenderit voluptate aliqua ea. Elit fugiat ad voluptate eu Lorem dolor eiusmod sunt laborum. Laboris reprehenderit excepteur sint amet tempor mollit occaecat aliquip sint minim. Minim enim dolor voluptate quis labore deserunt nulla est fugiat Lorem dolor. Aliquip Lorem anim mollit est proident fugiat dolore dolore. | |
", | |
"principle_locations": [ "England", "Scotland" ], | |
"principle_species":["birds", "bugs"], | |
}, |
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
SELECT DISTINCT rev_user_text AS IP, COUNT(*) AS edits , page_title as country | |
FROM revision | |
INNER JOIN page ON rev_page = page_id | |
WHERE rev_user = 0 | |
AND page_namespace = 0 | |
AND page_title IN ("Member_states_of_the_United_Nations","United_Nations_General_Assembly_observers","Afghanistan","Albania","Algeria","Andorra","Angola","Antigua_and_Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","The_Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia_and_Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina_Faso","Burma","Burundi","Cambodia","Cameroon","Canada","Cape_Verde","Central_African_Republic","Chad","Chile","China","Colombia","Comoros","Democratic_Republic_of_the_Congo","Republic_of_the_Congo","Costa_Rica","Croatia","Cuba","Cyprus","Czech_Republic","Denmark","Djibouti","Dominica","Dominican_Republic","East_Timor","Ecuador","Egypt","El_Salvador","Equatorial_Guinea","Eritrea","Estonia","Ethiopia","Fiji","Finland","France","Gabon","Th |
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
<html> | |
<head> | |
<title>S3 POST Form</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
</head> | |
<body> | |
<form action="https://zooniverse-data.s3.amazonaws.com/" method="post" enctype="multipart/form-data"> | |
<input type="hidden" name="key" value="cruk_upload/${filename}"> | |
<input type="hidden" name="AWSAccessKeyId" value={AWSAccessKeyId}> |
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
# PlanetHunterSubject.destroy_all | |
# redis = Ouroboros.redis[Rails.env] | |
# redis.keys('planet_hunter*').each{ |key| redis.del(key) } | |
json = JSON.parse(File.read('/home/ubuntu/manifest_C1.json')); nil | |
project = PlanetHunterSubject.project | |
workflow = PlanetHunterSubject.first.workflows.first |
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
#This is actually running and dumping data here http://cdb.io/1BeHh9S | |
express = require 'express' | |
app = express() | |
redis = require("redis") | |
url = require('url'); | |
CartoDB = require('cartodb'); | |
bodyParser = require('body-parser') |