rendr-examplesを眺めてみたメモ。
基本的な構成。npm install
& grunt server
でhttp://localhost:3030
で起動する(以下のexampleも同様)。
00
ではindex.js
に直接書かれていたdataAdapterConfig
を/config
ディレクトリ内のファイルに分離。
NODE_ENV
の値で本番/開発環境の設定ファイル切り替えを行う
require "bundler/gem_tasks" | |
require "bundler/gem_helper" | |
require 'rspec/core/rake_task' | |
require 'octokit' | |
Octokit.configure do |c| | |
c.login = `git config --get github.user`.strip | |
c.access_token = `git config --get github.token`.strip | |
end |
require 'logger' | |
class RakeExcecuter < Logger::Application | |
def initialize(tasklist = []) | |
super | |
@tasklist = tasklist | |
end | |
private | |
def run |
#!/bin/sh | |
rrdtool create nighttime.rrd -b $(date -d "1 years ago" +%s) DS:night:GAUGE:600:0:U RRA:MAX:0.5:1:576 RRA:MAX:0.5:6:432 RRA:MAX:0.5:24:540 RRA:MAX:0.5:288:450 | |
perl -MRRDs -e ' | |
$e=time; | |
$s=$e-3600*24*365; | |
while($s<=$e) { | |
$d=($s + 9 * 3600)%(24 * 3600); | |
if($d >= (19 * 3600) || $d <= (6 * 3600)) { |
rendr-examplesを眺めてみたメモ。
基本的な構成。npm install
& grunt server
でhttp://localhost:3030
で起動する(以下のexampleも同様)。
00
ではindex.js
に直接書かれていたdataAdapterConfig
を/config
ディレクトリ内のファイルに分離。
NODE_ENV
の値で本番/開発環境の設定ファイル切り替えを行う
module MultiParameterAttributes | |
def filter_time(attributes, name) | |
attrs = attributes.collect do |key, value| | |
if key =~ /^#{Regexp.escape(name.to_s)}\((\d+)(\w)\)$/ | |
[$1.to_i, value.send("to_#$2")] | |
end | |
end.compact.sort_by(&:first).map(&:last) | |
Time.zone.local(*attrs) unless attrs.empty? | |
end |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>untitled</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Alexandre Testu"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript" charset="utf-8"></script> |
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#!nginx -p . -c cocproxy.nginx.conf | |
error_log /dev/stderr debug; | |
daemon off; | |
events { | |
worker_connections 48; | |
} | |
http { |
.../test/fixtures/test/scoped_translation.erb | 1 + | |
actionpack/test/fixtures/test/translation.erb | 1 + | |
.../test/connections/jdbc_jdbcderby/connection.rb | 18 ++++++++ | |
.../test/connections/jdbc_jdbch2/connection.rb | 18 ++++++++ | |
.../test/connections/jdbc_jdbchsqldb/connection.rb | 18 ++++++++ | |
.../test/connections/jdbc_jdbcmysql/connection.rb | 26 +++++++++++ | |
.../connections/jdbc_jdbcpostgresql/connection.rb | 26 +++++++++++ | |
.../connections/jdbc_jdbcsqlite3/connection.rb | 25 ++++++++++ | |
.../test/connections/native_db2/connection.rb | 25 ++++++++++ | |
.../test/connections/native_firebird/connection.rb | 26 +++++++++++ |