- Works with doc, odt and pdf
- Works through an API
- Can handle multiple files at the same time
- Uses queues (maybe distributed)
- It's doable
- Works fast!
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 icon = '/Controls/StationLocationsMap/Images/marker-active.png'; | |
var back = 'infowin-available'; | |
var point = new google.maps.LatLng(30.26408, -97.74355); | |
kioskpoints.push(point); | |
var marker = new createMarker(point, "<div class='location'><strong>2nd & Congress</strong><br />151 E. 2nd St.<br />Austin<br />TX 78701</div><div class='avail'>Bikes available: <strong>8</strong><br />Docks available: <strong>5</strong></div><div></div>", icon, back, false); | |
markers.push(marker); | |
var icon = '/Controls/StationLocationsMap/Images/marker-active.png'; | |
var back = 'infowin-available'; | |
var point = new google.maps.LatLng(30.26634, -97.74378); | |
kioskpoints.push(point); |
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 json | |
from gender_detector import GenderDetector | |
from bottle import route, run, response | |
detector_ar = GenderDetector('ar') | |
detector_uk = GenderDetector('uk') | |
detector_us = GenderDetector('us') | |
@route('/<country>/<name>') | |
def index(country, 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
require 'open-uri' | |
require 'json' | |
require 'mechanize' | |
require 'pdf-reader' | |
require 'turbotlib' | |
SOURCE_URL = "http://www.cityofchicago.org/city/en/depts/doit/supp_info/list_of_contractors.html" | |
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
# encoding: UTF-8 | |
require 'open-uri' | |
require 'nokogiri' | |
require 'csv' | |
def gen_url(offset=0) | |
if offset == 0 | |
"http://www.buenosaires.gob.ar/areas/registrocivil/nombres/busqueda/buscador_nombres.php?&menu_id=16082" | |
else |
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
# encoding: UTF-8 | |
require 'csv' | |
filename = 'nombre_nacim_por_anio_y_sexo.csv' | |
class Name | |
attr_reader :name, :gender, :male_count, :female_count, :year | |
def self.valid?(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
import csv | |
from genderPredictor import genderPredictor | |
gp = genderPredictor() | |
gp.trainAndTest() | |
def gender(name): | |
output = 'unknown' | |
tmp = gp.classify(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
require 'csv' | |
require 'net/http' | |
require 'json' | |
require 'beauvoir' | |
require 'sexmachine' | |
names_with_gender = [] | |
CSV.foreach('input.csv') do |row| | |
names_with_gender << row |
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 os | |
import csv | |
import glob | |
import optparse | |
class CSVHandler: | |
def __init__(self, filename): |
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
class Answer(object): | |
"""docstring for answer | |
>>> answer = Answer(1, [1,3]) | |
>>> answer.included() | |
True | |
>>> answer.excluded() | |
False | |
>>> answer.includes() | |
[1, 3] | |
>>> answer = Answer(2, [1, 2, 3]) |