This file contains 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 <M5Core2.h> | |
#include <WiFi.h> | |
#include "time.h" | |
#include <Timezone.h> | |
#include "CUF_24px.h" | |
const char* ssid = ""; | |
const char* password = ""; | |
const char* ntpServer = "pool.ntp.org"; |
This file contains 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> | |
#include <WiFi.h> | |
#include <ssl_client.h> | |
#include <HTTPClient.h> | |
#define PIN_SW 26 | |
const char* ssid = "ssid"; | |
const char* password = "pass"; | |
const char* WEBHOOK_URL = "url"; |
This file contains 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
cd /D "%~dp0" | |
for /D %%G in ("*.*") do ( | |
echo %%~nxG | |
"C:\Program Files\7-Zip\7z.exe" a "%%~nxG.zip" "%%~nxG" | |
) | |
cmd /k |
This file contains 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
# CMakeのバージョン | |
cmake_minimum_required(VERSION 3.19) | |
# プロジェクト名 | |
project(proj_name CXX) | |
# PyBind11 を取得 | |
include(FetchContent) | |
FetchContent_Declare( | |
pybind11 |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<div style="height: 480px; width: 600px; display: block"> | |
<div | |
style=" | |
height: 100%; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Blockly Demo: Generating JavaScript</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/blockly_compressed.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/blocks_compressed.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/javascript_compressed.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/blockly/7.20211209.0-beta.0/msg/en.min.js"></script> | |
<style> |
This file contains 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 () { | |
/* Kindle Translator V 0.4*/ | |
/* based on ACRExtensions via https://github.com/binarycrafts/ACRExtensions */ | |
var w = null; | |
var kDoc = null; | |
var kObj = null; | |
if (typeof window.KindleReaderContextMenu !== 'undefined') { | |
w = window; | |
} else if (window.length) { | |
for (var i=0;i<window.length;i++) { |
This file contains 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 () { | |
/* Kindle Translator V 0.4*/ | |
/* based on ACRExtensions via https://github.com/binarycrafts/ACRExtensions */ | |
var w = null; | |
var kDoc = null; | |
var kObj = null; | |
if (typeof window.KindleReaderContextMenu !== 'undefined') { | |
w = window; | |
} else if (window.length) { | |
for (var i=0;i<window.length;i++) { |
This file contains 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
# coding: utf-8 | |
import heapq | |
import itertools | |
class AStar(object): | |
def __init__(self, map, obstacle_symbol=1): | |
self.map = map | |
self.obstacle = obstacle_symbol |
This file contains 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
# coding: utf-8 | |
import numpy as np | |
import argparse | |
import logging | |
logger = logging.getLogger(__name__) | |
def strong_connection(G, s, v, i, node_index, visited_stack): | |
"""Tarjan's strong connection detection algorithm. | |
Args: |
NewerOlder