Skip to content

Instantly share code, notes, and snippets.

@akkijp
akkijp / diag.md
Created June 10, 2023 02:06 — forked from hashrock/diag.md
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@akkijp
akkijp / INSTALL
Created October 9, 2017 21:40 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation
###### development tools
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk
### Python packages
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib
### pip packages
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython
@akkijp
akkijp / capybara cheat sheet
Created October 4, 2017 23:30 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
suits = %w| ⚫️ ⚪️ 🔴 🔵|.reverse
suits = %w|♦️ ️♣ ️♥️ ♠️|.reverse
nums = ["A"] + (2..9).to_a + %w|* J Q K|
cards = suits.map {|s| nums.collect {|i| "%s %s " % [i, s]}.reverse}.flatten
# cards = (1..52).map {|i| "%02d " % i}
puts cards.length
puts cards.join("|")
@akkijp
akkijp / delete-heroku-apps.sh
Created April 10, 2016 11:30 — forked from naaman/delete-heroku-apps.sh
Delete all heroku apps from bash terminal -- no script file required
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done
@akkijp
akkijp / gist:07fa9793441adf4ba71a
Created December 15, 2015 08:05 — forked from hokaccha/gist:58594
wordbreak.js for jQuery
$(function(){
var $targetElement = '.wordBreak';
if($.browser.msie) {
$($targetElement).css('word-break', 'break-all');
} else {
$($targetElement).each(function(){
if(navigator.userAgent.indexOf('Firefox/2') != -1) {
$(this).html($(this).text().split('').join('<wbr />'));
} else {
$(this).html($(this).text().split('').join(String.fromCharCode(8203)));
@akkijp
akkijp / HowToGist.md
Created December 2, 2015 20:34 — forked from t-nissie/HowToGist.md
Gistの使い方のメモ

Gistの使い方のメモ

Gistを使い始めて気がついた点をメモした。 Gistはこのようなメモや短いコードをバージョン管理しながら公開するのに便利。

特にこのメモでは、画像を同一ディレクトリに置いて、 それGFMファイル内に挿入する方法を解説。

このメモにはgitコマンドの使い方の解説はない。 このメモは随時更新される予定。

@akkijp
akkijp / gfm2html.md
Created December 2, 2015 20:34 — forked from t-nissie/gfm2html.md
手もとでGFMファイルをHTMLファイルに変換する簡単なRubyスクリプトgfm2html.rb

gfm2html.rb

手もとでGFM (GitHub Flavored Markdown) ファイルをHTMLファイルに変換する簡単なRubyスクリプトgfm2html.rbを下に置きました。 github-markdownを用いています。 google-code-prettifyを使えばsyntax highlightができることが特徴です。 簡単なCSSファイルを用意して使います。例としてstyle.cssが下に置いてあります。

この文章は Gist https://gist.github.com/t-nissie/c415b7da3a694e82d6b5 に置いてあります。 git clone git@gist.github.com:c415b7da3a694e82d6b5.git gfm2htmlでクローンできます。

@akkijp
akkijp / TOPIX100_list.tsv
Created October 20, 2015 02:23 — forked from YoshihitoAso/TOPIX100_list.tsv
TOPIX100の銘柄リスト(TSV)
stock_code name
1605 国際石油開発帝石
1878 大東建託
1925 大和ハウス工業
1928 積水ハウス
1963 日揮
2502 アサヒグループホールディングス
2503 キリンホールディングス
2802 味の素
2914 日本たばこ産業