Skip to content

Instantly share code, notes, and snippets.

@yamamaya
yamamaya / OpenTWImage.js
Created April 24, 2017 11:54
TweetDeckとTwitter webで画像を拡大表示するブックマークレット
javascript:(function(){var%20s=document.querySelector(".media-img");if(!s){s=document.querySelector(".media-image");}s=s.src.replace(":small",":large");window.open(s);})();
@yamamaya
yamamaya / SendSMS.py
Created August 24, 2017 02:07
NETDWARF obsidianでSMSを送る
from NDCore import ConnectLib, SMSLib
def main():
# ネットワークに接続する
print 'Connecting...',
ConnectLib.connect()
print 'OK'
  # SMSを送信する
phone_number = 'xxxxxxxxxxx'
@yamamaya
yamamaya / SendSMS2.py
Created August 24, 2017 02:10
NETDWARF obsidianからSMSを送る。シャットダウンしてENによるトリガーで起動。
from NDCore import ConnectLib, SMSLib
def main():
# ネットワークに接続する
print 'Connecting...',
ConnectLib.connect()
print 'OK'
  # SMSを送信する
phone_number = 'xxxxxxxxxxx'
@yamamaya
yamamaya / main.py
Last active August 28, 2017 08:38
NETDWARF obsidianからセンサーの情報をHTTPで定期的に送信する
import time
import NDSPI
from NDCore import ConnectLib, NDHTTPLib, PowerLib
def main():
try:
now = PowerLib.get_time()
timestamp = '{0:04d}{1:02d}{2:02d}{3:02d}{4:02d}{5:02d}'.format(
now['year']+2000,
now['month'],
@yamamaya
yamamaya / gist:f1e465784ad4edb0d4690ee2b82932d8
Created August 31, 2017 09:48
VS2013でWindowsAzure.Storage 8.4.0をインストールする方法
Install-Package System.Linq.Queryable -Version 4.3.0
Install-Package WindowsAzure.Storage -Version 8.4.0
@yamamaya
yamamaya / MAHMTest.cs
Last active June 2, 2019 08:57
Retrieve hardware information from MSI Afterburner
using System;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.IO.MemoryMappedFiles;
namespace MAHMTest {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
@yamamaya
yamamaya / PowerShell Admin.reg
Created September 9, 2019 10:04
フォルダ右クリック+Shiftに「PowerShell(管理者)ウィンドウをここに開く」を追加する
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\runas]
"Extended"=""
"NoWorkingDirectory"=""
@="PowerShell(管理者)ウィンドウをここに開く(&A)"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
#include <Adafruit_ZeroDMA.h>
#include <TFT_eSPI.h>
#include "AtWiFi.h"
#include"Free_Fonts.h"
TFT_eSPI tft;
const char* ssid = "******";
const char* password = "*******";
@yamamaya
yamamaya / test1.ino
Created May 12, 2020 14:33
Compatibility issues between AtWiFi and TFT_eSPI
//#define NO_WIFI
#ifndef NO_WIFI
#include <AtWiFi.h>
#endif
#include <TFT_eSPI.h>
TFT_eSPI tft;
const char* ssid = "***********";
@yamamaya
yamamaya / ISRBlink.ino
Last active September 10, 2020 07:33 — forked from ciniml/ISRBlink.ino
Wio Terminal TC interrupt sample (separated) / TC3 dedicated to 32kHz