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
sbtPlugin := true | |
name := "sbt-build-info" | |
organization := "com.tapad" | |
version := "0.1.3" | |
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials") |
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
function extend(p, c) | |
{ | |
var f = function() {}; | |
f.prototype = p.prototype; | |
c.prototype = new f(); | |
c.prototype.constructor = c; | |
} | |
function mixin(p, c) | |
{ |
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
function Debug() { | |
var frame = window.open("", "Debugger", "location=no,scrollbars=yes,height=300,width=400"); | |
var console = frame.document.createElement("div"); | |
console.setAttribute("id", "console"); | |
console.style.margin = "auto"; | |
console.style.width = "350px"; | |
console.style.overflow = "auto"; | |
frame.document.body.appendChild(console); |
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 com.olchovy.format | |
import scala.xml._ | |
import net.liftweb.json.JsonAST._ | |
trait Formatter[-A, B] { | |
def format(a: A): B | |
} | |
object Formatters { |
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 sys, json | |
import flow | |
class Context(object): | |
def __init__(self, client): | |
client.set_logger_file('fgc.out') | |
self.client = client | |
self.create_application() | |
self.create_application_flows() |
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 sys, json | |
import flow | |
class Context(object): | |
CATEGORIES = { | |
'a': { 'parent': None }, | |
'b': { 'parent': 'a' }, | |
'c': { 'parent': 'a' }, | |
'd': { 'parent': 'b' }, | |
'e': { 'parent': 'd' }, |
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
#!/usr/bin/env python2.6 | |
import abc | |
class Kind(object): | |
__metaclass__ = abc.ABCMeta | |
kindtypes = dict() | |
datatypes = list() |
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
-module(objectid). | |
-author("olchovy@gmail.com"). | |
-export([binary_to_hex/1]). | |
extract_binary_data(BsonObjectId) -> | |
case BsonObjectId of {Binary} -> Binary; Binary -> Binary end. | |
binary_to_hex(BsonObjectId) -> | |
Binary = extract_binary_data(BsonObjectId), | |
list_to_binary(lists:flatten([io_lib:format("~2.16.0b", [X]) || <<X:8>> <= Binary])). |
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
lazy val root = (project in file(".")) | |
.aggregate(plugin, library) | |
.enablePlugins(CrossPerProjectPlugin) | |
lazy val plugin = (project in file("plugin")) | |
.settings( | |
name := "sbt-tweeter", | |
sbtPlugin := true, | |
scalaVersion := "2.10.6" | |
) |
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
addSbtPlugin("com.eed3si9n" % "sbt-doge" % "0.1.5") | |
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.4") |
OlderNewer