Skip to content

Instantly share code, notes, and snippets.

View DQNEO's full-sized avatar

Daisuke Kashiwagi DQNEO

View GitHub Profile
@DQNEO
DQNEO / gfm2html.md
Last active August 29, 2015 14:20 — forked from t-nissie/gfm2html.md

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でクローンできます。

Docker 虎の巻

何故Dockerを使うべきか

Why Should I Care (For Developers)

"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."

#!/usr/bin/env ruby
require 'json'
data = {
:net => {
:hostname => "dqneo.example.com"
},
:users => [
{ :name => 'dqneo', :password => 'himitsu' },
],
:tz => "Asia/Tokyo",
@DQNEO
DQNEO / javascript_resources.md
Created March 21, 2014 05:51 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@DQNEO
DQNEO / 0_reuse_code.js
Created March 20, 2014 04:54
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
@DQNEO
DQNEO / tenkaichi-git.md
Last active December 19, 2015 02:09 — forked from teppeis/tenkaichi-git.md
ぎっとぎとにしてやんよ

ぎっとぎとにしてやんよ

天下一gitconfig大会(サイボウズ社内git勉強会@2012/11/20)の@teppeisのforkです。

.gitconfig

[user]
    name = teppeis
@DQNEO
DQNEO / github-flow.ja.md
Created October 8, 2012 10:31 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)

GitHub Flow

Scott Chacon on the Interwebs 31 Aug 2011

  • masterブランチのものは何であれデプロイ可能である
  • 新しい何かに取り組む際は、説明的な名前のブランチをmasterから作成する(例: new-oauth2-scopes
  • 作成したブランチにローカルでコミットし、サーバー上の同じ名前のブランチにも定期的に作業内容をpushする
  • フィードバックや助言が欲しい時、ブランチをマージしてもよいと思ったときは、プルリクエストを作成する
  • 他の誰かがレビューをして機能にOKを出してくれたら、あなたはコードをmasterへマージすることができる
  • マージをしてmasterへpushしたら、直ちにデプロイをする
@DQNEO
DQNEO / github-flow.ja.md
Created September 27, 2012 02:27 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップでgit-flowについてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

@DQNEO
DQNEO / pudding.php
Created July 7, 2011 20:02 — forked from sotarok/.gitignore
rapid and stupid search engine script for PHP source code.
#!/usr/bin/php
<?php
/**
* Hyper Pudding
* - yet another rapid and stupid search engine for PHP source code. -
*
* @author DQNEO (forked from sotarok)
* @see http://www.slideshare.net/sotarok/php-source-code-search-with-php
* @versoin 0.0.1
* @license The MIT License