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
const int input_pin = 9; | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("START"); | |
pinMode(input_pin, INPUT); | |
} | |
int count = 0; | |
int last = 0; |
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
#!/bin/bash | |
# For example: switch-tty.sh `pidof vi` `tty` | |
target=$1 | |
dest=$2 | |
if [ -z "$target" -o -z "$dest" ]; then | |
echo "usage: $0 pid target" | |
exit 1 | |
fi |
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
#!/usr/bin/ruby | |
require 'timeout' | |
THRESH = 80 # % | |
SPEED = 60 # sec / % | |
$IDEVICEINFO_CMD = '/usr/local/bin/ideviceinfo' | |
$POWER_ON_CMD = 'curl -s -m 5 192.168.x.x/on' | |
$POWER_OFF_CMD = 'curl -s -m 5 192.168.x.x/off' | |
$state = nil | |
$caffe_pid = nil |
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
From 1dfbeab6f4ca7287e27c31a9f90ddec3343a18d5 Mon Sep 17 00:00:00 2001 | |
From: NeoCat <[email protected]> | |
Date: Thu, 13 Oct 2016 22:19:22 +0900 | |
Subject: [PATCH] Adds NAPT and port mapping functionality to esp8266 lwip | |
esp8266 can handle 2 network interfaces (Wifi client and softAP) | |
simultaneously in the WIFI_AP_STA mode. | |
Currently IP_FORWARD is implemented in lwip to forward packets | |
between 2 interfaces, but static routing must be setup manually. | |
This patch adds IP_NAPT config option to enable esp8266 to use |
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
import sys | |
import os | |
import datetime | |
import subprocess | |
import re | |
import time | |
from keyhac import * | |
class NICOLA: |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Power</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.0.min.js"></script> | |
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<script src="https://code.highcharts.com/highcharts-more.js"></script> | |
<script src="https://code.highcharts.com/modules/exporting.js"></script> | |
<style type="text/css"> |
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 <SoftwareSerial.h> | |
// Detail: http://d.hatena.ne.jp/NeoCat/20160110/1452407542 | |
//----------------------------------------------------------- | |
// Configurations | |
//----------------------------------------------------------- | |
// B-route ID and Password (PANA authentication) | |
#define ID "0000XXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
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
#!/bin/sh | |
IB_ADDR=172.24.100.1 | |
TARGET_IQN=iqn.2015-05.com.example:test | |
if [ $EUID -ne 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi |
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
/* twicliの設定→ユーザスタイルシートに下記をペーストして保存 */ | |
/* サムネールをマウスオーバーで拡大しない */ | |
.thumbnail-image:hover { max-width: 32px; width: 32px\9; } | |
/* tweetをクリックで選択した時にサムネールを拡大 */ | |
div.selected img.thumbnail-image { width: auto; max-width: 300px; } |
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
#!/usr/bin/ruby | |
require 'net/imap' | |
require 'nokogiri' | |
require 'twitter' | |
require 'cgi' | |
require 'open-uri' | |
mail_user = '***@gmail.com' | |
mail_password = '***' | |
mail_label = 'Ingress' |