This file contains hidden or 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
String regenerateAccessToken() { | |
String payload = ""; | |
payload += "grant_type=refresh_token"; | |
payload += "&refresh_token=" + REFRESH_TOKEN; | |
payload += "&client_id=amzn1.application-..."; | |
payload += "&client_secret=..."; | |
HTTPClient client; | |
client.begin("https://api.amazon.com/auth/o2/token"); | |
client.addHeader("Content-Type", "application/x-www-form-urlencoded"); |
This file contains hidden or 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
// Meetに参加したら、以下すべてをChromeのConsole(Option + Command + i)にコピペしてEnterを押してください。 | |
// 起動が成功するとミーティングの詳細(左下のやつ)が一瞬開いて閉じます。 | |
// カレンダーと紐付いた(終了時刻のある)Meetなら、終了時刻の2分前にあなたの画面上にだけGet WildのYouTube動画が表示されます。 | |
// ただし毎回この操作をする必要があって面倒。 | |
// なのでChrome Extensionにしたり改変したりはご自由にどうぞ。 | |
(async () => { | |
function findButton(expanded) { | |
return document.querySelector(`[aria-haspopup="true"][aria-label$="の詳細"][aria-expanded=${expanded}]`); | |
} |
This file contains hidden or 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
#include <HTTPClient.h> | |
const char SSID[] = "YOUR_WIFI_SSID"; | |
const char PASSWORD[] = "YOUR_WIFI_PASSWORD"; | |
const char IFTTT_WEBHOOK_URL_ON[] = "https://maker.ifttt.com/trigger/cat_bed_on/with/key/***************_******"; | |
const char IFTTT_WEBHOOK_URL_OFF[] = "https://maker.ifttt.com/trigger/cat_bed_out/with/key/***************_******"; | |
const int RECV_PIN = 34; | |
const int LED_PIN = 2; | |
const int AVE_LENGTH = 100; |
This file contains hidden or 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
#include <M5StickC.h> | |
// https://github.com/T-vK/ESP32-BLE-Keyboard | |
#include <BleKeyboard.h> | |
BleKeyboard bleKeyboard; | |
bool connected = false; | |
struct KeyConfig { | |
String name; | |
String example; |
This file contains hidden or 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
" .vim/autoload/yml.vim | |
function! yml#search(pos) | |
let indent = indent(a:pos) | |
let keys = [s:get_key(getline(a:pos))] | |
for n in range(line(a:pos), 1, -1) | |
if indent(n) == (indent - &tabstop) | |
call insert(keys, s:get_key(getline(n))) | |
let indent = indent - &tabstop | |
endif |
This file contains hidden or 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
/* | |
javascript:(function(){var s,d,u='//gist.github.com/moyashipan/6409832/raw/main.js'; d=document;s=d.createElement('script');s.setAttribute('src',u);d.documentElement.appendChild(s);}()) | |
*/ | |
(function(){ | |
var u = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'; | |
var d = document; | |
var s = d.createElement('script'); | |
s.setAttribute('src', u); | |
d.documentElement.appendChild(s); | |
var clearId = setInterval(function(){ |
This file contains hidden or 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
/* | |
javascript:(function(){var s,d,u='//gist.github.com/moyashipan/6409832/raw/main.js'; d=document;s=d.createElement('script');s.setAttribute('src',u);d.documentElement.appendChild(s);}()) | |
*/ | |
(function(){ | |
var u = 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'; | |
var d = document; | |
var s = d.createElement('script'); | |
s.setAttribute('src', u); | |
d.documentElement.appendChild(s); | |
var clearId = setInterval(function(){ |
This file contains hidden or 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 searchAndSave() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getSheets()[0]; | |
var offset = 0; | |
var limit = 500; | |
while (true) { | |
var threads = GmailApp.search('(subject:日報 AND [report) after:2013/5/31 before:2013/7/1', offset, limit); | |
offset += limit; |
This file contains hidden or 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
// See: http://www.pixiv.net/group/comment.php?id=747934 | |
pixiv.ui.DrawrPainter.prototype.widthList = [0.9, 2, 4, 6, 10, 15, 30]; | |
alert("pixivグループお絵描きツールの\n一番細い線を0.9pxに設定しました"); |
This file contains hidden or 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
◯場所 | |
〒151-0051 東京都渋谷区千駄ヶ谷4丁目23-5 JPR千駄ヶ谷ビル 5F ピクシブ株式会社 | |
http://p.tl/RwHh | |
◯定員 | |
24名 | |
◯入退場について | |
当日は正面玄関が使えません。 | |
入場の際にはビル左奥の通用口インターホンで呼びかけてください。 |
NewerOlder