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
/* Text field placeholders | |
* | |
* Dave Gurnell, http://www.untyped.com | |
* | |
* Example usage: $("#my-date-field").placeholder("yyyy-mm-dd"); | |
*/ | |
(function ($) { | |
// -> Boolean | |
$.fn.hasPlaceholder = function () { |
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
/* iOS scrollpane jQuery plugin, v1.0 | |
* ================================== | |
* | |
* (c) 2011 Dave Gurnell | |
* http://boxandarrow.com | |
* | |
* Distributed under the Creative Commons Attribution 3.0 Unported licence: | |
* http://creativecommons.org/licenses/by/3.0/ | |
*/ |
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
/* | |
* Copyright (c) 2011 Untyped Ltd, http://untyped.com | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the | |
* "Software"), to deal in the Software without restriction, including | |
* without limitation the rights to use, copy, modify, merge, publish, | |
* distribute, sublicense, and/or sell copies of the Software, and to | |
* permit persons to whom the Software is furnished to do so, subject to | |
* the following conditions: |
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
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
import com.untyped.sbtjs.Plugin._ | |
import com.untyped.sbtless.Plugin._ | |
/* Example build config to use the Untyped JS/Less/Coffeescript plugins: | |
* | |
* http://github.com/untyped/sbt-plugins |
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
# Sample latexmk configuration to use xelatex and Preview on OS X. | |
# Should help if you want to use latexmk with MacTeX. | |
# | |
# 1. Install MacTeX | |
# 2. Put this file in ~/.latexmkrc | |
# 3. Continuously recompile and preview your document with the command: | |
# latexmk -pvc myfile.tex | |
$pdflatex = 'xelatex -interaction=nonstopmode %O %S'; | |
$pdf_previewer = 'open -a Preview "%S"'; |
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
import org.lwjgl.*; | |
import org.lwjgl.opengl.*; | |
import static org.lwjgl.opengl.GL11.*; | |
import static org.lwjgl.opengl.GL15.*; | |
import static org.lwjgl.opengl.GL20.*; | |
import static org.lwjgl.opengl.GL30.*; | |
import static org.lwjgl.util.glu.GLU.*; | |
import static org.lwjgl.BufferUtils.*; | |
public class GLTest { |
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
[ | |
{ "keys": ["super+shift+r"], "command": "reveal_in_side_bar"} | |
] |
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
// TODO: This code doesn't distinguish between "main" files for which we want to generate outputs, | |
// and "library" files that are used in compilation but don't generate outputs. | |
case class SourceLocation(val rel: File, val relTo: File, val abs: File) | |
// Compilation may take several steps (Coffeescript => CommonJS => Concat => Uglifyjs etc). | |
// Sources are cached on disk after each step, allowing us to check timestamps to avoid | |
// unnecessary recompilation. Compiler steps accept one or more Sources as an argument and | |
// emit one or more Sources as outputs. Each Source knows where the original source file is | |
// located, where the target file is going to end up, and where the content is cached at the |
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
import scala.util.{ Try, Success, Failure } | |
case class ValidationError(field: Seq[String], message: String) { | |
def prefix(name: String) = this.copy(field = name +: field) | |
} | |
def validator[A](func: A => Seq[ValidationError]): Validator[A] = | |
new Validator[A] { | |
def apply(value: A) = func(value) | |
} |
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
import akka.actor._ | |
import akka.pattern.ask | |
import akka.routing._ | |
import akka.util.Timeout | |
import scala.concurrent._ | |
import scala.concurrent.duration._ | |
import scala.concurrent.ExecutionContext.Implicits.global | |
object Speaker { | |
case class EventuallySay(phrase: String) |
OlderNewer