Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-
to go backward. - input key
->
to go forward.
/** | |
* NAVITIME (https://www.navitime.co.jp) の路線バス時刻表をテキスト形式にフォーマットして console.log に出力するスニペットです。 | |
* このスクリプトは Pebble アプリの Time Table (http://www.sw-sandbox.info/) 用にフォーマットする目的で作られました。 | |
*/ | |
var time = ''; | |
$('#d_1_0>.dl_0').each(function(i, dl){ | |
var hour = $(dl).children('dt').text(); | |
var mins = []; | |
$(dl).find('div:not([class])').each(function(j, div){ |
<!-- Refs: http://wordpress.org/support/topic/get-title-alt-or-caption-from-media-library-and-insert-into-theme --> | |
<?php | |
$args = array( 'post_type' => 'attachment', 'orderby' => 'menu_order', 'order' => 'ASC', 'post_mime_type' => 'image' ,'post_status' => null, 'numberposts' => null, 'post_parent' => $post->ID ); | |
$attachments = get_posts($args); | |
if ($attachments) { | |
foreach ( $attachments as $attachment ) { | |
$alt = get_post_meta($attachment->ID, '_wp_attachment_image_alt', true); | |
$image_title = $attachment->post_title; | |
$caption = $attachment->post_excerpt; |
// Settings in here override those in "Default/Preferences.sublime-settings", and | |
// are overridden in turn by file type specific settings. | |
{ | |
// ================================================== | |
// 基本設定 | |
// ================================================== | |
// フォント | |
"font_face": "Monaco", | |
// フォントサイズ | |
"font_size": 13, |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.Locale; | |
import java.util.TimeZone; | |
import org.apache.commons.lang.time.DateFormatUtils; | |
import org.apache.commons.lang.time.DateUtils; | |
/** |
fizzbuzz = (x) -> console.log (i % 3 is 0 and i % 5 is 0 and "fizzbuzz" or i % 3 is 0 and "fizz" or i % 5 is 0 and "buzz" or i) for i in [1..x] |
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
gem 'omniauth' | |
gem 'haml-rails' |