This file contains hidden or 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 createNgElement(reason) { | |
| const ng = document.createElement("span") | |
| ng.style.position = "relative" | |
| ng.style.top = "0" | |
| ng.style.left = "0" | |
| ng.style.zIndex = "9999" | |
| ng.style.width = "20px" | |
| ng.style.height = "20px" | |
| ng.style.padding = "0 10px" | |
| ng.style.backgroundColor = "#d42d2d" |
This file contains hidden or 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
| object autoCreateParam { | |
| def apply_impl[A, B: c.WeakTypeTag](c: Context)(columnName: c.Expr[ColumnName[A]], parameter: c.Expr[B]) = { | |
| import c.universe._ | |
| val B = weakTypeTag[B].tpe | |
| val constructor = B.decls.collectFirst { case m: MethodSymbol if m.isPrimaryConstructor => m }.getOrElse { | |
| c.abort(c.enclosingPosition, s"Could not find the primary constructor for $B. type $B must be a class or case class, not trait or type parameter") | |
| } | |
| val paramTuple = constructor.paramLists.head.map { field => |
This file contains hidden or 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 scala.language.experimental.macros | |
| import scala.reflect.macros.blackbox.Context | |
| import skinny.micro.{SkinnyMicroParams, MultiParams} | |
| object bindParams { | |
| def applyParam_impl[A: c.WeakTypeTag](c: Context)(params: c.Expr[SkinnyMicroParams]) = { | |
| import c.universe._ | |
| val A = weakTypeTag[A].tpe | |
| val constructor = A.decls.collectFirst { case m: MethodSymbol if m.isPrimaryConstructor => m}.getOrElse { |
This file contains hidden or 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
| export class Id<A> { | |
| constructor(public value: Number) { } | |
| } | |
| export interface Iso<A, B> { | |
| to(a: A): B; | |
| from(b: B): A; | |
| } | |
| export class IdIso<A> implements Iso<Number, Id<A>> { |
This file contains hidden or 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
| case class TestMember(id: Int, testCompanyId: Int, name: String, age: Int, testCompany: Option[TestCompany] = None) | |
| object TestMember extends SQLSyntaxSupport[TestMember] with SimpleSearch[TestMember] { | |
| override val tableName = "test_members" | |
| def apply(rn: ResultName[TestMember])(rs: WrappedResultSet): TestMember = autoConstruct(rs, rn, "testCompany") | |
| def create(testCompanyId: Int, name: String, age: Int)(implicit dBSession: DBSession) = { | |
| withSQL { | |
| insert.into(TestMember).namedValues( | |
| column.testCompanyId -> testCompanyId, |
This file contains hidden or 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
| [user] | |
| name = Kurokawa | |
| email = [email protected] | |
| [color] | |
| status = auto | |
| diff = auto | |
| branch = auto | |
| interactive = auto | |
| grep = auto |
This file contains hidden or 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
| if (typeof hackersbar === "undefined"){ | |
| var hackersbar = {}; | |
| } | |
| (function() { | |
| var ns = hackersbar; | |
| ns.Color = function(r, g, b) { | |
| var _r = r ? r : 0; | |
| var _g = g ? g : 0; | |
| var _b = b ? b : 0; |
This file contains hidden or 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
| remote: git://github.com/spree/spree.git | |
| revision: 3a07b40d9d9db2949896738bf1915caa58732737 | |
| tag: v2.3.4 | |
| specs: | |
| spree (2.3.4) | |
| spree_api (= 2.3.4) | |
| spree_backend (= 2.3.4) | |
| spree_cmd (= 2.3.4) | |
| spree_core (= 2.3.4) | |
| spree_frontend (= 2.3.4) |
This file contains hidden or 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 Lisby | |
| class Env < Hash | |
| def self.add_operators(env) | |
| env.update({ | |
| :'+' => ->(a,b) { a + b }, | |
| :'-' => ->(a,b) { a - b }, | |
| :'*' => ->(a,b) { a * b }, | |
| :'/' => ->(a,b) { a / b }, | |
| :'not' => ->(a,b) { a != b }, | |
| :'>' => ->(a,b) { a > b }, |
This file contains hidden or 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
| GIT | |
| remote: git://github.com/spree/spree.git | |
| revision: f9bf5f3aea706209d0ff474d0c78871ede0e1ec7 | |
| branch: 2-3-stable | |
| specs: | |
| spree (2.3.2.beta) | |
| spree_api (= 2.3.2.beta) | |
| spree_backend (= 2.3.2.beta) | |
| spree_cmd (= 2.3.2.beta) | |
| spree_core (= 2.3.2.beta) |
NewerOlder