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
| template <class C, template <class C> class A, template <class C> class B> | |
| static inline void assertEquals(const A<C>& expected, const B<C>& actual) { | |
| auto success = 0, failure = 0; | |
| for (auto iter1 = expected.cbegin(), iter2 = actual.cbegin(); | |
| iter1 != expected.cend() && iter2 != actual.cend(); ++iter1, ++iter2) { | |
| if (Test::assertEquals<C>(*iter1, *iter2)) { | |
| ++success; | |
| } else { | |
| ++failure; |
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
| #pragma once | |
| #include <algorithm> | |
| #include <cstring> | |
| #include <unordered_map> | |
| #include <string> | |
| #include <utility> | |
| #include <vector> | |
| using ull = unsigned long long; |
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 main | |
| import ( | |
| "fmt" | |
| "math/big" | |
| //util "github.com/cznic/mathutil" | |
| ) | |
| func Copy(from *big.Int) (*big.Int) { | |
| stubby := big.NewInt(1) |
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 com.santaba.zuora.tls; | |
| import org.apache.commons.httpclient.params.HttpConnectionParams; | |
| import org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory; | |
| import javax.net.ssl.SSLContext; | |
| import javax.net.ssl.SSLSocket; | |
| import javax.net.ssl.SSLSocketFactory; | |
| import java.io.IOException; | |
| import java.net.InetAddress; |
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 net.cogindo.ssl; | |
| import java.io.IOException; | |
| import java.net.InetAddress; | |
| import java.net.Socket; | |
| import java.net.UnknownHostException; | |
| import java.security.KeyManagementException; | |
| import java.security.NoSuchAlgorithmException; | |
| import javax.net.ssl.SSLContext; |
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
| val fib: Stream[BigInt] = BigInt(0) #:: BigInt(1) #:: fib.zip(fib.tail).map (n => n._1 + n._2) |
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
| /** Name of project */ | |
| name := "Scalebra" | |
| /** Project Version */ | |
| version := "1.0" | |
| /** Scala version */ | |
| scalaVersion := "2.11.8" | |
| /** Scalac parameters */ |
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
| /** Name of project */ | |
| name := "ScowerBot" | |
| /** Organization */ | |
| organization := "initialcommit.io" | |
| /** Project Version */ | |
| version := "1.0" | |
| /** Do not download deps every time */ |
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 main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "strings" | |
| "net/url" | |
| "io/ioutil" | |
| "log" | |
| ) |
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 main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "strings" | |
| "net/url" | |
| "io/ioutil" | |
| "log" | |
| ) |