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
// We define a logical rule Augmentable that transform Int -> Long and Float -> Double | |
// at the type level with a dependent type. | |
// Then we want to abstract over arity and ensure that an "augment" transformation | |
// is defined for every type of a HList. | |
import shapeless._ | |
// Dependent type T -> S (S depends on T) | |
trait Augmentable[T] { | |
type 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
package main.scala | |
import javax.servlet.http.{HttpServlet,HttpServletRequest,HttpServletResponse} | |
import org.eclipse.jetty.server.Server | |
import java.io.PrintWriter | |
import java.net.URLEncoder | |
class MongoServlet extends HttpServlet { | |
import com.mongodb.casbah.Imports._ | |
val conn = MongoConnection("mongo.example.dotcloud.com",5907) |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
# -*- coding: utf-8 -*- | |
""" | |
codegen | |
~~~~~~~ | |
Extension to ast that allow ast -> python code generation. | |
:copyright: Copyright 2008 by Armin Ronacher. | |
:license: BSD. | |
""" |
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
// Use this function like the standard THREE.ImageUtils.loadTexture | |
THREE.ImageUtils.loadTextureWithYQL = function ( path, mapping, callback ) { | |
var image = new Image(), texture = new THREE.Texture( image, mapping ); | |
var me = this; | |
image.onload = function () { }; | |
image.crossOrigin = ''; | |
image.src = path; | |
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
#/***************************************************************************** | |
# * * | |
# * PushScript * | |
# * Copyright (C) 2008-2010 Jonathan Klein * | |
# * * | |
# * This program is free software; you can redistribute it and/or modify * | |
# * it under the terms of the GNU General Public License as published by * | |
# * the Free Software Foundation; either version 2 of the License, or * | |
# * (at your option) any later version. * | |
# * * |
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
c. UMongo 1.2.1 | |
In the server text field, change 'localhost' to '127.0.0.1' and it should work |
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
# Here are some of the more interesting configurable cluster properties | |
# that enable you to maintain health of your system | |
# Note: The provider to use | |
akka.actor.provider = akka.cluster.ClusterActorRefProvider | |
akka.cluster { | |
# if after this duration no heartbeat has been received, you have a problem | |
failure-detector.acceptable-heartbeat-pause = 5s |
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
/.idea/ | |
/project/boot/ | |
/project/plugins/project | |
target/ | |
lib_managed/ | |
src_managed/ | |
test-output/ | |
*.iml |
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
coffee --print --compile $1.coffee | sed '1s/^.//' | sed 's/ });/}/' | sed "s/\([^ '\"].*[^ '\"]\):/\"\1\":/" > $1.json |
OlderNewer