This file contains hidden or 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
2.0.0-p195 :001 > require 'dalli' | |
=> true | |
2.0.0-p195 :002 > | |
2.0.0-p195 :003 > memcache ||= Dalli::Client.new | |
=> #<Dalli::Client:0x007fb753ccf210 @servers=["127.0.0.1:11211"], @options={}, @ring=nil> | |
2.0.0-p195 :004 > a = :dalli_store, '127.0.0.1', | |
2.0.0-p195 :005 > {:namespace => lambda { | |
2.0.0-p195 :006 > generation = $memcache.incr 'mv|' + Rails.env, 1, 0, 1 | |
2.0.0-p195 :007?> "#{generation.to_s}.#{Time.now.strftime('%j')}" | |
2.0.0-p195 :008?> }} |
This file contains hidden or 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 'dalli' | |
memcache ||= Dalli::Client.new | |
a = :dalli_store, '127.0.0.1', | |
{:namespace => lambda { | |
generation = $memcache.incr 'mv|' + Rails.env, 1, 0, 1 | |
"#{generation.to_s}.#{Time.now.strftime('%j')}" | |
}} | |
memcache.incr 'test',0,0,0 |
This file contains hidden or 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
# uses gem github_api | |
# http://peter-murach.github.com/github (thanks!) | |
# | |
require 'github_api' | |
require 'csv' | |
class OmniGitHub | |
# converts OmniFocus export to issues with labels in GutHub repository |
This file contains hidden or 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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<title>Simple Radar Chart</title> | |
<link rel="stylesheet" href="style.css"/> | |
<script src="http://mbostock.github.com/d3/d3.js?2.5.0"></script> | |
<script src="radar.js"></script> | |
</head><body><h1>Simple Radar Chart</h1> | |
<div id="viz"> | |
</div> |
NewerOlder