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 HatenaMod(ka-ka_xyz) | |
// @include http://b.hatena.ne.jp/entrylist* | |
// @include http://b.hatena.ne.jp/hotentry* | |
// ==/UserScript== | |
//see http://d.hatena.ne.jp/ka-ka_xyz | |
(function (d, func) { | |
var h = d.getElementsByTagName('head')[0]; | |
var s1 = d.createElement("script"); |
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
var pid = checkDuplicate(); | |
WScript.Echo("起動: "+ pid); | |
/* | |
* 多重起動を判定するfunction | |
* 多重起動時、または判定失敗時にはダイアログを表示し、スクリプトを終了します。 | |
* スクリプトの起動に成功した場合にはプロセスIDを戻します。 | |
*/ | |
function checkDuplicate(){ | |
var env = WScript.CreateObject("WScript.Shell").Environment("Process"); |
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 HatenaMod(ka-ka_xyz) | |
// @include http://b.hatena.ne.jp/entrylist* | |
// @include http://b.hatena.ne.jp/hotentry* | |
// ==/UserScript== | |
//see http://d.hatena.ne.jp/ka-ka_xyz | |
(function (d, func) { | |
var h = d.getElementsByTagName('head')[0]; | |
var s1 = d.createElement("script"); |
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
package example; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.UUID; | |
import redis.clients.jedis.Jedis; | |
import redis.clients.jedis.JedisPool; |
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
package example; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
import com.aparapi.Kernel; | |
import com.aparapi.Range; |
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
package jfr_example; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.util.zip.GZIPInputStream; |
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/bash | |
## Inspired from https://gist.github.com/aseering/a06219e74c7f96ccea5ec65d5b2483b5 | |
## Wrap result to handling space containing path | |
## example | |
## winpath.sh "E:\Apache Software Foundation" | xargs ls -al | |
echo "$@" | sed -e 's|\\|/|g' -e 's|^\([A-Za-z]\)\:/\(.*\)|/mnt/\L\1\E/\2|' -e 's/^/"/;s/$/"/' |
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 <cppQueue.h> | |
#include <SoftwareSerial.h> | |
// Read data from MH-Z14 CO2 sensor. | |
// ref. https://www.openhacks.com/uploadsproductos/mh-z14_co2.pdf | |
// ref. https://gist.github.com/takashiski/3a1c1da6b9aac8863696d960660461f3 | |
// RX: the port recieve bytes from sensor. | |
// connect to sensor port 19 (TX) |