Skip to content

Instantly share code, notes, and snippets.

const notionToken = "secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
const notionDbId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
const ocrProperty = "OCR";
function main() {
let updateCount = 0;
let pages = getPages();
pages.forEach((page) => {
let blocks = getBlocks(page);
const notionToken = "secret_xxxxxxxxxx";
const notionDbId = "xxxxxxxxxx";
const calendarId = "xxxxxxxx@group.calendar.google.com";
const notionPrefix = "https://www.notion.so/";
const nameProp = "Name";
const dateProp = "Date";
const hoursProp = "Hours";
const statusProp = "Status";
@nobuhito
nobuhito / main.dart
Last active January 27, 2020 05:30
型指定しないとFlutter自体のExtensionでエラーが発生
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Hoge hoge = Hoge()..setDuration(Duration(hours: 5));
@nobuhito
nobuhito / chapter-1.dart
Last active December 1, 2018 03:44
ひとりアドベントカレンダー Flutter編 2018
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(home: MaterialIconsViewer());
}
}
Order Area TOCTitle ContentId PageTitle DateApproved MetaDescription
12
extensions
Testing Extensions
2447F8EB-15F1-4279-B621-126C7B8EBF4B
Testing Visual Studio Code Extensions
11/8/2017
It is easy to write tests for your Visual Studio Code extension (plug-in). The Yo Code extension generator scaffolds the necessary settings to run and debug your extension tests directly in Visual Studio Code.

from https://github.com/Microsoft/vscode-docs/blob/master/docs/extensions/testing-extensions.md

@nobuhito
nobuhito / ViewController.swift
Last active October 11, 2017 08:32
TextViewにカーソルを前後や行頭行末に移動させるToolbarを追加
class ViewController: UIViewController {
@IBOutlet weak var TextView: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let toolbar = UIToolbar()
let start = UIBarButtonItem(title: "|<", style: .plain, target: self, action: #selector(self.start))
  • 🎨 :art when improving the format/structure of the code
  • 🚀 :rocket when improving performance
  • ✏️ :pencil2 when writing docs
  • 💡 :bulb new idea
  • 🚧 :construction work in progress
  • ➕ :heavy_plus_sign when adding feature
  • ➖ :heavy_minus_sign when removing feature
  • 🔈 :speaker when adding logging
  • 🔇 :mute when reducing logging
  • 🐛 :bug when fixing a bug
@nobuhito
nobuhito / GistList!.md
Created October 31, 2016 14:22
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

@nobuhito
nobuhito / snmp_metrics.json
Created April 30, 2016 09:04
Sensuで取得したSNMP対応機器の転送量をGrafana経由でモニタリング ref: http://qiita.com/nobuhito/items/85615135f561ce488253
{
"checks": {
"snmp_metrics": {
"type": "metric",
"handlers": ["graphite"],
"command": "ruby /etc/sensu/plugins/snmp_metrics.rb --host \"127.0.0.1, localhost\"",
"interval": 15,
"subscribers": [ "sensu" ]
}
}
@nobuhito
nobuhito / README.md
Last active March 18, 2016 01:27
D3.jsを使ってスターウォーズっぽくズンドコキヨシ

R2D3_ZUNDOKO

D3.jsの勉強がてらに作ったSTARWARS風な六甲おろしを元にして、ズンドコキヨシバージョンを作ってみました。

  • パソコン用デモとソース → bl.ocks.org

  • モバイル用デモ → bl.ocks.org

  • Qiitaでの紹介ページ → Qiita

  • ズンドコキヨシまとめ → Qiita

  • 以前作ったSTARWARS風六甲おろし → bl.ocks.org