Versions
- Bootstrap 4 Alpha 6
- Phoenix 1.2.1
Instructions
-
Install npm packages
npm install --save-dev sass-brunch
| // Function form the react-native-image-picker library | |
| ImagePicker.showImagePicker({ title: 'Select Image' }, (response) => { | |
| // format the image data | |
| const image = { | |
| uri: response.uri, | |
| type: 'image/jpeg', | |
| name: 'myImage' + '-' + Date.now() + '.jpg' | |
| } | |
| // Instantiate a FormData() object | |
| const imgBody = new FormData(); |
| # Official framework image. Look for the different tagged releases at: | |
| # https://hub.docker.com/r/library/node/tags/ | |
| image: node:6 | |
| before_script: | |
| - npm install | |
| # This folder is cached between builds | |
| # http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
| cache: |
| $ code --list-extensions | |
| abusaidm.html-snippets | |
| ajhyndman.jslint | |
| alefragnani.Bookmarks | |
| alefragnani.project-manager | |
| christian-kohler.npm-intellisense | |
| christian-kohler.path-intellisense | |
| mlewand.ck4-test-mate | |
| cmstead.jsrefactor |
| // Add a 401 response interceptor | |
| window.axios.interceptors.response.use(function (response) { | |
| return response; | |
| }, function (error) { | |
| if (401 === error.response.status) { | |
| swal({ | |
| title: "Session Expired", | |
| text: "Your session has expired. Would you like to be redirected to the login page?", | |
| type: "warning", | |
| showCancelButton: true, |
Versions
Instructions
Install npm packages
npm install --save-dev sass-brunch
| // @flow | |
| import React, { Component } from 'react'; | |
| import { | |
| VirtualizedList, | |
| View, | |
| ScrollView, | |
| StyleSheet, | |
| // $FlowFixMe | |
| findNodeHandle, |
| /* globals localStorage */ | |
| import { onSnapshot, applySnapshot } from 'mobx-state-tree'; | |
| import Storage from './storage'; | |
| export const persist = (name, store, options, schema = {}) => { | |
| let hydrated = false; | |
| let storage = options.storage; | |
| if (typeof localStorage !== 'undefined' && localStorage === storage) { |
| set autoindent | |
| set autoread " Make Vim automatically open changed files | |
| set background=dark | |
| " set cinoptions=:0,(s,u0,U1 | |
| set clipboard=unnamed | |
| set colorcolumn=120 | |
| set columns=130 | |
| set copyindent | |
| set cursorline | |
| set directory^=$HOME/.vim/swp// |
| package main | |
| import ( | |
| "crypto/rand" | |
| "encoding/base64" | |
| "fmt" | |
| "io" | |
| "math/big" | |
| ) |