Skip to content

Instantly share code, notes, and snippets.

View tsuyoshicho's full-sized avatar

Tsuyoshi CHO tsuyoshicho

View GitHub Profile
@tsuyoshicho
tsuyoshicho / file1.js
Last active May 28, 2019 06:26 — forked from khsk/file1.js
はてなのシロクマを屑籠に放り込むユーザースクリプト ref: http://qiita.com/khsk/items/0cb47046d1721099c729
B.RegistReminder = {
count: function () {
if (B.user) {
B.cookie.clear('vcount');
} else {
var vcount = B.cookie.get('vcount');
vcount = vcount ? ++vcount : 1;
B.cookie.set('vcount', vcount , '+10y');
if (vcount % 40 == 0) {
@tsuyoshicho
tsuyoshicho / .clang-format.sample.yaml
Created March 29, 2018 08:13 — forked from yasuharu519/.clang-format.sample.yaml
clang-format の設定サンプル
---
BasedOnStyle: 'Google'
AccessModifierOffset: -2
AlignEscapedNewlinesLeft: true
AlignConsecutiveAssignments: false
AlignEscapedNewlinesLeft: true
AlignTrailingComments: true,
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: 'Inline'
@tsuyoshicho
tsuyoshicho / github.css
Last active May 20, 2018 04:42 — forked from griffin-stewie/github.css
Pandoc で github 風 CSS を使った standalone な html を生成するための CSS(要 pandoc 1.12.3) http://griffin-stewie.hatenablog.com/entry/2014/03/28/125029
/* based on https://qiita.com/griffin_stewie/items/95026360fdfca1bd8e33 */
/* https://gist.github.com/griffin-stewie/9755783 */
/* http://griffin-stewie.hatenablog.com/entry/2014/03/28/125029 */
/* https://gist.github.com/andyferra/2554919 */
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
@tsuyoshicho
tsuyoshicho / sakura_keyword_csharp.kwd
Last active January 10, 2019 01:07 — forked from pinzolo/gist:2970346
https://gist.github.com/pinzolo/2970346 からfork。ファイル名をまず設定
// C# キーワード定義ファイル
// CASE=True
#endif
#endregion
#if
#pragma
#region
abstract
as
#ビルド
docker build -t "sshd/centos" .
#コンテナを起動
docker run -i -t centos /bin/bash
#コンテナに名前を付けて起動
docker run -i -t --name cent01 centos /bin/bash
#コンテナをバックグランドで起動
@tsuyoshicho
tsuyoshicho / 0_reuse_code.js
Created March 23, 2014 07:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console