npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
React Native is great product but lacks for stable, intuitive and easy navigation API during many years. Every year we see new, better API: Native Navigator, ex-Navigator, NavigationExperimental, ex-Navigation, wix native navigation, airbnb native navigation, ReactNavigation...
Once I've started React Native development, in 2015, I created RNRF - simple API for easy navigation. It was clear that better navigation instruments will come later but I didn't want to change my code again and again to switch for better API. Every new major version of RNRF is based on different navigation framework and mostly preserves own API.
Another goal was to represent all navigation flow within one place in clear, human-readable way - similar to iOS Storyboards concept. This way other engineers could understand your app flow faster.
import React from 'react' | |
import { connect } from 'react-redux' | |
import { redirect as redirectAction } from 'src/redux/auth/action'; | |
class Index extends React.Component { | |
static propTypes = { | |
redirect: React.PropTypes.func.isRequired, | |
}; |
pkg_url <- "http://cran.r-project.org/bin/macosx/mavericks/contrib/3.1/Rserve_1.7-3.tgz" | |
install.packages(pkg_url, repos = NULL) | |
library(Rserve) | |
Rserve(args="--vanilla") |
function SomeConstructor (request, npm, monk) { | |
// do something with the injected node modules | |
} | |
var instance = require('./injector')(SomeConstructor) // create a new instance with dependencies injected |
// Make it Nasty | |
function increment (i) { | |
i ^= (i & ~-~i) | (~i & -~i) | |
return i | |
} |
Function.prototype.method = function (name, func) { | |
this.prototype[name] = func; | |
return this; | |
} | |
var getParamNames = function (func) { | |
var funStr = func.toString() | |
return funStr.slice(funStr.indexOf('(')+1, funStr.indexOf(')')).match(/([^\s,]+)/g) | |
} |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.