I hereby claim:
- I am flipjs on github.
- I am flipjs (https://keybase.io/flipjs) on keybase.
- I have a public key whose fingerprint is 8B91 5D62 53C1 CC43 83A0 3FFC E919 EE6A 0E35 4F95
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))
let
(a,b,c) = myTuple
import React from 'react' | |
import { observer } from 'mobx-react' | |
import store from '../store' | |
function UserList (props) { | |
const {users} = props.store | |
return ( | |
<ul> | |
{users.map(user => <li key={user.id}>{user.name}</li>)} | |
</ul> |
// Reducer Actions | |
import keyMirror from 'key-mirror' | |
export const MESSAGES = keyMirror({ | |
GET_ALL_ADVISORIES_REQUESTED: null, | |
GET_ALL_ADVISORIES_RESOLVED: null, | |
GET_ALL_ADVISORIES_REJECTED: null | |
}) |
// Concatenates all the elements of a string array, using the specified separator between each element. | |
function strJoin (...args) { | |
const [delimiter, ...strings] = args | |
if (!delimiter || !strings.length) { | |
throw new Error('Invalid number of arguments.') | |
} | |
if (Array.isArray(...strings)) { | |
const [arr] = strings | |
if (!arr.length) { |
function* displayer() { | |
const MaxToasts = 3; | |
const ToastDisplayTime = 4000; | |
let pendingToasts = []; | |
let activeToasts = []; |
var data = [ | |
{ | |
id: 1, | |
name: 'felipe', | |
job: 'developer', | |
comment: 'hello world' | |
}, | |
{ | |
id: 2, | |
name: 'felipe', |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import {createStore, combineReducers, applyMiddleware} from 'redux' | |
// we need the thunk to delay the evaluation in async functions | |
import thunk from 'redux-thunk' | |
// Action Creators | |
// synchronous | |
const setName = name => ({ |
" tmux will only forward escape sequences to the terminal if surrounded by a DCS sequence | |
" http://sourceforge.net/mailarchive/forum.php?thread_name=AANLkTinkbdoZ8eNR1X2UobLTeww1jFrvfJxTMfKSq-L%2B%40mail.gmail.com&forum_name=tmux-users | |
if exists('$TMUX') | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
else | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
endif |