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 | |
dir=$1 | |
if [ ! -d "$dir" ]; then | |
dir='.' | |
fi | |
find "$dir" -name '*[! -~]*' | while read file | |
do | |
bstr=`basename "$file" | xxd -g1` |
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
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 が発生しない |
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
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")); |