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 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] | |
doc = Nokogiri::XML(data) |
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
var USER_ID = '106825171914368756519'; | |
var API_KEY = 'AIzaSyCJU1qbrA9tWSkEIVBmzTKxvgo29ZwzirM'; | |
var MAX_REQUEST_NUM = 5; | |
var queryParams = { | |
maxResults: 20, | |
orderBy: "recent", | |
// fields: "items(actor%2Fid%2Cobject(actor%2Fid%2Cattachments(content%2CfullImage%2Furl)%2Cid)%2Ctitle%2Cverb)%2CnextPageToken", | |
fields: "items(actor%2Fid%2Cobject(actor%2Fid%2Cattachments%2FfullImage%2Furl%2Ccontent%2Cid%2CoriginalContent)%2Ctitle%2Curl)%2CnextPageToken", | |
key: API_KEY |
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
var USER_ID = '106825171914368756519'; | |
var API_KEY = 'AIzaSyCJU1qbrA9tWSkEIVBmzTKxvgo29ZwzirM'; | |
var MAX_REQUEST_NUM = 100; | |
var doc = SpreadsheetApp.getActiveSpreadsheet(); | |
var queryParams = { | |
maxResults: 20, | |
orderBy: "recent", | |
fields: "items(actor(displayName%2Cid)%2Cobject(attachments%2FfullImage%2Furl%2Ccontent%2Cplusoners%2Creplies%2Cresharers)%2Cpublished%2Ctitle%2Curl%2Cverb)%2CnextPageToken", |
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
// 円の半径を渡していろいろする | |
var Circle = function(radius) { | |
this.radius = radius; | |
this.diameter = radius * 2; | |
}; | |
Circle.prototype.getPerimeter = function() { | |
return this.radius * Math.PI * 2; | |
}; | |
Circle.prototype.getArea = function() { |
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
var lost = [4, 8, 15, 16, 23, 42]; | |
var count = lost.length; | |
var isLost = function (n) { | |
for (var i = 0; i < lost.length; i++) { | |
if ( n === lost[i]) { | |
return true; | |
} | |
} | |
return ; |