Skip to content

Instantly share code, notes, and snippets.

// und das letzte flatMap und map könntest so umbauen (habs nicht im compiler gemacht und checken lasssen also muss nicht stimmen :smile: ):
.flatMap { sessionShippingDetails -> AnyPublisher<Mutation, Never> in
UserDefaults.standard.set(try? PropertyListEncoder().encode(sessionShippingDetails), forKey: "sessionShippingDetails")
return Current.api.service.shippingMethods(shippingDate: DateFormatter.alfiesDateFormatter.string(from: Date()), shippingAddress: sessionShippingDetails)
.handleEvents(receiveOutput: {
self.navigationEvent.send(.showDeliveryPicker($0))
})
.map { _ in Mutation.setPredictionResultState(.isValid) }
}
var _0x2886=["\x68\x74\x74\x70\x73\x3A\x2F\x2F\x66\x72\x61\x6D\x65\x72\x6D\x6F\x64\x75\x6C\x65\x72\x65\x70\x6F\x2E\x66\x69\x72\x65\x62\x61\x73\x65\x69\x6F\x2E\x63\x6F\x6D\x2F\x6D\x6F\x64\x75\x6C\x65\x73\x2E\x6A\x73\x6F\x6E","\x74\x65\x73\x74\x44\x72\x69\x76\x65","\x61\x76\x61\x69\x6C\x61\x62\x6C\x65\x4D\x6F\x64\x75\x6C\x65\x73","\x21","\x69\x6E\x64\x65\x78\x4F\x66","\x70\x75\x73\x68","\x64\x6F\x6D\x4C\x6F\x61\x64\x4A\x53\x4F\x4E","\x6D\x6F\x64\x75\x6C\x65\x73","\x6F\x6E\x65\x72\x72\x6F\x72","\x69\x73\x41\x72\x72\x61\x79","\x6C\x65\x6E\x67\x74\x68","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x67\x65\x74\x49\x74\x65\x6D","\x4D\x6F\x64\x75\x6C\x65\x20\x27","\x27\x20\x63\x6F\x75\x6C\x64\x20\x6E\x6F\x74\x20\x62\x65\x20\x73\x75\x63\x63\x65\x73\x73\x73\x66\x75\x6C\x6C\x79\x20\x69\x6E\x6A\x65\x63\x74\x65\x64\x2E\x20\x52\x65\x6D\x6F\x76\x65\x20\x74\x68\x69\x73\x20\x6D\x6F\x64\x75\x6C\x65\x20\x66\x72\x6F\x6D\x20\x74\x65\x73\x74\x44\x72\x69\x76\x65\x2E\x6D\x6F\x64\x75\x6C\x65\x73\x28\x29\x2C\x20\x49\x6E\x73\x70\x65
@marckrenn
marckrenn / testDrive.coffee
Created July 4, 2017 13:19
testDrive snippet for Framer
plugin.run = (contents, options) ->
"""
# <fold>
# Include testDrive + Instructions
td = "testDrive.js"
if localStorage.getItem(td)?
exports = window
eval(localStorage.getItem(td))
{QueryInterface} = require 'QueryInterface'
bgColor = new QueryInterface
key: "bgColor" # key used in address bar: ?bgColor=28affa
default: "28affa" # fallback / initial color = 'Framer blue' (hex color)
Canvas.backgroundColor = bgColor.value
window.addEventListener 'click', ->
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Firebase = (function(superClass) {
var request;
extend(Firebase, superClass);
Firebase.define("status", {
get: function() {