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
var app = angular.module("showGeometry", []); | |
app.config([function() { | |
}]); | |
app.run(function($rootScope) { | |
}); | |
app.controller("mapController", ['$scope', function($scope) { |
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
alias load-env='export $(cat .env | xargs)' | |
alias load-env-test='export $(cat .env.test | xargs)' |
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
[ | |
'{{repeat(10)}}', | |
{ | |
active: '{{bool()}}', | |
company: '{{company().toUpperCase()}}', | |
email: '{{email()}}', | |
address: '{{street()}}, {{integer(100, 999)}} - {{city()}} - {{state()}}, {{integer(10000, 19000)}}-{{integer(100, 999)}}', | |
latitude: '{{floating(-22.000001, -23)}}', | |
longitude: '{{floating(-47.000001, -48)}}', | |
tags: [ |
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, { Component } from 'react'; | |
import { View, Text } from 'react-native'; | |
import { Button } from 'react-native'; | |
class GeolocationExample extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
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 os | |
import shutil | |
from distutils import dir_util | |
class DirAlreadyExists(Exception): | |
pass | |
class FileAlreadyExists(Exception): | |
pass |
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
PUT movies | |
{ | |
"mappings": { | |
"_doc": { | |
"properties": { | |
"title" : { "type" : "text" }, | |
"year": {"type" : "integer"}, | |
"director": {"type": "text"}, | |
"stars": {"type": "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
{ | |
"mappings": { | |
"_doc": { | |
"properties": { | |
# all my fields here | |
} | |
} | |
} | |
} |
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
PUT movies/_mapping/_doc | |
{ | |
"properties": { | |
"genres": { | |
"type": "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
PUT movies | |
{ | |
"mappings": { | |
"_doc": { | |
"properties": { | |
"genres" : { "type" : "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
{ | |
"error": { | |
"root_cause": [ | |
{ | |
"type": "resource_already_exists_exception", | |
"reason": "index [movies/rVw9qS4eS5iTOf5Zc2soZA] already exists", | |
"index_uuid": "rVw9qS4eS5iTOf5Zc2soZA", | |
"index": "movies" | |
} | |
], |