Skip to content

Instantly share code, notes, and snippets.

@coolniikou
coolniikou / markdown-cheat-sheet.jax
Created November 30, 2012 22:58 — forked from hail2u/markdown-cheat-sheet.jax
Markdown カンニングペーパー
*markdown-cheat-sheet.jax* Markdown カンニングペーパー
作者: Kyo Nagashima <kyo@hail2u.net>
バージョン: 0.04
説明: Markdown 記法のカンニングペーパーです。
1. 記法の例 |markdown-cheat-sheet-examples|
1.1 段落 |markdown-cheat-sheet-paragraph|
1.2 改行 |markdown-cheat-sheet-linebreak|
1.3 テキストの強調 |markdown-cheat-sheet-emphasis|
@coolniikou
coolniikou / markdown.md
Created November 30, 2012 22:57 — forked from azu/markdown.md
markdownで書かれたmarkdownチートシート

Code - コードの挿入

puts 'The best way to log and share programmers knowledge.'

puts 'The best way to log and share programmers knowledge.'

また、コードをインライン表示することも可能です。

@coolniikou
coolniikou / custom-meta-table.php
Created October 24, 2012 21:57 — forked from k-ishiwata/custom-meta-table.php
WordPressでカスタムフィールドの値をオリジナルのテーブル(DB)に保存する
<?php
/*
Plugin Name: Custom Meta Table
Plugin URI: http://www.webopixel.net/wordpress/637.html
Description: カスタムフィールドの値をオリジナルのテーブル(DB)に保存する
Author: k.ishiwata
Version: 0.1
Author URI: http://www.webopixel.net/
*/
class CustomMetaTable {
@coolniikou
coolniikou / movabletype.conf
Created October 24, 2012 05:13 — forked from usualoma/movabletype.conf
movable type config file for upstart
description "Movable Type"
start on runlevel [2345] or mysql
stop on runlevel [!2345]
respawn
respawn limit 2 5
env PLACK_ENV=deployment
env MT_HOME=/home/movabletype/public_html/movabletype
@coolniikou
coolniikou / movabletype.service
Created October 22, 2012 02:54 — forked from usualoma/movabletype.service
movable type config file for systemd
[Unit]
Description=Movable Type
After=syslog.target
After=network.target
After=mysqld.service
[Service]
User=movabletype
Group=movabletype
@coolniikou
coolniikou / sort_css_property.pl
Created August 28, 2012 12:35 — forked from xaicron/sort_css_property.pl
css propaery sort
#!/usr/bin/perl
# Author: Kyo Nagashima <kyo@hail2u.net>, http://hail2u.net/
# License: MIT license (http://opensource.org/licenses/mit-license.php)
# Modified: 2009-11-14T12:24:54+09:00
# Updated: xaicron (http://blog.livedoor.jp/xaicron/)
use strict;
use warnings;
@coolniikou
coolniikou / download_ustream_live.pl
Created June 29, 2011 14:12 — forked from fuba/download_ustream_live.pl
download live video from ustream using rtmpdump.
#!/usr/bin/perl
# this script is an implementation of http://textt.net/mapi/20101018201937
use strict;
use warnings;
use LWP::Simple;
my ($ustream_url, $file, $stop) = @ARGV;
@coolniikou
coolniikou / markdown-cheat-sheet.jax
Created June 25, 2011 22:35 — forked from hail2u/markdown-cheat-sheet.jax
Markdown カンニングペーパー
*markdown-cheat-sheet.jax* Markdown カンニングペーパー
作者: Kyo Nagashima <kyo@hail2u.net>
バージョン: 0.04
説明: Markdown 記法のカンニングペーパーです。
1. 記法の例 |markdown-cheat-sheet-examples|
1.1 段落 |markdown-cheat-sheet-paragraph|
1.2 改行 |markdown-cheat-sheet-linebreak|
1.3 テキストの強調 |markdown-cheat-sheet-emphasis|
#!/usr/bin/perl
# intro for MT::Component::registry()
use strict;
use warnings;
use lib qw( lib extlib ../lib ../extlib);
use utf8;
use MT;
use MT::Component;
use Test::More;
#!/usr/bin/perl -w
use strict;
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap ();
use MT::App::CMS;
use CGI::PSGI;
use Plack::Builder;
use Plack::App::URLMap;
use Plack::App::File;