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.implicitConversions | |
object Unsigned { | |
// No-boxing tag | |
private type Tagged[T] = { type Tag = T } | |
type Unsigned[T] = T with Tagged[UTag[T]] | |
sealed trait UTag[T] | |
@inline def apply[T] (u: T) : Unsigned[T] = u.asInstanceOf[Unsigned[T]] |
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 <stdio.h> | |
#include <CommonCrypto/CommonKeyDerivation.h> | |
#include <CommonCrypto/CommonCryptor.h> | |
#include <assert.h> | |
#include <dispatch/dispatch.h> | |
int main (int argc, char *argv[]) { | |
uint64_t salt = 0; | |
dispatch_group_t group = dispatch_group_create(); |
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 java.io.IOException | |
import java.nio.channels.FileChannel | |
import java.nio.file.{Path, Paths, StandardOpenOption} | |
import scodec.bits.BitVector | |
import shapeless.ops.hlist | |
import scalaz.{-\/, \/, \/-} | |
type AnalysisScore = Int | |
//type DataAnalysis[T] = (DataType, AnalysisScore) |
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
POST /api/client/asset/retrieve/token HTTP/1.1 | |
Host: p29-ckdatabase.icloud.com:443 | |
X-Apple-Request-UUID: AA181E9B-0AD3-4D32-9496-49864F6013D1 | |
Accept: application/x-protobuf | |
Content-Encoding: gzip | |
X-CloudKit-UserId: _06d9280ffcc33808080bf05f7c23cfd8 | |
X-CloudKit-ContainerId: com.apple.clouddocs | |
X-CloudKit-ProtocolVersion: client=1;comments=1;device=1;presence=1;records=1;sharing=1;subscriptions=1;users=1;mescal=1; | |
X-MMe-Client-Info: <VMware7,1> <Mac OS X;10.10;14A389> <com.apple.cloudkit.CloudKitDaemon/259.2.3 (com.apple.cloudd/259.2.3)> | |
Accept-Encoding: gzip |
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
"Pretty-printed body of:" | |
"https://github.com/fix-macosx/yosemite-phone-home/blob/d3da40373841fedbbb6f640a680feb18926a1d82/icloud-user-r0/System/Library/CoreServices/Spotlight.app/Contents/XPCServices/com.apple.metadata.SpotlightNetHelper.xpc/Contents/MacOS/com.apple.metadata.SpotlightNetHelper/20141019T073211Z-auser-%5B172.16.174.146%5D:49225-%5B17.249.89.250%5D:443.log" | |
{ | |
"enabled": true, | |
"use_ledbelly": false, | |
"version": "Parsec2F", | |
"min_query_len": 1, | |
"max_cached_queries_len": 1024, | |
"max_cached_results_len": 8192, | |
"supported_geo_sources": [ |
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
[ | |
{ | |
"timestamp": 0, | |
"input": "W", | |
"type": "search_local", | |
"latency": 0 | |
}, | |
{ | |
"local_results": [ | |
"ddg_search", |
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
POST /fb?key=andromeda HTTP/1.1 | |
Host: api.smoot.apple.com | |
Content-Type: application/json | |
Accept-Charset: utf-8 | |
Connection: keep-alive | |
X-Apple-ActionSignature: ArFF0Bupz4+n05DZ/5MjOYH6XbRrC98eRfE+8OzUT0wKAAABwAMAAAABAAABAO7FAuqnAwyvZFj4n1tcSQxl42hKlg/915t5zBgrff9a2axEBZXtPF2Tg0rdJIEJJ/r4sMinOShzj3lvY9LmX1ZS76JmJNM0WZLzpat3WBzTmsgwyWUGSwO1ZUCURtaYyd5GryXCOfKyC0EIy8g3ppLlRdg4NOfIH043t/x7dzXjSJnuFZxgjkNtXJjlZtpyhU/1aozZABRHLK6nnPu33ek59bQMDwtQGyPC/3+DBJeujZcVuZI6of22HaV2oVFLz3zXEfEAcfeL5WPLWinnmLN+RZIrONwRmy/64kYbrkDO3P00R96wW6LJBYe63d6vWCrXlWTQeL7DDtwaR29Q0lYAAAAQ7fKDT5fxlqnZiMWRl6sNlQAAAJ8BZJzusSpopU9YFrn8J9VG1D/Ve1QAAACGBQJ/jp+/zKfOoBgaJGgjxWW8VEHM8hOyIUG96CcnUgA2Aqfvvv9nzKjAU05WWJSzGq4jMw5xzBsDlj9oSpM9/8PEHAlDKz2v7hNR3TLlAkH/2GMJgF7ly7dnqPPG4fjEvoT7Pz/bEepVSsboPqm8ztaSvCYoC3xBbXEPPO5AjiH4jeDbKLI= | |
Accept: application/json | |
X-Apple-UserGuid: 267af341-df6c-4eed-5e78-a2b8a49a1d1f | |
User-Agent: (OS X 14A389) Spotlight/916 | |
Content-Length: 5991 |
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 example { | |
import scala.language.higherKinds | |
object @@ { | |
case class TypeClassManifest[V, T[_]](value: V)(implicit val typeClass: T[V]) | |
def apply[V, T[_]](instance: V)(implicit T: T[V]) = TypeClassManifest(instance) | |
implicit def typeClass[V, T[_]] (manifest: TypeClassManifest[V, T]): T[V] = manifest.typeClass |
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
class TupleCodec<A, B> : Codec { | |
typealias CodecType = (A, B) | |
// What I'd really like to do here ... | |
typealias CodecA = Codec where CodecA.CodecType == A | |
typealias CodecB = Codec where CodecB.CodecType == B | |
let encA: CodecA | |
let encB: CodecB |
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
protocol TypeBinder { | |
typealias BoundT | |
} | |
class TypeEvidence<T> : TypeBinder { | |
typealias BoundT = T | |
func array () -> Array<BoundT> { return [] } | |
} | |
class ObserverTyper<T> { |