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
// ==UserScript== | |
// @name Hide Button during specific time | |
// @namespace http://your-namespace.com | |
// @version 1.0 | |
// @description Hide a specific button during a specific time range | |
// @match https://github.com/gaudiy/gaudiy-monorepo/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
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 "M5Atom.h" | |
#include <ESP32Servo.h> | |
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <WebServer.h> | |
#include <ESPmDNS.h> | |
const char* ssid = "xx"; | |
const char* password = "xx"; |
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 <esp8266-google-home-notifier.h> | |
#define BTN_A_PIN 37 | |
#define LED_PIN 10 | |
#define LIGHT_PIN 36 | |
const char *ssid = "Google NestがつながっているWiFiのSSID"; | |
const char *password = "Google NestがつながっているWiFiのパスワード"; | |
GoogleHomeNotifier ghn; | |
const char displayName[] = "Nest"; //Google Home のデバイス名 |
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 <M5Stack.h> | |
int state = LOW; | |
void setup() { | |
// put your setup code here, to run once: | |
M5.begin(); | |
pinMode(GPIO_NUM_10, OUTPUT); | |
pinMode(GPIO_NUM_32, INPUT); | |
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
#!/bin/sh | |
# dockerをインストール | |
apt-get install -y docker.io | |
# kubeadm kubelet kubectlのインストール | |
apt-get update && apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main |
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
const fs = require('fs'); | |
const plist = require('plist'); | |
const fuzzy = require('fuzzy'); | |
const xml = plist.parse(fs.readFileSync('3PM.xml', 'utf8')) | |
let playlists = [] | |
get_playlist(xml).forEach(song => { | |
playlists.push(`${song['Name']} / ${song['Artist']}`) |
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
## PC更新 | |
### やったこと | |
- | |
### 次回やること | |
- | |
## 基板 | |
### やったこと | |
- |
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
## 昼勤 | |
### 業務内容 | |
- | |
### 連絡事項 | |
- | |
### 次回の予定 | |
- |
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
require 'crowi' | |
require 'sinatra' | |
require 'date' | |
client = Crowi::Client.new(base_url: "http://crowi.mlab.im.dendai.ac.jp/", access_token: "HOGE") | |
# Create page | |
post '/create' do | |
page = client.create_page("/日誌/#{Date.today}", params[:markdown]).body['page'] | |
puts page |
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
//Available in nodejs | |
var NodeWebcam = require( "node-webcam" ); | |
//Default options | |
var opts = { | |
//Picture related |
NewerOlder