- Go to My Drive - Google Drive
- Click NEW > More > Google Apps Script
- If you cannot find
Google Apps Script, add it viaConnect more apps
- Copy and paste
setCalendar.jscontents. - Click Run > setMyGoogleCalendar
| module main | |
| import vweb | |
| struct App { | |
| vweb.Context | |
| alphabets []string | |
| } | |
| fn new_app(alphabets []string) &App { |
| curl -X POST \ | |
| https://www.googleapis.com/fitness/v1/users/me/dataset:aggregate \ | |
| -H 'Authorization: Bearer <TOKEN>' \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'Postman-Token: f887f92e-d91d-4897-8e0f-8a2b111fc05b' \ | |
| -H 'cache-control: no-cache' \ | |
| -d '{ | |
| "aggregateBy": [ | |
| { | |
| "dataSourceId": "derived:com.google.activity.segment:com.google.android.gms:merge_activity_segments" |
Google Apps Script, add it via Connect more appssetCalendar.js contents.| 192.168.100.1 - - [04/Apr/2014:02:53:09 +0000] "GET / HTTP/1.1" 200 11 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" | |
| 192.168.100.1 - - [04/Apr/2014:02:53:15 +0000] "GET / HTTP/1.1" 200 11 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" |
perlのuseについて調べたのでメモ。
use Module LISTは perldoc.jp http://perldoc.jp/func/use によると
BEGIN { require Module; Module->import( LIST ); }と等価らしいです。
#!/usr/bin/perl
use Data::Dumper (qw(Dumper));| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title></title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <table border="1"> |
| var jq = document.createElement('script'); | |
| jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| jQuery.noConflict(); |
| #!/usr/bin/ruby | |
| # -*- coding:utf-8 -*- | |
| require 'sinatra' | |
| require 'feedzirra' | |
| atom_url = 'http://blog.takkyuuplayer.com/feeds/posts/summary' | |
| get '/' do | |
| feed = Feedzirra::Feed.fetch_and_parse(atom_url) |
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title></title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script> | |
| </head> | |
| <body> |