One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
'use strict'; | |
const Comments = ({ data }) => { | |
let jsx = <span class={data.comments < 1 ? "is-hidden" : "comments"}> | |
<i class="far fa-comment-alt"></i> {data.comments < 0 ? "" : data.comments} | |
</span> | |
return (jsx); | |
} | |
const Labels = ({ labels }) => { |
from flask import Flask, jsonify, request | |
from flask_cors import CORS | |
import usaddress | |
app = Flask(__name__) | |
CORS(app) | |
def addressmaker(inputarr): | |
newarr = [] |
#!/bin/bash | |
# | |
# Script to convert MP4 video to GIF with generation of custom color palette. | |
# | |
#=== Do not touch code below | |
# Inner variables | |
input_file="" | |
input_fps="20" | |
input_height="512" |
const flatten = object => { | |
return Object.assign({}, ...function _flatten(objectBit, path = '') { //spread the result into our return object | |
return [].concat( //concat everything into one level | |
...Object.keys(objectBit).map( //iterate over object | |
key => typeof objectBit[key] === 'object' ? //check if there is a nested object | |
_flatten(objectBit[key], `${ path }.${ key }`) : //call itself if there is | |
({ | |
[`${ path }.${ key }`]: objectBit[key] | |
}) //append object with it’s path as key | |
) |
// make Promise version of fs.readFile() - enc is the encoding (i.e. utf-8) | |
fs.readFileAsync = function (filename, enc) { | |
return new Promise(function (resolve, reject) { | |
fs.readFile(filename, enc, function (err, data) { | |
if (err) reject(err); | |
else resolve(data); | |
}); | |
}); | |
}; |
#!/bin/bash -e | |
# This scripts installs jq if it is not installed: http://stedolan.github.io/jq/ | |
if ! command -v jq &> /dev/null | |
then | |
echo "jq could not be found... installing" | |
JQ=/usr/bin/jq | |
curl https://stedolan.github.io/jq/download/linux64/jq > $JQ && chmod +x $JQ | |
ls -la $JQ |
const camelCase2capsCase = (inputString) => { | |
return inputString.replace(/([A-Z])/g, ' $1').replace(/^./, function(str){ return str.toUpperCase(); }) | |
} | |
const dateBuiltLabel = camelCase2capsCase('dateBuilt'); | |
console.log(dateBuiltLabel) // 'Date Built' |
var viewer = new Cesium.Viewer('cesiumContainer', { | |
infoBox : false, | |
selectionIndicator : false | |
}); | |
var entity = viewer.entities.add({ | |
position : Cesium.Cartesian3.fromDegrees(-123, 44, 10), | |
model : { | |
uri : '../../../Specs/Data/Models/Box/CesiumBoxTest.gltf', | |
minimumPixelSize : 128 |
var express = require('express') | |
var app = express() | |
app.listen(1337) | |
app.all('/stream/:chunks', function (req, res, next) { | |
res.writeHead(200, { | |
'Content-Type': 'text/plain', |