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
// https://qiita.com/howdy39/items/b92c9ba0b050151a889b | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
var nextSyncTokenKey = 'NEXT_SYNC_TOKEN'; | |
var otherDestinationCalendarId = '[コピー先のカレンダーのメールアドレス]'; | |
function calendarUpdatedSample(e) { | |
console.info('calendarUpdatedSample() ------------------------------'); | |
console.log('authMode:%s/calendarId:%s/triggerUid:%s', e.authMode, e.calendarId, e.triggerUid); |
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
// | |
// AppDelegate.swift | |
// FirebaseSample | |
// | |
// Created by Yoonchul Koh on 2018/10/01. | |
// Copyright © 2018 Yoonchul Koh. All rights reserved. | |
// | |
import UIKit |
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 'open-uri' | |
require 'nokogiri' | |
require 'mechanize' | |
namespace :scrape do | |
desc '健康診断ページから空き情報一覧を取得する' | |
task :medical_checkup => :environment do | |
@courses = { | |
# 1 => "1日人間ドック(午前)", | |
2 => "健保指定ドック(午前)", |
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
import UIKit | |
import Bond | |
class ViewController: UIViewController { | |
let items: MutableObservableArray<String> = MutableObservableArray<String>([]) | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
This file has been truncated, but you can view the full file.
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
ab_IS, "February 14, 2016", MDY | |
ab_IE, "February 14, 2016", MDY | |
ab_AZ, "February 14, 2016", MDY | |
ab_AF, "Bahman 25, 1394 AP", MDY | |
ab_US, "February 14, 2016", MDY | |
ab_VI, "February 14, 2016", MDY | |
ab_AS, "February 14, 2016", MDY | |
ab_AE, "February 14, 2016", MDY | |
ab_DZ, "February 14, 2016", MDY | |
ab_AR, "February 14, 2016", MDY |
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
find ./ -name "*.storyboard" -or -name "*.xib" | while read line; do open $line; done |
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
(function(b){void 0==document.createElement("div").innerText&&Object.defineProperty(HTMLElement.prototype,"innerText",{get:function(){return this.textContent},set:function(a){this.textContent=a}});var d=b.querySelector(".title").innerText,e=b.querySelector(".author").innerText,f=b.querySelectorAll(".highlight");b=b.querySelectorAll(".k4pcReadMore");var g=parseInt(document.querySelector(".boldText").innerText),c=0,a=[];a.push('<div class="book_info">');a.push('<span class="title">'+d+"</span><br />");a.push('<span class="author">'+e+"</span>");a.push("</div>");for(a.push('<div class="highlights">');c<g;c++)a.push("<hr />"),a.push("<p>"+f[c].innerText+"</p>"),a.push('<p><a href="'+b[c].href+'">'+b[c].innerText+"</a></p>");a.push("</div>");document.title=d;document.body.innerHTML=a.join("");document.body.style.fontSize = '1em'})(document); |
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
function getCrashCount() { | |
SpreadsheetApp.flush(); | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var values = rows.getValues(); | |
var threeDaysStartRow = 22; | |
var yesterdayStartRow = 36; | |
var count = 10; | |
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
/* | |
* DMM英会話のスケジュールを登録する | |
*/ | |
var CALENDAR_NAME = 'YOUR CALENDAR NAME'; | |
var SEARCH_QUERY = 'is:unread subject:"【DMM英会話】レッスン予約完了のお知らせ"'; | |
function registDMMEikaiwaCalendar() { | |
// 指定したカレンダーを取得 | |
var calendars = CalendarApp.getCalendarsByName(CALENDAR_NAME); | |
var calendar; |
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
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] init]; | |
NSArray *texts = [text componentsSeparatedByString:@"\n"]; | |
int i = 0; | |
for (NSString *text in texts) { | |
if (i > 0) { | |
// 行間用の改行を追加 | |
NSMutableAttributedString *lf = [[NSMutableAttributedString alloc] initWithString:@"\n\n"]; | |
UIFont *font = [UIFont systemFontOfSize:4.0f]; | |
[lf addAttribute:NSFontAttributeName value:font range:NSMakeRange(0, lf.length)]; | |
[attributedString appendAttributedString:lf]; |
NewerOlder