Skip to content

Instantly share code, notes, and snippets.

View katsusuke's full-sized avatar

Katsusuke Shimizu katsusuke

View GitHub Profile
@dot
dot / nfd_d.sh
Last active October 2, 2020 06:25
detect NDF file
#!/bin/sh
dir=$1
if [ ! -d "$dir" ]; then
dir='.'
fi
find "$dir" -name '*[! -~]*' | while read file
do
bstr=`basename "$file" | xxd -g1`
@hisasann
hisasann / electron-fullscreen-main.js
Created February 3, 2016 10:06
Windows でフルスクリーンする方法
app.on('ready', function() {
var Screen = require('screen');
var size = Screen.getPrimaryDisplay().size; // ディスプレイのサイズを取得する
// Create the browser window.
mainWindow = new BrowserWindow({
left: 0,
top: 0,
// この方法がいまのところ確実、これだと padding が発生しない
@dot
dot / gist:8347592
Last active October 7, 2016 10:06
github release note geneartor
javascript:(function() {
alert(Array.from(document.querySelectorAll('.commit-message .issue-link')).map(
function(i) {
var _i = i.closest('.commit-message');
if (_i.textContent.trim().match(/^Merge pull request/)) {
return {num: i.textContent, title: _i.querySelector('.commit-desc').textContent};
}
}).filter(data => data !== undefined).sort(function(a, b) { return a.num >= b.num ? 1: -1}).map(function(i) {
return "* " + i.num + " " + i.title.replace(/\[\#(\d+)\]/g, "([$1](https://www.pivotaltracker.com/story/show/$1))");
}).join("\n"));