SCREENSHOT_DIR="/mnt/c/Users/[username]/Pictures/Screenshots"
最新のスクリーンショットファイルを自動取得して表示します。
手順:
| function doGet(e) { | |
| // 画面に表示 | |
| const resultText = 'しばらくお待ちください' | |
| return ContentService.createTextOutput(resultText); | |
| } |
| // server_express/api/line.ts | |
| import { ClientConfig, Client, middleware, MiddlewareConfig, WebhookEvent, TextMessage, } from '@line/bot-sdk' | |
| const channelAccessToken = process.env.CHANNEL_ACCESS_TOKEN || '' | |
| const channelSecret = process.env.CHANNEL_SECRET || '' | |
| const clientConfig: ClientConfig = { | |
| channelAccessToken, | |
| channelSecret, | |
| } | |
| const middlewareConfig: MiddlewareConfig = { | |
| channelAccessToken, |
| const URL_BOOK = 'Spread Sheet URL (public)'; | |
| const SHEETNAME = 'Sheet Name'; | |
| const CALENDAR_ID = '[email protected]'; | |
| function main() { | |
| register2Calendar(); | |
| } | |
| function register2Calendar() { | |
| // create JSON (from SpreadSheet) |
| import { Injectable } from '@nestjs/common'; | |
| import { ConfigService as NestConfigService } from '@nestjs/config'; | |
| // Notion | |
| import { Client as NotionClient } from '@notionhq/client'; | |
| @Injectable() | |
| export class ConfigService { | |
| private readonly config = this.createConfig(); |
| // middleware/auth.js | |
| export default async ({ store, redirect }) => { | |
| const loggedIn = await store.dispatch('isLoggedIn') | |
| if (!loggedIn) { | |
| redirect('/login') | |
| } | |
| } |
| using System.Drawing; | |
| using System.Windows.Forms; | |
| namespace crosshair | |
| { | |
| class CrosshairForm : Form | |
| { | |
| public CrosshairForm() | |
| { | |
| // Form 設定 |
#NoSQLデータモデリング技法
原文:NoSQL Data Modeling Techniques « Highly Scalable Blog
I translated this article for study. contact matope[dot]ono[gmail] if any problem.
NoSQLデータベースはスケーラビリティ、パフォーマンス、一貫性といった様々な非機能要件から比較される。NoSQLのこの側面は実践と理論の両面からよく研究されている。ある種の非機能特性はNoSQLを利用する主な動機であり、NoSQLシステムによく適用されるCAP定理がそうであるように分散システムの基本的原則だからだ。一方で、NoSQLデータモデリングはあまり研究されておらず、リレーショナルデータベースに見られるようなシステマティックな理論に欠けている。本稿で、私はデータモデリングの視点からのNoSQLシステムファミリーの短い比較といくつかの共通するモデリングテクニックの要約を解説したい。
本稿をレビューして文法を清書してくれたDaniel Kirkdorfferに感謝したいと思う
| // Google URL Shortener | |
| // https://developers.google.com/url-shortener/v1/getting_started | |
| function createGoogleShortUrl(url) { | |
| var result = UrlShortener.Url.insert({ | |
| longUrl: url | |
| }); | |
| return result.id; | |
| } |
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:id="@+id/content" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" | |
| app:layout_behavior="@string/appbar_scrolling_view_behavior" | |
| tools:context="daichan4649.jazzspotfukuoka.view.activity.MainActivity"> |