Skip to content

Instantly share code, notes, and snippets.

View yenda's full-sized avatar
💭
When the Facts Change, I Change My Mind. What Do You Do, Sir?

Eric Dvorsak yenda

💭
When the Facts Change, I Change My Mind. What Do You Do, Sir?
View GitHub Profile
(tests
"Based on ISO 8601 week date in Berlin Timezone, week starts at the
correct instant"
(tests
"in the first week"
(get-week-start 1 1978) := "1978-01-02T00:00:00+01:00"
(get-week-start 1 1979) := "1979-01-01T00:00:00+01:00"
(get-week-start 1 1980) := "1979-12-31T00:00:00+01:00"
(get-week-start 1 1981) := "1980-12-29T00:00:00+01:00")
(tests
@yenda
yenda / mobserve.cljc
Created April 17, 2024 12:18 — forked from awwx/mobserve.cljc
observe Missionary task and flow events
(ns mobserve
(:require
[missionary.core :as m]))
;; Encapsulate differences between Clojure and ClojureScript
;; on how IFn and IDeref are implemented.
#?(:clj
(deftype FlowIterator [transfer cancel]
clojure.lang.IDeref
09-24 12:36:44.941 12495 12602 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.view.ReactViewManager
09-24 12:36:44.943 12495 12602 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.viewpager.ReactViewPagerManager
09-24 12:36:44.944 12495 12602 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextViewManager
09-24 12:36:44.944 12495 12602 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.facebook.react.views.text.ReactVirtualTextShadowNode
09-24 12:36:44.946 12495 12602 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.brentvatne.exoplayer.ReactExoplayerViewManager
09-24 12:36:44.947 12495 12602 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class co.apptailor.googlesignin.RNGoogleSigninButtonViewManager
09-24 12:36:44.948 12495 12602
09-24 12:21:21.407 9993 10493 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackViewManager
09-24 12:21:21.407 9993 10493 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderConfigViewManager
09-24 12:21:21.408 9993 10493 W unknown:ViewManagerPropertyUpdater: Could not find generated setter for class com.swmansion.rnscreens.ScreenStackHeaderSubviewManager
09-24 12:21:21.410 9993 10493 D Auth : instance-initialized
09-24 12:21:21.596 9993 10492 I ReactNativeJNI: received didPause for reason: 0 in state: RunningDetached
09-24 12:21:21.626 9993 9993 D ReactNative: ReactInstanceManager.createReactContextInBackground()
09-24 12:21:21.626 9993 9993 D ReactNative: ReactInstanceManager.attachRootViewToInstance()
09-24 12:21:21.683 747 10499 E ResolverController: No valid NAT64 prefix (456, <unspecified>/0)
09-24 12:21:22.005 9993 10492 I ReactNativeJS: 'loading', 'goog.d
05-27 14:39:51.398 4190 4190 D NfcService: Skipping NDEF detection in reader mode
05-27 14:39:51.399 4190 15212 D NativeNfcTag: Starting background presence check
05-27 14:39:51.400 1403 3939 D VibratorService: vibrate from 'com.android.nfc', usageHint = 0
05-27 14:39:51.416 866 866 E : Vibrator on|info:20000002
05-27 14:39:51.418 4190 4190 W NfcService: Not playing sound when device SilentMode
05-27 14:39:51.420 4190 5292 D NativeNfcTag: Connect to a tech with a different handle
05-27 14:39:51.464 14971 15129 I NFCCardManager: tag connected
05-27 14:39:51.482 14971 15102 D ReactNativeJS: DEBUG [status-im.utils.handlers:44] - Handling re-frame event: :hardwallet.callback/on-card-connected
05-27 14:39:51.485 14971 15102 D ReactNativeJS: DEBUG [status-im.hardwallet.core:515] - [hardwallet] card globally connected
05-27 14:39:51.488 14971 15102 D ReactNativeJS: DEBUG [status-im.utils.handlers:44] - Handling re-frame event: :status-im.hardwallet.common/on-card-connected
(function(){
var shadow$provide = {};
var SHADOW_IMPORT_PATH = "/home/yenda/status-react/target/test/cljs-runtime";
if (__dirname == '.') { SHADOW_IMPORT_PATH = "/home/yenda/status-react/target/test/cljs-runtime"; }
global.$CLJS = global;
global.shadow$provide = {};
try {require('source-map-support').install();} catch (e) {console.warn('no "source-map-support" (run "npm install source-map-support --save-dev" to get it)');}
global.CLOSURE_NO_DEPS = true;
#!/usr/bin/env node
(function(){
var shadow$provide = {};
var SHADOW_IMPORT_PATH = __dirname + '/cljs-runtime';
if (__dirname == '.') { SHADOW_IMPORT_PATH = "/home/yenda/status-react/target/test/cljs-runtime"; }
global.$CLJS = global;
global.shadow$provide = {};
try {require('source-map-support').install();} catch (e) {console.warn('no "source-map-support" (run "npm install source-map-support --save-dev" to get it)');}
(ns day3-2
(:require [clojure.set :as clojure.set]))
(defn clean-input
[input]
(map (fn [move]
[(first move) (Integer/parseInt (subs move 1))])
(clojure.string/split input #",")))
(defn clean-inputs
yenda@desktop:~/status-react$ make startdev-android-real
make[1]: Entering directory '/home/yenda/status-react'
clj -R:dev build.clj watch --platform android --android-device real
Configuring default Nix shell for target 'android'...
these derivations will be built:
/nix/store/rm9sla50m5za099jgnwnwk2v5liqxp10-offline.drv
/nix/store/vwhnn64ki1by5czynirmjv7zd542l7sb-StatusIm-Mobile-0.0.1.drv
/nix/store/f0mm64p4y9ixx5r28vmjnn0yv27mkcry-status-react-patched-npm-gradle-modules.drv
these paths will be fetched (0.00 MiB download, 57.51 MiB unpacked):
/nix/store/4jyvmlfqkairdbrwfmhbld3mjfxd2mhc-status-go-v0.34.0-beta.8-9d7c570-android
10-23 10:52:27.568 17326 17424 D StatusModule: ********************** NODE CONFIG ****************************
10-23 10:52:27.568 17326 17424 D StatusModule: Node config:{"ClusterConfig":{"Enabled":true,"Fleet":"eth.beta","BootNodes":["enode:\/\/436cc6f674928fdc9a9f7990f2944002b685d1c37f025c1be425185b5b1f0900feaf1ccc2a6130268f9901be4a7d252f37302c8335a2c1a62736e9232691cc3a@174.138.105.243:443","enode:\/\/e8a7c03b58911e98bbd66accb2a55d57683f35b23bf9dfca89e5e244eb5cc3f25018b4112db507faca34fb69ffb44b362f79eda97a669a8df29c72e654416784@47.91.224.35:443","enode:\/\/7427dfe38bd4cf7c58bb96417806fab25782ec3e6046a8053370022cbaa281536e8d64ecd1b02e1f8f72768e295d06258ba43d88304db068e6f2417ae8bcb9a6@104.154.88.123:443","enode:\/\/43947863cfa5aad1178f482ac35a8ebb9116cded1c23f7f9af1a47badfc1ee7f0dd9ec0543417cc347225a6e47e46c6873f647559e43434596c54e17a4d3a1e4@47.52.74.140:443"],"TrustedMailServers":["enode:\/\/7de99e4cb1b3523bd26ca212369540646607c721ad4f3e5c821ed9148150ce6ce2e72631723002210fac1fd52dfa8bbdf3555e05379af79515e117