Skip to content

Instantly share code, notes, and snippets.

Adam Singer adam-singer

Block or report user

Report or block adam-singer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b8ce225150ee6e519d7d572bf3a11d76
(when (configuration-layer/package-usedp 'haskell)
(add-hook 'haskell-mode-hook 'imenu-add-menubar-index))
adam-singer /
Last active Jan 21, 2016 — forked from dypsilon/
A badass list of frontend development resources I collected over time.
View Bridge.scala
trait DrawingAPI {
def drawCircle(x:Double, y: Double, radius:Double)
class DrawingAPI1 extends DrawingAPI {
override def drawCircle(x: Double, y: Double, radius: Double) = {
printf(" at %f:%f radius %f\n", x, y, radius)
View test1.scala
object ScalaJSExample extends js.JSApp {
case class Person(name: String, address: String)
def main() = {
println("help scala")
// removed permissions
adam-singer /
Created Aug 29, 2014
docgen crashes on mac building chrome.dart from pub.
dart --version
Dart VM version: 1.6.0-dev.9.7 (Tue Aug 26 00:14:16 2014) on "macos_x64"
mkdir -p /tmp/t
cd /tmp/t
export PUB_CACHE=/tmp/t
pub cache add chrome --version 0.6.1 --all
cd hosted/
adam-singer /
Created Aug 11, 2014
Building graal + truffle on osx 10.9.4 with xcode 5.1.1
hg clone
cd graal
# uncomment if xm barks about not finding 1.7.
# export EXTRA_JAVA_HOMES=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home
export DEFAULT_VM=server
export USE_CLANG=true
export LFLAGS="-Xlinker -lstdc++"
# one way (older scala version will be installed)
# sudo apt-get install scala
#2nd way
sudo apt-get remove scala-library scala
sudo dpkg -i scala-2.10.3.deb
sudo apt-get update

SPIKE: AngularDart REST Client

Every client-side applications has to talk to REST APIs. At the moment AngularDart does not provide any high-level abstractions to help you do that. You can send http requests, but that's it.

This post is about a spike I did a few days ago to explore possible ways of building such a library. It also shows that you can do quite a bit in just one hundred lines of Dart.

Design Principles

View .bash_profile
alias gdbnew='/usr/local/Cellar/gdb/7.6/bin/gdb'
You can’t perform that action at this time.