I hereby claim:
- I am transducer on github.
- I am rooijakkers (https://keybase.io/rooijakkers) on keybase.
- I have a public key ASBM_GU82-WHFpLXv49SSMKaKFbhSkoAgEMEnkT4RuNw6wo
To claim this, I am signing this object:
[ArgumentNullException: Value cannot be null. | |
Parameter name: data] | |
Microsoft.Web.WebPages.OAuth.OAuthWebSecurity.TryDeserializeProviderUserId(String data, String& providerName, String& providerUserId) +68 | |
[project].Controllers.AccountController.ExternalLoginConfirmation(RegisterExternalLoginModel model, String returnUrl) in c:\Users\[username]\Documents\Visual Studio 2012\Projects\[project]-trunk(1)\[project]\Controllers\AccountController.cs:314 | |
lambda_method(Closure , ControllerBase , Object[] ) +147 | |
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14 | |
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +211 | |
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27 | |
System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28 | |
System.Web.Mvc.Async.<>c__Di |
(ns evalapply.evaluator) | |
;; Have to declare all defined stuff below on top (except eval and | |
;; apply. | |
(declare self-evaluating? variable? lookup-variable-value quoted? | |
assignment? definition? if? lambda? make-procedure begin? | |
cond? application? text-of-quotation eval-assignment | |
eval-definition eval-if eval-sequence lambda-parameters | |
lambda-body val-sequence cond->if list-of-values | |
operator operands begin-actions no-operands? first-operand |
(defn modify-keys [f m] (zipmap (map f (keys m)) (vals m))) | |
(defn prefix-with-ns [coll] | |
(modify-keys | |
#(keyword (str "spec.core/" (clojure.string/replace (str %) ":" ""))) | |
coll)) | |
(def my-json (prefix-with-ns (json/read-json "{\"yes\": \"yes\"}" ))) ; => {:yes "yes"} |
I hereby claim:
To claim this, I am signing this object:
;; # Hi! | |
;; This environment is called Maria. We're going to learn to program with Maria. 😃 Don't worry if anything's new or confusing at first. We'll explain everything as we go. | |
;; First, let's ask the computer some questions. We'll ask our questions in a programming language called Clojure. Here we go! | |
;; Put your cursor at the end of the following code block with `(circle 25)` and press `Control-Enter` (`Command-Enter` on Mac): | |
(circle 25) |
/** | |
* Creates the devices aggregate from the MAM event stream. | |
* @function toDevices | |
* @param {array} messages JSON messages from an MAM event stream | |
* @returns {array} Array of devices (device is object with address and type) | |
*/ | |
function toDevices(messages) { | |
const devicesSet = messages.reduce((devices, { type, device }) => { | |
switch (type) { | |
case DEVICE_ADDED_TYPE: |
/** | |
* Starts serial port reader. Retries via {@link tryInitP1} when port is | |
* disconnected or on error. | |
* | |
* @function tryInitP1 | |
* @param {function} messageHandler What to do with the message | |
* @returns {undefined} | |
*/ | |
function initP1(messageHandler) { | |
logger.info(`Initializing P1 reader on serial port ${RASPBERRY_PI_USB_PORT}`); |
/** | |
* Attach an MAM message. | |
* @function attach | |
* @param {JSON} packet JSON packet to attach. | |
* @returns {Promise} Containing the root or error | |
*/ | |
async attach(packet) { | |
this.logger.info(`Attaching packet ${util.inspect(packet)} to the Tangle`); | |
const trytes = iota.api.toTrytes(JSON.stringify(packet)); |
/** | |
* Retrieves and processes MAM messages by dispatching the type of message to | |
* its handler. | |
* | |
* @function processMamMessage | |
* @returns {undefined} | |
*/ | |
async processMamMessage() { | |
const IS_PAIRED = (typeof this.root !== 'undefined'); | |
if (!IS_PAIRED) { |
/** | |
* Process MAM message for added authorization. | |
* @param message {Object} MAM message of type {@link AUTHORIZED_TYPE}. | |
* @returns {undefined} | |
*/ | |
processAuthorizedMessage(message) { | |
const { serviceProvider } = message.policy; | |
logger.info(`Authorizing service provider ${JSON.stringify(serviceProvider)}`); | |
this.authorizedServiceProviders.add(serviceProvider); | |
this.sendMamData(this.seed, serviceProvider.iotaAddress, serviceProvider.publicKeyTrytes); |