Skip to content

Instantly share code, notes, and snippets.

Francesco Sardo frankiesardo

  • London
Block or report user

Report or block frankiesardo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View core.cljs
(ns example.core
(:require [react.helper :refer-macros [defc]]
[goog.object :as obj]))
(extend-type object
View helper.cljc
(ns react.helper
#?(:cljs (:require [cljsjs.react]
(defn- react-factory [display-name render]
#js {:displayName display-name
View SwitchRouter.js
import invariant from '../utils/invariant';
import getScreenForRouteName from './getScreenForRouteName';
import createConfigGetter from './createConfigGetter';
import NavigationActions from '../NavigationActions';
import validateRouteConfigMap from './validateRouteConfigMap';
const defaultActionCreators = (route, navStateKey) => ({});
function childrenUpdateWithoutSwitchingIndex(actionType) {
frankiesardo /
Last active Jul 11, 2018
Clojure server one liner
clojure -Sdeps '{:deps {http-kit {:mvn/version "2.2.0"}}}' -e '(use (quote org.httpkit.server)) (run-server (constantly {:status 200}) {:port 8080})'
View bare-react.cljs
(ns bare-react
(:require [goog.object :as gobj]))
(defn make-component
([display-name m] (make-component display-name nil m))
([display-name construct m]
(let [cmp (fn [props context updater]
(this-as this
(js/ this props context updater)
(when construct
View README.adoc

AsciiDoc Writer’s Guide

Table of Contents

Header 1

Header 2

View batching.clj
(defn batch [in out max-time max-count]
(let [lim-1 (dec max-count)]
(async/go-loop [buf [] t (async/timeout max-time)]
(let [[v p] (async/alts! [in t])]
(= p t)
(async/>! out buf)
(recur [] (async/timeout max-time)))
View privacy.html
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Privacy Policy</title> <style>body{font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding:1em;}</style></head> <body><h2>Privacy Policy</h2> <p> Cheapside built the Cheapside Privilege App app as a Free app. This SERVICE is provided by Cheapside at no cost and is intended for use as is.
</p> <p>This page is used to inform website visitors regarding our policies with the collection, use, and
disclosure of Personal Information if anyone decided to use our Service.
</p> <p>If you choose to use our Service, then you agree to the collection and use of information in relation
to this policy. The Personal Information that we collect is used for providing and improving the
Service. We will not use or share your information with anyone except as described
in this Privacy Policy.

Title: Writing ClojureScript native apps is easy
Subtitle: If you know how to do it
Share: twitter   Background: rubik.jpg
Categories: clojurescript, react, react-native, mobile-apps
Author: Frankie Sardo   Colour: red
Access-Token: native
Published-Date: 2017-04-19T15:00.00Z

You can’t perform that action at this time.