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
adam-singer / frontendDevlopmentBookmarks.md
Last active Jan 21, 2016 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
View Bridge.scala
// http://en.wikipedia.org/wiki/Bridge_pattern
trait DrawingAPI {
def drawCircle(x:Double, y: Double, radius:Double)
}
class DrawingAPI1 extends DrawingAPI {
override def drawCircle(x: Double, y: Double, radius: Double) = {
printf("API1.circle 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
adam-singer / output.sh
Created Aug 29, 2014
docgen crashes on mac building chrome.dart from pub.
View output.sh
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/pub.dartlang.org/chrome-0.6.1/
unset PUB_CACHE
@adam-singer
adam-singer / clone_and_build_graal_truffle.sh
Created Aug 11, 2014
Building graal + truffle on osx 10.9.4 with xcode 5.1.1
View clone_and_build_graal_truffle.sh
hg clone http://hg.openjdk.java.net/graal/graal
cd graal
# http://mail.openjdk.java.net/pipermail/graal-dev/2013-December/001255.html
# 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 COMPILER_WARNINGS_FATAL=false
export USE_CLANG=true
export LFLAGS="-Xlinker -lstdc++"
export USE_PRECOMPILED_HEADER=0
View install_scala_sbt.sh
#!/bin/sh
# one way (older scala version will be installed)
# sudo apt-get install scala
#2nd way
sudo apt-get remove scala-library scala
wget www.scala-lang.org/files/archive/scala-2.10.3.deb
sudo dpkg -i scala-2.10.3.deb
sudo apt-get update
View docker_cheat.md
View angular_dart_rest_client_spike.md

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.