Skip to content

Instantly share code, notes, and snippets.

@dmitryn
dmitryn / inject-sub-cofx.cljs
Last active March 15, 2021 14:14
inject-sub-cofx deref issue
(ns inject-sub-cofx
(:require [re-frame.core :refer [reg-sub subscribe]))
(reg-sub :bar
(fn [db]
(count db)))
(reg-sub :foo
(fn [_]

Keybase proof

I hereby claim:

  • I am dmitryn on github.
  • I am dmitryn (https://keybase.io/dmitryn) on keybase.
  • I have a public key whose fingerprint is 87B1 8B78 82F8 F273 ECB1 C289 43D1 DAF5 AD39 C927

To claim this, I am signing this object:

@dmitryn
dmitryn / setup.md
Last active April 10, 2018 17:21
re-frame-10x and React Native

https://github.com/status-im/re-frame-10x/tree/react-native-integration#react-native-setup

It's possible to use re-frame-10x via re-frisk-remote plugin https://github.com/flexsurfer/re-frisk-remote

To use re-frame-10x with React Native do the following:

  • Add goog.global.CLOSURE_UNCOMPILED_DEFINES = {"re_frame.trace.trace_enabled_QMARK_":true}; to figwheel-bridge.js We need to do this because :closure-defines doesn't work in RN. More info here: drapanjanas/re-natal#46
  • Have lein-re-frisk >0.5.5 re-frisk-remote >0.5.4 and re-frisk-sidecar >0.5.5 added to your project.clj Setup instructions here: https://github.com/flexsurfer/re-frisk-remote
043d14e121f7fe776b8212672df001e8290013d5bf906789bf63fb1c2a61df004dd1c4f91763262fec57c52b9e0772fcfc0f21dd2c6c4fa5fcae6805ca8f840b6c;mratsim

Keybase proof

I hereby claim:

  • I am dmitryn on github.
  • I am trybeee (https://keybase.io/trybeee) on keybase.
  • I have a public key whose fingerprint is 7ED7 D4ED 5582 1E40 8307 763D 2676 74DC C866 28D9

To claim this, I am signing this object:

$ ./scripts/merge-pr.sh 3137
[ Reading PR info ]
PR does not allow 'edits from maintainers', so it will be kept open
[ Fetching PR ]
From github.com:status-im/status-react
* branch feature/fullscreen-browsing-experience-3005 -> FETCH_HEAD
* [new branch] feature/fullscreen-browsing-experience-3005 -> pr-3137/feature/fullscreen-browsing-experience-3005
From github.com:status-im/status-react
* branch develop -> FETCH_HEAD
Branch 'pr-3137' set up to track remote branch 'feature/fullscreen-browsing-experience-3005' from 'pr-3137'.
@dmitryn
dmitryn / cmd.sh
Created November 21, 2017 08:23
Install jar to local maven repo
lein uberjar
mvn install:install-file -Dfile=target/app.jar -DgroupId=com.app -DartifactId=app -Dversion=0.0.1 -Dpackaging=jar -DgeneratePom=true
@dmitryn
dmitryn / 0x_Tutorial_1.js
Created October 13, 2017 09:03 — forked from PhABC/0x_Tutorial_1.js
0x.js Tutorial on how to create, validate and fill an order
const Web3 = require('web3');
const ZeroEx = require('0x.js').ZeroEx;
const BigNumber = require('bignumber.js');
// Default provider for TestRPC
const provider = new Web3.providers.HttpProvider('http://localhost:8545')
// Calling constructor
const zeroEx = new ZeroEx(provider);
0x1a762C93219C640E484A4Aad3342403B0F2158d4
0x003d49C6Fcdc766C7Ad2C75d2242F709bc2431Ba