Skip to content

Instantly share code, notes, and snippets.

View ms76's full-sized avatar

Masashi Sekine ms76

View GitHub Profile
@ms76
ms76 / git-file-order-by-oldest.coffee
Created October 14, 2014 10:25
Gitに登録されたファイルを古い順に抽出するコマンド
spawn = require("child_process").spawn
async = require "async"
targetPath = process.argv?[2] or './'
list = ''
files = []
listStream = spawn 'git', ['ls-files', targetPath]
listStream.stdout.setEncoding 'utf8'
listStream.stdout.on 'data', (chunk)->
list += chunk if chunk

制度

  • 有休…
  • 病休…
  • 育休…
  • 年収(月給、賞与など)…
  • 残業代…
  • 早朝/深夜手当…
  • 休出手当…
  • 住宅補助…
@ms76
ms76 / .mongorc.js
Created March 28, 2014 04:33
更新系コマンドを禁止した.mongorc.js
var ERROR_MESSAGE = 'Permission Error.';
var SHOW_ERROR = function() {
print(ERROR_MESSAGE);
};
var NG_DB_COMMANDS = [
'addUser',
'auth',
'cloneDatabase',
'copyDatabase',
'createCollection',
@ms76
ms76 / gist:5551904
Last active December 17, 2015 04:39
Get like count of URL via Facebook Javascript API
var url = window.location.href;
FB.api({
method: 'fql.query',
query: 'select url, share_count, like_count, comment_count, total_count, click_count from link_stat where url = "' + url + '"'
}, function(data) {
console.log(data);
});