- Stop passing so many arguments to the TransactionEntry directive:
accounts
andfiscalYears
, at least, can be derived from root scope
- Global months
- Don't use expand and collapse methods
- Nodes have both isAccount and resourceType
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
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails", github: "rails/rails", branch: "master" |
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
(function() { | |
angular | |
.module("ccpModule", ["ngRoute", "ngAnimate", "ngResource"]) | |
.config(function($routeProvider) { | |
$routeProvider | |
.when("/", { | |
templateUrl: "index.html", | |
controller: "MainController" | |
}) | |
.when("/dialPad", { |
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
(function() { | |
angular | |
.module("ccpModule", ["ngRoute", "ngAnimate", "ngResource"]) | |
.config(function($routeProvider) { | |
$routeProvider | |
.when("/", { | |
templateUrl: "index.html", | |
controller: "MainController" | |
}) | |
.when("/dialPad", { |
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
if %w{solo app_master}.member? config.current_role | |
app = config.current_path[/(?<=\/data\/)([^\/]+)(?=\/)/] | |
env = ENV["RAILS_ENV"] | |
sha = File.read("#{config.current_path}/REVISION").chomp | |
require 'net/http' | |
require 'uri' | |
uri = URI("http://status.cphepdev.com/projects/#{app}/deploy/#{env}") | |
configuration = config.configuration |
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
Airbrake.configure do |config| | |
# ... | |
config.user_attributes = %w{id email} # the default is just 'id' | |
config.async = true # requires the gem 'sucker_punch' and 'airbrake ~> 3.1.15' | |
end | |
# Inform Errbit of the version of the codebase checked out | |
GIT_COMMIT = ENV.fetch('COMMIT_HASH', `git log -n1 --format='%H'`.chomp).freeze |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# https://gist.github.com/boblail/5587579 | |
require 'benchmark' | |
require 'nokogiri' | |
require 'progressbar' | |
require 'tempfile' | |
class SqlRocket < Nokogiri::XML::SAX::Document |
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 'formula' | |
class Pdftk < Formula | |
url 'http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip' | |
homepage 'http://www.pdflabs.com/' | |
md5 '9eb50fffcd621a627d387750c60982b4' | |
# depends_on 'gcc' # with "--enable-java" option , required "Homebrew-alt" . | |
# via : https://github.com/adamv/homebrew-alt/ | |
def install |
- The A/B Test: Inside the Technology That’s Changing the Rules of Business (Wired, April 2012)
- Stop Redesigning, Start Tuning your Website (Smashing Magazine, May 2012)
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
public static DateTime FindEaster( int year ) { | |
int month, day, century, n, m, i, j, k, z, a, l; | |
century = year / 100; | |
n = year % 19; | |
m = (century - 17) / 25; | |
i = century - (century >> 2) - (int)((century - m) / 3) + 19 * n + 15; | |
j = i % 30; | |
z = (int)(j / 28); | |
k = j - z * (1 - z * (int)(29 / (j + 1)) * (int)((21 - n) / 11)); |
NewerOlder