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 | |
for file in `find . -name "*.txt"`; do | |
echo $file | |
begin=`grep -hn STACK_TRACE $file | cut -d ':' -f 1` | |
#echo $begin | |
blanks=`grep -hn -e "^$" $file` | |
for blank in $blanks; do | |
num=`echo $blank | cut -d ':' -f 1` | |
if [ $num -gt $begin ]; then | |
end=$num |
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
<?php | |
$url = "http://api.justyo.co/yo/"; | |
$token = <API_TOKEN>; | |
$data = array( | |
'api_token'=> $token, | |
'username'=>$_GET["username"], | |
); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); |
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
private ListView mListView; | |
private ArrayAdapter<twitter4j.Status> mAdapter; | |
private twitter4j.Status mFirstVisibleStatus; | |
private int mFirstVisibleOffset = -1; | |
protected void savePosition() { | |
if (mAdapter.isEmpty()) return; | |
mFirstVisibleStatus = mAdapter.getItem(mListView.getFirstVisiblePosition()); | |
mFirstVisibleOffset = mListView.getChildAt(0).getTop(); | |
} |
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
navigation/refresh | |
content/add | |
action/delete | |
action/get_app | |
image/rotate_left | |
image/rotate_right | |
content/reply | |
content/reply_all | |
av/repeat | |
toggle/star |
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
CC=g++ | |
CFLAGS=-Wall | |
.SUFFIXES = .cpp | |
objs:=$(wildcard *.cpp) | |
targets:=$(objs:.cpp=) | |
.PHONY:all | |
all: $(targets) | |
.cpp: |
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 observer = new MutationObserver((mutations) => { | |
mutations.forEach((m) => { | |
m.addedNodes.forEach((node) => { | |
if(node.className != "status") return; | |
var nicoruButton = node.querySelector("[aria-label='ニコる']"); | |
if(nicoruButton.children[0].className.includes("inactive")){ | |
// nicoruButton.click(); | |
} | |
}); | |
}) |
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 shit = false; | |
var emoji = ':nicoru:'; | |
var ta = document.querySelector("textarea"); | |
document.onkeydown = function(e){ | |
shit = e.shiftKey; | |
} | |
document.onkeyup = function(e){ | |
if(e.keyCode == 16 && shit){ |
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 ids = new Set(); | |
var observer = new MutationObserver((ms) => { | |
ms.forEach((m) => { | |
m.addedNodes.forEach((n) => { | |
if(n.className != "status") return; | |
var id = n.querySelector('.status__relative-time').href.split('/').pop(); | |
var id_int = parseInt(id); | |
if(ids.has(id_int)){ | |
return; | |
} |
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
森を見る力: インターネット以後の社会を生きる | 橘川 幸夫 |本 | 通販 | Amazon - https://www.amazon.co.jp/%E6%A3%AE%E3%82%92%E8%A6%8B%E3%82%8B%E5%8A%9B-%E3%82%A4%E3%83%B3%E3%82%BF%E3%83%BC%E3%83%8D%E3%83%83%E3%83%88%E4%BB%A5%E5%BE%8C%E3%81%AE%E7%A4%BE%E4%BC%9A%E3%82%92%E7%94%9F%E3%81%8D%E3%82%8B-%E6%A9%98%E5%B7%9D-%E5%B9%B8%E5%A4%AB/dp/4794968388/ref=sr_1_1?ie=UTF8&qid=1497071488&sr=8-1&keywords=%E6%A3%AE%E3%82%92%E8%A6%8B%E3%82%8B%E5%8A%9B | |
ParallelSSH/parallel-ssh: Asynchronous parallel SSH client library - https://github.com/ParallelSSH/parallel-ssh | |
Ansible is Simple IT Automation - https://www.ansible.com/ | |
A remote server automation and deployment tool written in Ruby. - http://capistranorb.com/ | |
Zabbixオフィシャル日本語サイト :: エンタープライズクラスの分散監視オープンソースソリューション - http://www.zabbix.com/jp/ | |
Mackerel(マカレル): 新世代のサーバ管理・監視ツール - https://mackerel.io/ja/ | |
Action Cable の概要 | Rails ガイド - https://railsguides.jp/action_cable_overview.html | |
websocket - https://www.npmjs.com/package/websocket |
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 QUERY = '.status img[alt*="nicoru"]' | |
var ROLL_PER_SEC = 1.75 | |
function nicoRolling(nicoru, rps) | |
{ | |
var deg = getRotation(nicoru) | |
var lastUpdated = Date.now() | |
function start(){ | |
setTimeout(rolling, 33) | |
} |
OlderNewer