旅好き勉強会#3
-
ゴール
- iPhone のMapView でオフィス近くで一杯やれる場所を探せるアプリ
-
cocoapods でfoursquare さがす
- 2つあったけどアクティブなほうにした
-
新しいアプリつくる
| #!/usr/bin/env ruby | |
| require 'base64' | |
| require 'net/http' | |
| require 'openssl' | |
| require 'time' | |
| require 'digest/md5' | |
| Net::HTTP.version_1_2 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Google Maps JavaScript API v3 Example: Places Autocomplete</title> | |
| <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script> | |
| <script> | |
| function initialize() { | |
| var input = document.getElementById('searchTextField'); | |
| var autocomplete = new google.maps.places.Autocomplete(input); | |
| } |
| #!/usr/bin/ruby | |
| filename = ARGV.shift | |
| File.open(filename, 'r').each_line do |line| | |
| puts line.sub( | |
| '#highlighter(sh){{' , '<pre>' ).gsub( | |
| /^\}\}/ , '</pre>' ).gsub( | |
| /^#contents/ , '{{toc}}' ).gsub( | |
| /^#contents/ , '{{toc}}' ).gsub( |
| #!/usr/bin/ruby | |
| filename = ARGV.shift | |
| File.open(filename, 'r').each_line do |line| | |
| puts line.sub( | |
| /^<pre>/ , '#highlighter(){{').gsub( | |
| /^<\/pre>/ , '}}').gsub( | |
| '{{toc}}' , '#contents').gsub( | |
| /^# / , '+ ' ).gsub( |
| #!/usr/bin/env ruby | |
| require 'net/https' | |
| require 'uri' | |
| require 'pry' | |
| require 'json' | |
| require 'logger' | |
| require 'pp' | |
| SSL_CERT_FILE = "/path/to/cacert.pem" |
旅好き勉強会#3
ゴール
cocoapods でfoursquare さがす
新しいアプリつくる
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| <script> | |
| var tabularize = function() { | |
| var active = location.hash; | |
| if(active) { | |
| $(".tabs").children("div").hide(); | |
| $(active).show(); |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <div class="tabs"> | |
| <ul> | |
| <li class="active"><a href="#tab1" class="tab-link">Tab 1</a></li> | |
| <li><a href="#tab2" class="tab-link">Tab 2</a></li> |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <style> | |
| .hoge1 { | |
| color: red; | |
| } | |
| .hoge2.hoge3 { | |
| background: red; | |
| } |
| require "net/http" | |
| require "uri" | |
| proxy_addr = "localhost" | |
| proxy_port = 3128 | |
| uri = URI.parse "http://www.ugtop.com/spill.shtml" | |
| Net::HTTP.new(uri.host, uri.port, proxy_addr, proxy_port).start do |http| | |
| request = Net::HTTP::Get.new(uri.request_uri) |