Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
🍖

Norio Suzuki suzuki

🔥
🍖
View GitHub Profile
@execjosh
execjosh / install-tools
Last active Jul 22, 2020
A better way to install Go tool dependencies
View install-tools
#!/bin/bash
# Assuming ./tools/tools.go, the following will give you a list of your tools:
#
# go list -f '{{ join .Imports "\n" }}' -tags tools ./tools
#
# No need for the likes of grep, awk, sed, cut, etc.
while read -r i; do
echo "## go install ${i}"
@hashrock
hashrock / diag.md
Last active Jul 29, 2020
作図系ツール・ライブラリまとめ
View diag.md

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

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など
@eligor13
eligor13 / twpicdl.sh
Created Sep 5, 2014
Twitpic whole images downloader for mac
View twpicdl.sh
#!/bin/sh
# Modified by Stan Schwertly to download locally rather than to send to Posterous.
# Github: http://github.com/Stantheman/Twitpic-Backup
# Copyright 2010 Tim "burndive" of http://burndive.blogspot.com/
# This software is licensed under the Creative Commons GNU GPL version 2.0 or later.
# License informattion: http://creativecommons.org/licenses/GPL/2.0/
# This script is a derivative of the original, obtained from here:
View gist:8016086
View landing_page_ranking_to_signup.sql
-- landing page access ranking analysis using Treasure Data
SELECT first_path, COUNT(1) AS count
FROM (
SELECT TD_SESSIONIZE(time, 3600, host) AS session_id, TD_FIRST(path, time) AS first_path
FROM (
SELECT time, v['host'] as host, v['path'] as path
FROM www_access
DISTRIBUTE BY v['host']
SORT BY v['host'], v['time']
) ss
View awesome-php.md

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。

Composer

@textarcana
textarcana / centos-install-syntax-highlighting-in-less.sh
Last active May 31, 2020
2020 update: just use bat(1) instead!!!! bat has git integration and also can show invisible characters! OLD STUFF: How to enable syntax-highlighting in less. Use `less -N` (or type -N while in less) to enable line numbers. Based on the procedure described in http://superuser.com/questions/71588
View centos-install-syntax-highlighting-in-less.sh
# Enable syntax-highlighting in less.
# Last tested on CentOS 6.3.
#
# First, add these two lines to ~/.bashrc
# export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
# export LESS=" -R "
sudo yum -y install boost boost-devel ctags
wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm
@hayajo
hayajo / changelog_en.md
Last active Jul 16, 2020
ChangeLog を支える英語
View changelog_en.md

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@marocchino
marocchino / rt.md
Created Sep 17, 2012
rubykaigi2012 timetable
View rt.md
@slywalker
slywalker / AppShell.php
Created Jul 10, 2012
CakePHP AppShell::progressBar()
View AppShell.php
<?php
class AppShell extends Shell {
public function progressBar($current, $total, $size = 50) {
$perc = intval(($current / $total) * 100);
for ($i = strlen($perc); $i <= 4; $i++) {
$perc = ' ' . $perc;
}
$total_size = $size + $i + 3;
You can’t perform that action at this time.