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 | |
DIFFCOMMAND=diff | |
if [ $# -lt 1 ] ; then | |
echo "usage: $0 [rev1] [rev2] filename" | |
exit 1 | |
elif [ $# -eq 1 ] ; then | |
$DIFFCOMMAND <(git show HEAD:"${@:1}" | git lfs smudge) "${@:1}" | |
elif [ $# -eq 2 ] ; then | |
$DIFFCOMMAND <(git show $1:"${@:2}" | git lfs smudge) "${@:2}" |
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
var BOT_NAME = 'translator_bot' | |
var SLACK_OUTGOING_TOKEN = PropertiesService.getScriptProperties().getProperty("slack_outgoing_token"); | |
var SLACK_API_TOKEN = PropertiesService.getScriptProperties().getProperty("slack_api_token"); | |
var SlackApp = SlackApp.create(SLACK_API_TOKEN) | |
var MS_API_TOKEN = PropertiesService.getScriptProperties().getProperty("ms_api_token"); | |
var PRIMARY_LANGUAGE = "ko" | |
var SECONDARY_LANGUAGE = "ja" |
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
<style type="text/css"> | |
div { | |
width: 100px; | |
height: 100px; | |
background-color: red; | |
border-radius: 1000000000px; | |
} | |
</style> | |
<div/> |
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
mecab -d /usr/local/lib/mecab/dic/mecab-ipadic-neologd text.txt \ | |
| grep -v '助詞,' \ | |
| grep -v '助動詞,' \ | |
| grep -v EOS \ | |
| sort \ | |
| uniq -c \ | |
| sort -k1 -n |
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
/* | |
1~100までの整数においてFizzBuzzプログラムを実装してください。 | |
好きな言語で、可能な限り可読性が高く、可能な限り簡潔なコードで記述してください。 | |
*/ | |
//Java 8 | |
import java.util.stream.*; | |
public class FB { | |
public static void main(String[] args) { | |
IntStream.rangeClosed(1, 100) |
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
require "nkf" | |
require 'google/apis/gmail_v1' | |
require 'googleauth' | |
require 'googleauth/stores/file_token_store' | |
require 'rmail' | |
require 'fileutils' | |
class GmailMailer |
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 | |
# Usage: | |
# ./chrome_launcher.sh [user_data_dir] | |
# user_data_dirにあるユーザーデータディレクトリを使用しクロームを起動する。 | |
# user_data_dirが指定されなかった場合は、DEBUGという名前のユーザーデータディレクトリを使用する | |
USER_DATA_DIR=${1-DEBUG} | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir="$HOME/Library/Application Support/Google/Chrome/$USER_DATA_DIR/" |
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
//LICENSE: WTFPL (http://www.wtfpl.net/about/) | |
function COUNTBYCOLOR(range, colorref) { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var color = sheet.getRange(colorref) | |
.getBackground(); | |
var range = sheet.getRange(range); | |
var rangeVal = range.getValues(); | |
var count = 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 | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
playerfile="/tmp/player.swf" | |
keyfile="/tmp/authkey.png" |
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
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class BatchBuild : MonoBehaviour { | |
static private string ApplicationName = "Hoge-application"; | |
//for Android |