Skip to content

Instantly share code, notes, and snippets.

View dpp's full-sized avatar

David Pollak dpp

View GitHub Profile
@dpp
dpp / gist:1284334
Created October 13, 2011 14:24
Sample Parser Combinator shown at Scala Lift Off London 2011 #scalalol
import scala.util.parsing.combinator._
trait RunParser {
this: RegexParsers =>
type RootType
def root: Parser[RootType]
def run(in: String): ParseResult[RootType] = parseAll(root, in)
}
val vars = Map("a" -> 4d, "pi" -> 3.1415d)
@dpp
dpp / foo.md
Created July 18, 2012 17:36
Testing how it tastes to eat yaks

Yaks are very tasty because:

  • They taste good
  • They are tender when cooked right
  • They require lots of time to shave

So... let's try some yaks today:

def eatAYak(): String = "Yum Yum"
@dpp
dpp / Moose.scala
Created November 8, 2012 18:31
Telegram/Hoisted Plugin
package sloth
import org.hoisted.lib._
import net.liftweb._
import common._
import util._
import Helpers._
import scala.xml._
object Moose {
@dpp
dpp / gist:6033615
Created July 18, 2013 22:17
Ford online service books
Server Error in '/SDCP' Application.
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
@dpp
dpp / gist:e3a4a2df9c39df78543a
Created July 27, 2014 11:26
Chase fraud alert landing page
Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>

Keybase proof

I hereby claim:

  • I am dpp on github.
  • I am dpp (https://keybase.io/dpp) on keybase.
  • I have a public key whose fingerprint is F998 8184 C109 0369 E375 8A0C D834 3899 0939 E27F

To claim this, I am signing this object:

Verifying that +dpp is my openname (Bitcoin username). https://onename.io/dpp
@dpp
dpp / template.cljs
Created June 8, 2015 18:55
CSS Selector Transforms in ClojureScript
(ns portal.util.template
(:require [goog.dom :as dom]
[domina :as domina]
[crate.core :as crate]
[clojure.string :as s]
))
(def data
"<html><body><div>hello <span id='moo' class='woo'>moo</span></div></body></html>")
@dpp
dpp / mgt.txt
Last active October 23, 2015 16:54
Engineering mgt and start-up posts
https://medium.com/@firstround/dear-startup-advisors-you-don-t-always-need-to-be-right-but-you-have-to-be-solid-75652c863566
http://jimhighsmith.com/velocity-is-killing-agility/
http://firstround.com/review/Why-Yammer-believes-the-traditional-engineering-organizational-structure-is-dead/
http://russolsen.com/blog/2012/08/09/the-best-programming-advice-i-ever-got/
http://firstround.com/review/The-one-cost-engineers-and-product-managers-dont-consider/
@dpp
dpp / ubi.md
Created September 16, 2015 17:40
Basic Income Links