Skip to content

Instantly share code, notes, and snippets.

.body_class {
height: 210px;
background-color: #000;
padding: 20px;
}
#masthead .container {
width: auto;
}
.body_class #masthead {
position: relative;
@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 / theme.js
Created November 21, 2012 15:53
jQuery Scroll Setting
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) {
@coolniikou
coolniikou / jquery.jqtweet.js
Created November 21, 2012 03:26
jQuery Twitter innerfade badget
(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">';
@coolniikou
coolniikou / jquery.innerfade.js
Created November 21, 2012 03:25
jquery.innerfade + wait ( delay )
/* =========================================================
// 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=?'
@coolniikou
coolniikou / affix.js
Created November 19, 2012 14:33
affix
// fix sub nav on scroll
var $win = $(window)
, $nav = $('.subnav')
, navTop = $('.subnav').length && $('.subnav').offset().top - 40
, isFixed = 0
processScroll()
$nav.on('click',
function () {
@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