I hereby claim:
- I am crm114 on github.
- I am crm114 (https://keybase.io/crm114) on keybase.
- I have a public key whose fingerprint is BD34 54CE CA2F 8D5F 0905 C6BB 4D34 2E2A 29B9 C4FF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # gem install httparty | |
| # gem install nokogiri | |
| # gem install feedjira | |
| module ItunesToRSS | |
| def self.extract(url) | |
| headers = { 'User-Agent' => 'iTunes/10.1 (Windows; U; Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)) DPI/96' } | |
| base_url = 'http://itunes.apple.com/podcast/' | |
| podcast_id = url.match(/id\d+/).to_s | |
| itunes_response = HTTParty.get("#{base_url+podcast_id}", headers: headers) |
| from flask import Flask, jsonify, request | |
| from datetime import tzinfo, timedelta, datetime | |
| import json | |
| import ephem | |
| app = Flask(__name__) | |
| @app.route("/spacebody") | |
| def spacebody(): |
| #!/usr/bin/env ruby | |
| # encoding UTF-8 | |
| require 'csv' | |
| require 'json' | |
| require 'open-uri' | |
| # Check if we're working with an URL or filename | |
| if ARGV[0].match(URI.regexp) | |
| file = File.open(open(ARGV[0])) |
| # gem install httparty | |
| require 'httparty' | |
| module MAAS | |
| class API | |
| include HTTParty | |
| base_uri 'http://marsweather.ingenology.com/v1' | |
| def initialize(params = nil) | |
| @params = params |
| # gem install nokogiri | |
| require 'nokogiri' | |
| require 'open-uri' | |
| base_uri = "https://2014.spaceappschallenge.org/" | |
| category_links = Nokogiri::HTML(open("#{base_uri}/challenge")).css('#category_array a').map {|l| l.attributes['href'].text} | |
| categories = category_links.map {|cat| cat.split('/').last} | |
| category_hashes = {} | |
| category_links.each_with_index do |link, index| |
| { | |
| "technology-space": { | |
| "links": [ | |
| "/challenge/alert-alert/", | |
| "/challenge/bring-internet-deep-space-exploration/", | |
| "/challenge/nasa-small-business-one-stop/", | |
| "/challenge/phonesat-convert-your-smartphone-satellite/", | |
| "/challenge/pilot-satellite/", | |
| "/challenge/space-adventure-earth-limits-solar-system/", | |
| "/challenge/space-mission-roadmap/", |
| require 'rio' | |
| indir = ARGV[0] | |
| files = rio(indir).entries['*.jpg'] | |
| files.each do |infile| | |
| res = `python togeo.py #{infile}` | |
| end |
| #!/usr/bin/env ruby | |
| # sudo port install jp2a (Mac OS X) | |
| # sudo apt-get install jp2a (Ubuntu/Debian) | |
| # gem install httparty | |
| # gem install hashie | |
| # gem install hirb | |
| class Candidate | |
| @@base_url = 'http://207.150.251.12/REYDI_NocheDelEvento/' |
| require 'sinatra' | |
| class Car | |
| def mpg | |
| return "50 MPG" | |
| end | |
| def length | |
| return "2.5 meters" | |
| end |