Skip to content

Instantly share code, notes, and snippets.

@satoshi7
satoshi7 / Employee.gs
Last active September 23, 2021 09:46
SmartHR APIとGoogle App Scriptを使って社内向け社員一覧の取得を自動化する
function listEmployee() {
//SmartHRのAPIキー(機密情報なのでプロパティで事前設定しておく)
const TOKEN = PropertiesService.getScriptProperties().getProperty("SMARTHR_APIKEY");
//組織名(SmartHRで登録されているサブドメイン名)
const ORG = PropertiesService.getScriptProperties().getProperty("ORG");
//一覧に表示するドメイン名(Gmailなどの個人アドレスを表示させないため)
const DOMAIN = PropertiesService.getScriptProperties().getProperty("DOMAIN");
//シート名
const SHEET = PropertiesService.getScriptProperties().getProperty("SHEET");
//何ページ分取得するか(登録されている社員数に依存する)
@satoshi7
satoshi7 / rekognition_video_visual.html
Last active July 7, 2018 17:08
Amazon Rekognition Videoで出力された人物追跡データをビジュアルに表現する
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Video Rekognition Detect Person Bounding Box</title>
<script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
#videoview {
z-index: 0;
target_url=http://dev.classmethod.jp/
curl --silent --head http://b.hatena.ne.jp/bc/de/$target_url | grep Location | cut -f4 -d. | cut -f7 -d/
#!/usr/bin/env python
import sys
import os
import errno
from datetime import datetime, date, timedelta
import urllib2
import yaml
import cPickle as pickle
argvs = sys.argv
@satoshi7
satoshi7 / ios6-timers.js
Created September 25, 2012 17:20 — forked from ronkorving/ios6-timers.js
iOS6 webkit timer bug workaround
(function (window) {
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6.
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling.
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction).
// This code is free to use by anyone (MIT, blabla).
// Author: rkorving@wizcorp.jp
var timeouts = {};
var intervals = {};