VSCode CLIをサーバーにインストールすることで、SSHを経由することなくVSCodeやvscode.dev上からサーバーにアクセスすることができる様になる
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
// main.ts | |
import { serve } from "https://deno.land/std/http/server.ts"; | |
const target = "https://example.com"; // destination URL | |
const port = 8000; | |
async function handleRequest(req: Request): Promise<Response> { | |
const url = new URL(req.url); | |
const targetUrl = `${target}${url.pathname}${url.search}`; | |
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 <iostream> | |
#include <ctime> | |
#include <cuda_runtime.h> | |
#define MEGA_BYTE (1'000'000) | |
const int N = 100 * MEGA_BYTE; // Size of data | |
const int numIterations = 100; // iteration | |
// CUDA error check macro |
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 sendNotification() { | |
const webhookUrl = PropertiesService.getScriptProperties().getProperty('WEBHOOK_URL'); | |
const spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
const sheet = spreadsheet.getSheetByName("日程表"); | |
const lastRow = sheet.getLastRow(); | |
const values = sheet.getRange(`A2:B${lastRow}`) | |
.getValues(); | |
function convertToMessage(values) { |
NewerOlder