Skip to content

Instantly share code, notes, and snippets.

View janmarsicek's full-sized avatar

Jan Marsicek janmarsicek

View GitHub Profile
@janmarsicek
janmarsicek / promises.re
Created December 16, 2018 21:56 — forked from lilactown/promises.re
Notes on using JavaScript Promises in ReasonML/BuckleScript
/**
* Making promises
*/
let okPromise = Js.Promise.make((~resolve, ~reject as _) => [@bs] resolve("ok"));
/* Simpler promise creation for static values */
Js.Promise.resolve("easy");
Js.Promise.reject(Invalid_argument("too easy"));
@janmarsicek
janmarsicek / index.ios.js
Last active September 8, 2016 07:31 — forked from Jpoliachik/index.ios.js
ReactNative LayoutAnimation Example
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
@janmarsicek
janmarsicek / tumblr-recent-posts.js
Created December 22, 2015 12:49 — forked from jarmo/tumblr-recent-posts.js
Tumblr Recent Posts Widget
/*
This widget shows Recent Posts on your Tumblr blog.
Its dependency is jQuery.
Usage:
1) Add html:
<div id="recent-posts"></div>
2) Add code into the <head>: