Skip to content

Instantly share code, notes, and snippets.

View malexsan1's full-sized avatar
🚀

Alexandru Munteanu malexsan1

🚀
View GitHub Profile
var movieDatabase = {
movie: [
{ id: 1, name: 'Avatar', directorID: 1 },
{ id: 2, name: 'Titanic', directorID: 1 },
{ id: 3, name: 'Infamous', directorID: 2 },
{ id: 4, name: 'Skyfall', directorID: 3 },
{ id: 5, name: 'Aliens', directorID: 1 },
],
actor: [
{ id: 1, name: 'Leonardo DiCaprio' },
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
autoload -Uz compinit && compinit
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="🚀 "
# Left Prompt
{
"javascript.validate.enable": false,
"editor.fontFamily": "Operator Mono",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.fontSize": 16,
"editor.lineHeight": 21,
"editor.quickSuggestions": {
"other": true,
"comments": false,
@malexsan1
malexsan1 / persistCacheBusting.js
Created April 30, 2017 06:44
Redux Persist cache busting
import { AsyncStorage } from 'react-native'
const reducerVersion ='1' //manually change the reducer version to cache bust
const config = {
storage: AsyncStorage
}
const updateReducers = (store) => {
const startup = () => console.log('Do something after local storage has been updated.')
@malexsan1
malexsan1 / CreateStore.js
Created April 30, 2017 06:36
Create Redux store with Saga and Loggers
import logger from 'redux-logger'
import createSagaMiddleware from 'redux-saga'
import { autoRehydrate } from 'redux-persist'
import { createStore, applyMiddleware, compose } from 'redux'
import RehydrationServices from '../'
// creates the store
export default (rootReducer, rootSaga) => {
/* ------------- Redux Configuration ------------- */