Skip to content

Instantly share code, notes, and snippets.

@nefo-mi
nefo-mi / weather.rb
Created August 15, 2012 22:59
天気予報を取得するスクリプト ref: http://qiita.com/items/04d2c773d4ee429cc295
#!/usr/bin/env ruby
# encoding : utf-8
require 'open-uri'
require 'rexml/document'
CACHE = "/tmp/ustatus.rb.cache"
if File.exist?(CACHE) && (Time.now - File::Stat.new(CACHE).mtime) <= 2000
print File.read(CACHE)
@hissy
hissy / wp-query-ref.php
Last active January 4, 2025 02:09 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
* Japanese translated by hissy
*
* CODEX: http://wpdocs.sourceforge.jp/%E9%96%A2%E6%95%B0%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9/WP_Query#.E3.83.91.E3.83.A9.E3.83.A1.E3.83.BC.E3.82.BF
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
* Original: https://gist.github.com/luetkemj/2023628/9e911982440141a13cb1dd8ba1ad6b35cd7bbdd7
*/