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
| include <libstuff/bolt_commons.scad> | |
| use <libstuff/imbus.scad> | |
| module sbr16_rail(length){ | |
| echo("SRB16x" + length); | |
| rotate([90,0,90]){ | |
| linear_extrude(length){ | |
| import("16-rail.dxf"); | |
| } | |
| } |
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
| src/ | |
| ├── main | |
| │ ├── assets | |
| │ │ ├── images | |
| │ │ ├── javascripts | |
| │ │ └── stylesheets | |
| │ │ └── base.css | |
| │ ├── resources | |
| │ │ └── application.conf | |
| │ ├── scala |
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
| private def setsDifferences[A](a: SortedSet[A], b: SortedSet[A]): (Iterable[A], Iterable[A]) = { | |
| require(a.ordering == b.ordering, "Sets must use same ordering") | |
| val ordering = a.ordering | |
| @tailrec | |
| def interLoop(accA: List[A], a: SortedSet[A], b: SortedSet[A], accB: List[A]): (List[A], List[A]) = { | |
| (a.headOption, b.headOption) match { | |
| case (Some(elemA), Some(elemB)) => | |
| ordering.compare(elemA, elemB) match { | |
| case result if result == 0 => interLoop(accA, a.tail, b.tail, accB) | |
| case result if result > 0 => interLoop(accA, a, b.tail, elemB::accB) |
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
| #include <cstdio> | |
| #include <string> | |
| #include <tuple> | |
| template <class T, class... Args> | |
| class Deserializer { | |
| }; | |
| template <> |
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
| #include <iostream> | |
| #include <iomanip> | |
| #include <string> | |
| #include <vector> | |
| #include <array> | |
| #include <algorithm> | |
| struct Prefix { | |
| std::string& source; | |
| int offset; |
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
| package example | |
| import java.net.InetSocketAddress | |
| import java.nio.ByteBuffer | |
| import java.nio.channels.SocketChannel | |
| import java.nio.charset.Charset | |
| import java.util | |
| import com.mongodb.ServerAddress | |
| import com.mongodb.connection.{AsyncCompletionHandler, SocketSettings, SslSettings, Stream, StreamFactory, StreamFactoryFactory} |
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 com.google.inject.AbstractModule | |
| object ApplicationModule extends AbstractModule with JobSyntax { | |
| override def configure(): Unit = { | |
| install(job[MyJob].named("my")) | |
| install(job[OtherJob].named("other")) | |
| } | |
| } |
OlderNewer