puts 'The best way to log and share programmers knowledge.'
puts 'The best way to log and share programmers knowledge.'
また、コードをインライン表示することも可能です。
.body_class { | |
height: 210px; | |
background-color: #000; | |
padding: 20px; | |
} | |
#masthead .container { | |
width: auto; | |
} | |
.body_class #masthead { | |
position: relative; |
*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| |
jQuery Scroll Setting | |
$(function () { | |
$(window).scroll(function(){ | |
if ($(this).scrollTop() > 100) { | |
$(".navbar.navbar-fixed-top").addClass("scroll"); | |
} else { | |
$(".navbar.navbar-fixed-top").removeClass("scroll"); | |
} | |
if ($(this).scrollTop() > 300) { |
(function($){ | |
$.fn.jqTweet = function(options) { | |
options = $.extend( {}, $.fn.jqTweet.options, options ); | |
return this.each(function() { | |
var elem = $(this) | |
, o = options | |
, api_uri = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=' | |
, json_uri = api_uri + o.username + '&count=' + o.count + '&callback=?' | |
, jtweet = '<ul id="tweet-list">'; |
/* ========================================================= | |
// jquery.innerfade.js | |
// Datum: 2008-02-14 | |
// Firma: Medienfreunde Hofmann & Baldes GbR | |
// Author: Torsten Baldes | |
// Mail: t.baldes@medienfreunde.com | |
// Web: http://medienfreunde.com |
<script type="text/javascript" src="./jquery.innerfade.js"></script> | |
(function($){ | |
$.fn.jqTweet = function(options) { | |
options = $.extend( {}, $.fn.jqTweet.options, options ); | |
return this.eatch(function() { | |
var elem = $(this) | |
, o = options | |
, api_uri = 'http://api.twitter.com/1/statuses/user_timeline.json?screen_name=' | |
, json_uri = api_uri + o.username + '&count=' + o.count + '&callback=?' |
// fix sub nav on scroll | |
var $win = $(window) | |
, $nav = $('.subnav') | |
, navTop = $('.subnav').length && $('.subnav').offset().top - 40 | |
, isFixed = 0 | |
processScroll() | |
$nav.on('click', | |
function () { |
<?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 { |
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 |