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
0000a460 r .Lconst | |
0000a4c0 r .Lconst1 | |
0000a41c d _GLOBAL_OFFSET_TABLE_ | |
0000a430 D _ZN20_rust_crate_map_main65_66af34bfd20eef3e569d2715edc935886d52385c260f040cb2ccbb490a4198f84v0.0E | |
00009bc0 T _ZN3kbd12change_state67h18a124228ceb50f643c8cf489f2182a68c22bda9d979412817a4cb9f4318182fa34v0.0E | |
0000a448 D _ZN3kbd17SCAN_CODE_MAPPING67h20ea0cee3a78f414ff302fdc091ae7bb7159bfebf1ad25f39505ad2d9f5363c3ab4v0.0E | |
0000a450 D _ZN3kbd25SCAN_CODE_MAPPING_SHIFTED67h20ea0cee3a78f414ff302fdc091ae7bb7159bfebf1ad25f39505ad2d9f5363c3aK4v0.0E | |
0000b4d6 b _ZN3kbd7shifted67hcd3b7cd8cef8e7031114acc8eca7f160374a580e3c3cd0ea40243d22d744a6e7a74v0.0E | |
00009c20 T _ZN3kbd8get_char67h70cd28c530c736a296df0d2b09d775444f0e229be3f8686bc3453803aea296d8a74v0.0E | |
0000a414 d _ZN3mem4base67h60ae2067bc7d21dc1d93733d57e9a782e6960c193a22bf01da365e361036d0b7ah4v0.0E |
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
dan@cobalt:~/projects/Pinout$ ~/apps/dart/dart-sdk/bin/pub --trace get | |
Resolving dependencies......................... | |
Downloading polymer 0.9.5... | |
Downloading analyzer 0.10.5... | |
Downloading custom_element 0.9.1+2... | |
Downloading html_import 0.9.0... | |
Downloading polymer_expressions 0.9.1... | |
Downloading shadow_dom 0.9.1... | |
Downloading template_binding 0.9.1... | |
Downloading path 1.0.0... |
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
def foo[T](l: List[T]) = l match { | |
case Nil => (None, Nil, None) | |
case a :: Nil => (Some(a), Nil, None) | |
case a :: b :: Nil => (Some(a), Nil, Some(b)) | |
case a :: b => (Some(a), b dropRight 1, Some(b.last)) | |
} |
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 scala.language.{implicitConversions, existentials} | |
class Encoder[T] | |
implicit object StringEncoder extends Encoder[String] | |
case class Encodable(encoder: Encoder[_], obj: Any) | |
implicit def obj2encodable[T: Encoder](obj: T): Encodable = Encodable(implicitly[Encoder[T]], obj) | |
trait Resource { | |
def request(): Encodable |
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
class Parent[T <: Parent[_]] { | |
def foo = this.asInstanceOf[T] | |
} | |
class Child extends Parent[Child] |
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
val myRoute = | |
pathPrefix("rest") { | |
controller("apps", RestController(AppDao)) ~ | |
controller("clusters", RestController(ClusterDao)) ~ | |
controller("commits", RestController(CommitDao)) ~ | |
controller("deployments", RestController(DeploymentDao)) ~ | |
controller("config-keys", RestController(ConfigKeyDao)) ~ | |
controller("config-values", RestController(ConfigValueDao)) ~ | |
controller("blades", RestController(BladeDao)) ~ | |
controller("stacks", RestController(StackDao)) ~ |
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
#include <stdio.h> | |
typedef struct { | |
// Required | |
const char *fq_name[3]; | |
// Optional | |
const char *display_name; | |
const char *href; | |
const char *name; |
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
@ val sources = List(Source(1 :: 2 :: 3 :: Nil), Source(4 :: 5 :: 6 :: Nil), Source(7 :: 8 :: 9 :: Nil)) | |
sources: List[Source[Int, akka.NotUsed]] = List( | |
Source(SourceShape(StatefulMapConcat.out(666586581))), | |
Source(SourceShape(StatefulMapConcat.out(1638756960))), | |
Source(SourceShape(StatefulMapConcat.out(136416115))) | |
) | |
@ val futures = sources.map(_.runWith(Sink.seq)) | |
futures: List[concurrent.Future[collection.immutable.Seq[Int]]] = List( | |
Future(Success(Vector(1, 2, 3))), |
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
13:33:06.524 INFO o.a.ignite.internal.IgniteKernal - | |
>>> __________ ________________ | |
>>> / _/ ___/ |/ / _/_ __/ __/ | |
>>> _/ // (7 7 // / / / / _/ | |
>>> /___/\___/_/|_/___/ /_/ /___/ | |
>>> | |
>>> ver. 2.2.0#20170915-sha1:5747ce6b | |
>>> 2017 Copyright(C) Apache Software Foundation | |
>>> |
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 math._ | |
val input = 347991 | |
def distance(n: Int) = { | |
val level = ((sqrt(n) - 1) / 2).ceil.toInt | |
val br = pow(level * 2 + 1, 2).toInt | |
val offset = br - n | |
val length = level * 2 + 1 | |
val k = length - 1 |
OlderNewer