Quick'n'dirty Jekyll plugin for sorted cycle.
Copy sorted_for.rb
to _plugins/
directory of your Jekyll site.
require 'rubygems' | |
require 'net/ldap' | |
class SimpleEdAuthenticator | |
HOST, PORT, BASE_DN = 'authn.directory.vt.edu', 636, 'ou=People,dc=vt,dc=edu' | |
def initialize(options = {}) | |
@authenticated = false | |
@attributes = {} | |
Saddle point found at: [1, 3] | |
No saddle points found | |
Saddle point found at: [1, 3] |
class LuhnChecksum | |
attr_accessor :number | |
def initialize(number = "") | |
@number = number | |
end | |
def valid? | |
calculate_checksum % 10 == 0 | |
end |
<html> | |
<head> | |
<title>D3</title> | |
<link type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script> | |
<script type="text/javascript" charset="utf-8" src="d3.v2.js"></script> | |
<script type="text/javascript" charset="utf-8" src="d3.layout.min.js"></script> | |
<html> | |
<head> | |
<link rel=stylesheet href="/style/screen.css" media="screen" type="text/css"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<title><%= @path %></title> | |
</head> | |
<body> | |
Implement a Ruby program that outputs the validity of a number by applying the Luhn Checksum.
http://en.wikipedia.org/wiki/Luhn_algorithm
Please treat this as you would any other project or task you'd encounter during your daily work. This will show us how currently code, and not how you coded 6, 12 or 18 months ago. Your code should also be suitably tested.
Input:
run rspec (without type zeus rspec) (https://github.com/thoughtbot/dotfiles)
rspec() {
I hereby claim:
To claim this, I am signing this object:
module Sprockets | |
class Manifest | |
def logger_with_debug | |
logger_without_debug.tap do |logger| | |
logger.level = Logger::DEBUG | |
end | |
end | |
alias_method_chain :logger, :debug | |
end | |
end |