Product: Sagitta Brutalis 1080 (PN S3480-GTX-1080-2697-128)
Software: Hashcat v3.00-beta-145-g069634a, Nvidia driver 367.18
Accelerator: 8x Nvidia GTX 1080 Founders Edition
Product: Sagitta Brutalis 1080 (PN S3480-GTX-1080-2697-128)
Software: Hashcat v3.00-beta-145-g069634a, Nvidia driver 367.18
Accelerator: 8x Nvidia GTX 1080 Founders Edition
| package example_test | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "hex" | |
| "io" | |
| ) | |
| // AES-GCM should be used because the operation is an authenticated encryption |
| using Org.BouncyCastle.Crypto; | |
| using Org.BouncyCastle.Crypto.Engines; | |
| using Org.BouncyCastle.Crypto.Modes; | |
| using Org.BouncyCastle.Crypto.Paddings; | |
| using Org.BouncyCastle.Crypto.Parameters; | |
| using Org.BouncyCastle.Security; | |
| using Org.BouncyCastle.Utilities.Encoders; | |
| using System; | |
| using System.Globalization; | |
| using System.Security.Cryptography; |
| ZigZag-Encoding | |
| --------------- | |
| Maps negative values to positive values while going back and | |
| forth (0 = 0, -1 = 1, 1 = 2, -2 = 3, 2 = 4, -3 = 5, 3 = 6 ...) | |
| (i >> bitlength-1) ^ (i << 1) | |
| with "i" being the number to be encoded, "^" being | |
| XOR-operation and ">>" would be arithemtic shifting-operation |
Let's solve the following physics problem using Symbolism, a computer algebra library for C#.
One strategy in a snowball fight is to throw a first snowball at a high angle over level ground. While your opponent is watching the first one, you throw a second one at a low angle and timed to arrive at your opponent before or at the same time as the first one.
Assume both snowballs are thrown with a speed of 25.0 m/s.
The first one is thrown at an angle of 70.0° with respect to the horizontal.
| -------------------------- | |
| -- CORE LIBRARY IMPORTS -- | |
| -------------------------- | |
| import Task exposing (Task, ThreadID, andThen, sequence, succeed, spawn) | |
| import Json.Decode exposing (Decoder, list, int, string, (:=), map, object2) | |
| import Signal exposing (Signal, Mailbox, mailbox, send) | |
| import List | |
| --------------------------------- | |
| -- THIRD PARTY LIBRARY IMPORTS -- |
| -------------------------- | |
| -- CORE LIBRARY IMPORTS -- | |
| -------------------------- | |
| import Json.Decode as Decode exposing (Decoder, object2, map, string, list, (:=)) | |
| import Task exposing (Task, andThen, succeed, fail, onError) | |
| import Signal exposing (Signal, Mailbox, mailbox, message, send) | |
| import String | |
| ------------------------- |
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
| CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
| RETURNS json | |
| IMMUTABLE | |
| LANGUAGE sql | |
| AS $$ | |
| SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
| FROM ( | |
| SELECT * FROM json_each(data) | |
| UNION ALL | |
| SELECT * FROM json_each(insert_data) |
| /* | |
| Author: https://github.com/gorhill | |
| Source: https://gist.github.com/gorhill/5285193 | |
| A Go function to render a number to a string based on | |
| the following user-specified criteria: | |
| * thousands separator | |
| * decimal separator |