duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
-- Toggle Debug.log | |
-- For non production use only | |
import Debug exposing(log) | |
-- (1) with |> | |
1 + 1 |> log "Addition" -- prints "Addition: 2" and returns 2 | |
-- turn off logging | |
1 + 1 -- |> log "Addition" |
defmodule Enum.Query.CompileError do | |
@moduledoc ~S""" | |
Raise compile time error while building query | |
""" | |
defexception [:message] | |
end | |
defmodule Enum.Query do | |
@moduledoc ~S""" |
var through = require('through2'); | |
var moduleWrapper = through.obj(function (chunk, enc, cb) { | |
var content = chunk._contents.toString(); | |
var newContent = content.replace(/angular\s*\.\s*module\s*\(\s*['"]([^'"]+)['"]\s*,\s*\[([^\]]*)\][^)]*\)/mg, function(match, mod, deps) { | |
// ignore ngHtml2Js templates module name | |
// if(mod === 'app.templates') { return match; } | |
return "((function () {\n try {\n return angular.module('" + mod + "');\n } catch (e) {\n return angular.module('" + mod + "', [" + deps + "]);\n }\n})())"; | |
}); | |
chunk._contents = new Buffer(newContent); |
#!/usr/bin/env node | |
var COMPILED = false; | |
var goog = goog || {}; | |
goog.NODE_JS = true; | |
goog.global = goog.NODE_JS ? eval("global") : this; | |
goog.global.CLOSURE_UNCOMPILED_DEFINES; | |
goog.global.CLOSURE_DEFINES; | |
goog.isDef = function(val) { | |
return val !== void 0; |
trait FlightStatus | |
trait Flying extends FlightStatus | |
trait Landed extends FlightStatus | |
case class Plane[Status <: FlightStatus]() | |
def land(p:Plane[Flying])=Plane[Landed]() | |
def takeOff(p:Plane[Landed])= Plane[Flying]() | |
val plane = new Plane[Landed]() |