$ docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const districts = [ | |
| { code: 10101, p: 'San José', c: 'San José', d: 'Carmen' }, | |
| { code: 10102, p: 'San José', c: 'San José', d: 'Merced' }, | |
| { code: 10103, p: 'San José', c: 'San José', d: 'Hospital' }, | |
| { code: 10104, p: 'San José', c: 'San José', d: 'Catedral' }, | |
| { code: 10105, p: 'San José', c: 'San José', d: 'Zapote' }, | |
| { code: 10106, p: 'San José', c: 'San José', d: 'San Francisco de Dos Ríos' }, | |
| { code: 10107, p: 'San José', c: 'San José', d: 'Uruca' }, | |
| { code: 10108, p: 'San José', c: 'San José', d: 'Mata Redonda' }, | |
| { code: 10109, p: 'San José', c: 'San José', d: 'Pavas' }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { Text, View } from 'react-native' | |
| import i18n from 'lib/i18n | |
| const name = 'Norman Ramirez' | |
| export default () => ( | |
| <View> | |
| <Text>{i18n`Hi how are you ${name}`}</Text> | |
| <Text>{i18n`I am fine`}</Text> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use: var tree = new OST(); tree.select(4); tree.insert(key,value) | |
| var OST = function () { | |
| // Order statistic tree node | |
| var Node = function (leftChild, key, value, rightChild, parent) { | |
| return { | |
| leftChild: (typeof leftChild === "undefined") ? null : | |
| leftChild, | |
| key: (typeof key === "undefined") ? null : key, | |
| value: (typeof value === "undefined") ? null : value, | |
| rightChild: (typeof rightChild === "undefined") ? null : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.ext = function () { | |
| var extTypes = { | |
| "3gp" : "video/3gpp" | |
| , "a" : "application/octet-stream" | |
| , "ai" : "application/postscript" | |
| , "aif" : "audio/x-aiff" | |
| , "aiff" : "audio/x-aiff" | |
| , "asc" : "application/pgp-signature" | |
| , "asf" : "video/x-ms-asf" | |
| , "asm" : "text/x-asm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { observable, extendObservable } from 'mobx' | |
| import * as storage from '../../utils/local-storage' | |
| import config from '../../config' | |
| import * as api from './api' | |
| const defaults = { | |
| sub: null, | |
| email: null, | |
| mail_verified: null | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { toJS, action, observable, extendObservable } from 'mobx' | |
| import { setToken, unsetToken } from 'lib/api' | |
| import * as storage from 'lib/localstorage' | |
| import * as tokenStorage from 'lib/token' | |
| import { omit } from 'lib/utils' | |
| import sleep from 'lib/sleep' | |
| import * as api from 'user/api' | |
| let store = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const mongoose = require('mongoose') | |
| const { Types, Schema } = mongoose | |
| // Connect to mongo | |
| mongoose.connect('mongodb://localhost/bulk'); | |
| // Set model schema | |
| const ArticleSchema = new Schema({ | |
| title: { | |
| type: String, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Takes a deeply nested object, `source`, and returns an object with | |
| * dot-separated paths pointing to all primitive values from `source`. | |
| */ | |
| const keys = Object.keys | |
| const isArray = Array.isArray | |
| function flatten(source) { | |
| let total = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <select ref:select on:change="doChange(event)"> | |
| <option value="{{item.key}}">{{item.title}}</option> | |
| <option value="two">Two</option> | |
| <option value="three">Three</option> | |
| </select> | |
| <div>Selected Value: {{value}}</div> | |
| <script> | |
| export default { |
NewerOlder