Skip to content

Instantly share code, notes, and snippets.

View bestpika's full-sized avatar

観月唯 bestpika

  • やりたい事しかできない
View GitHub Profile
@bestpika
bestpika / submit.md
Created October 6, 2023 01:52 — forked from tanaikech/submit.md
Checking Exchange Rate using GOOGLEFINANCE with Google Apps Script

Checking Exchange Rate using GOOGLEFINANCE with Google Apps Script

This is a sample script for checking the exchange rate using GOOGLEFINANCE with Google Apps Script.

Recently, I have published a report of "Report: Obtaining Values from GOOGLEFINANCE using Google Apps Script". Ref In this post, I would like to introduce a sample script for checking the exchange rate using Google Apps Script.

Sample script

排序記錄

  • 翻譯
  • 總結(文本)
  • 整理成表格
  • 生成圖像
  • 回電郵
  • 回覆消息
  • 解釋代碼
  • 改寫
@bestpika
bestpika / notification.js
Last active February 6, 2023 00:25
Radar notification sample code
const pastValue = pastValues[-1].primaryValue
const diff = primaryValue - pastValue
notificationText = diff !== 0 ? `... ${primaryValue} (${diff})` : null
@bestpika
bestpika / gist:0c8a0a44e2cd42e03cf0b68a39896207
Created January 22, 2023 09:38 — forked from uhfx/gist:3922268
Twitter公式/非公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

using Microsoft.Extensions.Configuration;
public class AppSettings
{
static private readonly IConfiguration _config = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddYamlFile("appsettings.yaml", optional: false, reloadOnChange: true)
.Build();
@bestpika
bestpika / blynk.yml
Last active January 24, 2019 08:24
CoreOS
version: '2'
services:
db:
image: postgres:alpine
restart: always
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- 5432:5432
@bestpika
bestpika / 00.md
Created August 9, 2018 07:48
IIS 設定

IIS

  • 解鎖設定
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/serverRuntime
@bestpika
bestpika / arduino.ino
Last active July 1, 2018 06:37
#arduino 網址解碼
// 文字轉換
unsigned char hs2i(char c)
{
if ('0' <= c && c <= '9') {
return ((unsigned char)c - '0');
} else if ('a' <= c && c <= 'f') {
return ((unsigned char)c - 'a' + 10);
} else if ('A' <= c && c <= 'F') {
return ((unsigned char)c - 'A' + 10);
} else {
@bestpika
bestpika / Web.config
Last active June 25, 2018 07:45
IIS 7.x static content
<configuration>
<system.webServer>
<modules>
<remove name="FormsAuthentication" />
<remove name="RoleManager" />
<remove name="UrlAuthorization" />
<remove name="DefaultAuthentication" />
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />