Skip to content

Instantly share code, notes, and snippets.

View michaeldfallen's full-sized avatar

Michael Allen michaeldfallen

View GitHub Profile
v8.7.0
5.4.2
yarn list v1.2.0
├─ @hmcts/eslint-config@1.2.0
├─ a-sync-waterfall@1.0.0
├─ abbrev@1.1.0
├─ accepts@1.3.4
│ ├─ mime-types@~2.1.16
│ └─ negotiator@0.6.1
├─ acorn-jsx@3.0.1
@michaeldfallen
michaeldfallen / Charges team repo list
Last active September 10, 2015 08:52
Charges Team fourthwall
[
{
"userName": "LandRegistry",
"repo": "charges-borrower-frontend"
},
{
"userName": "LandRegistry",
"repo": "charges-matching-service"
},
{

Keybase proof

I hereby claim:

  • I am michaeldfallen on github.
  • I am michaelallen (https://keybase.io/michaelallen) on keybase.
  • I have a public key whose fingerprint is 7277 F8E2 AFF5 9619 DC72 B6A7 C4AA E08D 367E 0F4A

To claim this, I am signing this object:

@michaeldfallen
michaeldfallen / gist:d3aaa6f97e8aab47cdd0
Last active August 29, 2015 14:06
Heroku push response
➜ node-frontend git:(master) git push heroku master
Initializing repository, done.
Counting objects: 3862, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2587/2587), done.
Writing objects: 100% (3862/3862), 11.61 MiB | 574.00 KiB/s, done.
Total 3862 (delta 920), reused 3862 (delta 920)
-----> Node.js app detected
-----> Requested node range: 0.10.x
@michaeldfallen
michaeldfallen / clear-terminal-from-sbt.md
Last active August 29, 2015 14:04
Clear your shell in sbt
object ClearShell {
  lazy val clearShell = TaskKey[Unit](
    "clear",
    "Clears your shell. Useful to clear screen between test runs e.g. ~; clear ; test"
  )
  lazy val clearShellTask = clearShell := {
    """printf \033c""".!
  }
 val settings = Seq(
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:m="http://ant.apache.org/ivy/maven">
<info organisation="com.typesafe.play"
module="play_2.10"
revision="2.2.0"
status="release"
publication="20140717080905"
>
<description homepage="">
Play
@michaeldfallen
michaeldfallen / nino-step-mustache.html
Last active August 29, 2015 14:04
Play templating to Mustache code samples
<form action="{{question.postUrl}}" method="POST" data-validation-name="nino"
data-validation-type="association"
data-validation-rules="fieldsetOrExcuse"
class="validate" data-validation-members="ninoCode ninoExcuse">
{{> shared/questionHeader }}
{{> shared/validationMessages }}
<label for="{{nino.id}}" class="visuallyhidden" >
@michaeldfallen
michaeldfallen / gist:10685435
Last active August 29, 2015 13:59
Kainos Globe in CSS3
.kcircle {
display: inline-block;
width: 0.71em;
height: 0.71em;
position: relative;
margin: 0 0px;
border-radius: 50%;
background: rgb(35,157,46); /* Old browsers */
background: -moz-linear-gradient(top, rgba(35,157,46,1) 58%, rgba(168,200,19,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(58%,rgba(35,157,46,1)), color-stop(100%,rgba(168,200,19,1))); /* Chrome,Safari4+ */
@michaeldfallen
michaeldfallen / gist:9808250
Last active August 29, 2015 13:57
Namespacing Keys
Interesting thought on how to do namespacing with keys:
class BaseK(name:String) {
implicit val parent = this
def value = this.name
}
class K(name:String)(implicit parent: BaseK) extends BaseK(name) {
override def value = parent.value + "." + name
}
@michaeldfallen
michaeldfallen / Heirs
Created July 15, 2013 22:13
Some pseudo-code for CGPGrey. Assumes monarch is an object that has methods: - hasChildren - hasSons OR hasDaughters - hasSons - returns true if they have at least one son - hasDaughters - returns true if they have at least one daughter - sons object with eldest method that returns oldest son - daughters object with eldest method that returns ol…
def MalePrimoGenetor(monarch):
if monarch.hasChildren is False:
return MalePrimoGenetor(monarch.parent)
else
if monarch.hasSons is True:
return monarch.sons.eldest
else if monarch.hasDaughters is True:
return monarch.daughters.eldest
else
return none