A1-MOD(A1*10,2)/10
# Makefile for a go project | |
# | |
# Author: Jon Eisen | |
# site: joneisen.me | |
# | |
# Targets: | |
# all: Builds the code | |
# build: Builds the code | |
# fmt: Formats the source files | |
# clean: cleans the code |
// These handlers should basically perform like a simple form submission. | |
// Once complete, notify the client using the redirects. | |
// As always, see http://tools.ietf.org/html/draft-ietf-oauth-v2-29 for reference. | |
// AuthHandler performs authentication with the resource owner | |
// It is important they follow OAuth 2.0 specification. For ease of use, | |
// A reference to the Store is passed in the OAuthRequest. | |
type AuthHandler interface { | |
// Authorize a client using the Authorization Code Grant Flow |
The Free Agent Acquisiion Budget (FAAB) system has more nuance and "chess-like" qualities that we love about our auction-style draft than the first come first serve basis. Teams are able to pay the value of a player, so for instance Desmond Jennings could command up to $40 when he comes to the majors, whereas Reed Johnson would only cost $1. This will allow teams to scheme more about their purchases and in general, provide more intrigue to the season.
Teams will still have an opportunity to replace lost players after they have exhausted their FAAB, but at a reduced leverage point (i.e. after the auction closes). Players to be purchased still follow any othe rules in our Baseball Rules document, this only affects the acquisition system. By the way, FAAB is pronounced as in faabulous!
''' | |
Simultaneous Perturbation Stochastic Approximation | |
Author: Jon Eisen | |
License: MIT | |
This code defines runs SPSA using iterators. | |
A quick intro to iterators: | |
Iterators are like arrays except that we don't store the whole array, we just | |
store how to get to the next element. In this way, we can create infinite | |
iterators. In python, iterators can act very similar to arrays. |
require 'capistrano/recipes/deploy/strategy/base' | |
require 'fileutils' | |
require 'tempfile' # Dir.tmpdir | |
# Copy with Rsync capability. | |
class CopyRsync < Capistrano::Deploy::Strategy::Base | |
# Obtains a copy of the source code locally (via the #command method), | |
# compresses it to a single file, copies that file to all target | |
# servers, and uncompresses it on each of them into the deployment |
You can use _diagonal-line.scss
to create arbitrary diagonal lines using CSS3. This implementation is compatible with all major browsers and IE9 or greater. An example usage of this partial is given in lines.scss
. The compiled css file was included for display purposes.
To compile the sass file, you will need to use the additional functions provided in math.rb
:
sass --watch path/to/sass:path/to/css -r ./math.rb
package main | |
import ( | |
"fmt" | |
"encoding/xml" | |
"github.com/clbanning/x2j" | |
"github.com/jmoiron/jsonq" | |
) | |
type Example struct { |
by Jon Eisen
Indexes are awesome because:
- take a linear search and make it logarithmic (i.e. search through 8 items in 3 steps instead of 8).
- eliminate in-memory sorts.
- reduce hard drive lookups and page faulting.