This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "fileutils" | |
require "pathname" | |
require "date" | |
require "rubygems" | |
require "zipruby" | |
BACKUP_FOLDER = Pathname.new("/path/to/backup") | |
timestamp = DateTime.now.strftime("%Y%m%d%H%M%S") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require("sys"); | |
var express = require("express"); | |
// see http://github.com/redsquirrel/simple_pusher | |
var simple_pusher = require(__dirname + "/lib/simple_pusher"); | |
var GraphData = require(__dirname + "/qa_data").GraphData; | |
var graphData = new GraphData(["yes", "little", "no"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Windows上でExcelを操作するためのシンプルなモジュールです。 | |
* ファイルのオープン・クローズを隠蔽しています。 | |
*/ | |
var excel = (function() { | |
var exports = {}; | |
// Excel操作 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compressed by Closure Compiler (http://closure-compiler.appspot.com/) | |
javascript:(function(c,d,b,k,l,m){function g(){var a=d("textarea");a.rows=k;a.cols=l;return a}d=c[d];b=c.body[b];var h=g();b(h);var n={"\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","'":"\\'","'":"\\'"},o=/(\f|\n|\r|\t|\'|')/g;c=function(a){a.innerText=m;a.attachEvent("onclick",function(){var e;try{var f=h.value;f=f.replace(/\\/g,"\\\\").replace(o,function(p){return n[p]});e=(new Function("return eval('"+f+"')"))()}catch(i){e=i.name+": "+i.message}j.value=e});return a}(d("button"));b(c);var j=g();b(j)})(document, "createElement","appendChild",10,60,"exec"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// a ? b : c | |
if (typeof a !== "undefined" && a !== null) { | |
a; | |
} else { | |
({b: c}); | |
} | |
// if a then b else c | |
if (a) { | |
b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem "rack", "~> 1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "open3" | |
watch('(.*)\.coffee') do |md| | |
stdin, stdout, stderr = Open3.popen3("coffee -o dist/js/ -c #{md[0]}") | |
error_message = '' | |
unless stderr.eof? | |
error_message << stderr.to_a.join | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "open3" | |
watch('(.*)\.haml') do |md| | |
stdin, stdout, stderr = Open3.popen3("haml #{md[0]}") | |
error_message = '' | |
unless stderr.eof? | |
error_message << stderr.to_a.join | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'gollum/frontend/app' | |
Precious::App.set(:gollum_path, File.dirname(__FILE__)) | |
Precious::App.set(:wiki_options, {}) | |
run Precious::App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
width: 100%; | |
height: 100%; | |
background-color: #666; | |
} | |
canvas { |
OlderNewer