Skip to content

Instantly share code, notes, and snippets.

View hale's full-sized avatar

Philip Hale hale

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hale on github.
  • I am pghale (https://keybase.io/pghale) on keybase.
  • I have a public key ASAZcHyS_piB4LcxmdM1WUgBGXOwPs7SHybbRbIRrVgGeAo

To claim this, I am signing this object:

(function() {
var Stripe, exports, key, _i, _len,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
_this = this;
this.Stripe = (function() {
function Stripe() {}

NOTE: Payment of a business registry fee and issuance of a business registry certificate do not necessarily entitle you to conduct business in the City of Palo Alto. As the owner or operator of a business, you must comply with all applicable zoning and public safety regulations and obtain all required permits.

THIS INFORMATION IS NOT A COMPLETE LISTING OF CLEARANCES THAT MIGHT BE REQUIRED

  1. If you intend to alter, remodel, relocate, or install any structural, electrical, plumbing, or mechanical portions of the building, you will need to obtain building permits from the Development Services Department at (650) 329-2496
  2. Businesses involving any use changes, exterior building changes, or sign changes are advised to secure Department of Planning and Community Environment approval prior to lease execution or purchase. Contact the Planning and Community Environment Department at (650) 329-2442
  3. Businesses operated out of the home must comply with Home Occupation Regulations (Section 18.42.060 of the Munici
@hale
hale / -
Created October 10, 2013 16:04
BSS
can permutate A into B given a list of swaps (FAILED - 1)
all together now (FAILED - 2)
#apply_swap!
works for 2 elements
works for 4 elements
#swaps
works for 2 elements
works for 3 elements
@hale
hale / -
Created October 4, 2013 17:50
#<NoMethodError: undefined method `+' for nil:NilClass>
[Worker(host:5dd14c30-3419-457a-9329-7eab37d07e39 pid:2)] RailsNlp::TextAnalyser#update_analysis completed after 0.5470
[Worker(host:5dd14c30-3419-457a-9329-7eab37d07e39 pid:2)] 1 jobs processed at 1.7184 j/s, 0 failed ...
[Worker(host:5dd14c30-3419-457a-9329-7eab37d07e39 pid:2)] WebService#update_tank_indexes_without_delay completed after 0.0971
[Worker(host:5dd14c30-3419-457a-9329-7eab37d07e39 pid:2)] 1 jobs processed at 9.2152 j/s, 0 failed ...
@hale
hale / gist:6415083
Last active December 22, 2015 04:09
Hacky fix for failing search reindex in Honolulu Answers; analysemodels rake task starts from scratch, drops the tables.
diff --git a/app/models/guide_step.rb b/app/models/guide_step.rb
index da18e96..f36f8fb 100644
--- a/app/models/guide_step.rb
+++ b/app/models/guide_step.rb
@@ -2,4 +2,10 @@ class GuideStep < ActiveRecord::Base
include TankerArticleDefaults
belongs_to :guide, :class_name => 'Guide', :foreign_key => 'article_id'
attr_accessible :article_id, :title, :content, :preview, :step
+
+ delegate :category, :tags, :keywords, :to => :guide
@hale
hale / -
Created August 22, 2013 11:46
" My Bundles
Bundle 'gmarik/vundle'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'mileszs/ack.vim'
Bundle 'airblade/vim-rooter'
Bundle 'rizzatti/funcoo.vim'
Bundle 'rizzatti/dash.vim'
Bundle 'chriskempson/base16-vim'
Bundle 'tpope/vim-rails'

CS3518 Formal Languages and Computability: Week One Summary

Formal Languages

Terminology

  • Symbol: basic unit
  • Alphabet: finite set of symbols
  • String over alphabet T: finite sequence of symbols from T
  • Empty string: string with no symbols, lambda, λ.
@hale
hale / pom.xml
Last active December 15, 2015 01:49
├── src
│   └── com
│   └── rmiserv
│   ├── Hello.java
│   ├── HelloInterface.java
│   └── HelloServer.java
└── target
├── classes
│   └── com
│   └── rmiserv
✘ ⚙ ⮀ ~/code/venue4us-experimental ⮀ ⭠ master± ⮀ play compile
[info] Loading project definition from /Users/philiphale/code/venue4us-experimental/project
[info] Set current project to venue4us (in build file:/Users/philiphale/code/venue4us-experimental/)
[info] Compiling 12 Scala sources and 16 Java sources to /Users/philiphale/code/venue4us-experimental/target/scala-2.10/classes...
[warn] there were 2 feature warnings; re-run with -feature for details
[warn] one warning found
[error] /Users/philiphale/code/venue4us-experimental/target/scala-2.10/src_managed/main/com/feth/play/module/pa/controllers/routes.java:8: cannot find symbol
[error] symbol : class ReverseAuthenticate
[error] location: package com.feth.play.module.pa.controllers
[error] public static final com.feth.play.module.pa.controllers.ReverseAuthenticate Authenticate = new com.feth.play.module.pa.controllers.ReverseAuthenticate();