text stringlengths 7 3.69M |
|---|
module.exports = {
"content": [{
"id": "5ebb8b347b8a7c11150e6eb2",
"image": "https://i1-giaitri.vnecdn.net/2020/05/24/Avatar-1590294287-1673-1590294326.jpg?w=300&h=180&q=100&dpr=2&fit=crop&s=99dGoZVO67kkTfMqnsHHwQ",
"internalTitle": "category 1",
"lastModified": "2020-05-07T04:09:43.243+0000",... |
let pessoa = {
nome: 'Rodrigo',
altura: 1.72,
peso: 85,
};
const { nome, altura, peso: weight } = pessoa;
console.log(weight);
let listaCompras = ['pão', 'leite', 'açúcar'];
const [item1, item2, item3] = listaCompras;
console.log(item2);
|
// @flow
export function removePrefix(property: ?string): ?string {
if (property == null) {
return null
}
return property.replace(/^-.*-/, "")
}
|
import React, { Component } from 'react';
import { message, Select } from 'antd';
import CommitteeHeader from './CommitteeHeader.jsx';
import RequirementsTable from './RequirementsTable.jsx';
import MembersTable from './MembersTable.jsx';
import axios from 'axios';
import SearchDropDown from '../common/SearchDropDown.j... |
import React from 'react'
const index = (props) => {
const progressError = props.progressError
const progressValue = props.progressValue
return (
<div className='getloader-default-progressBar'>
<div
className={`progress-value ${progressError}`}
style={{ width: `${progressValue}%` }}
... |
var request = require('request');
var initLon = null;
var initLat = null;
function deg2rad(deg) {
return deg * (Math.PI / 180);
}
function hypotenuseDistance(lat1, lon1, lat2, lon2) {
var R = 6371000; // Radius of the earth in m
var dLat = deg2rad(lat2 - lat1); // deg2rad below
var dLon = deg2rad(lon2 - lon1... |
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var levelData = (function () {
function levelData() {
//声明一个数组。用来保存关卡数据
this.items = [];
//加载所有数据
this.items = RES.... |
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (window.pageYOffset > 50 && window.innerWidth <= 875) {
document.getElementById("navbar").style.height = "50px";
document.getElementById("logo").style.height = "50px";
document.getElementById("header").style.backgroundColor =... |
// @flow weak
import React, { Component } from 'react';
import Radio from 'material-ui/Radio';
import { withStyles } from 'material-ui/styles';
import PropTypes from 'prop-types';
const styles = {
container: {
// maxWidth: 400,
// flexGrow: 1,
// position: 'absolute',
// bottom: '0',
// width: '... |
import Mock from 'mockjs';
const getTable = Mock.mock(location.origin + '/api/getTable.json', 'get', {
'listData': [
{
orderId: '61011727',
customerName: '小红',
placeOrder: '自主下单',
goodsName: '智能机器人',
price: '¥199',
placeOrderTime: '201... |
import {HtmlView} from "gml-html";
import template from './template.html';
import * as style from './style.scss';
export default async function ({ locale, system, thread }) {
const view = HtmlView(template, style, locale.get());
view.style();
rx.connect
.partial({
logged: () => system.... |
//@prepros-append jquery-3.4.1.js
//@prepros-append parallax.js
//@prepros-append parallax-conf.js |
var ShaderProgram = function ( vsSource, fsSource )
{
this.programID = gl.createProgram();
this.vertexShaderID = this.loadShader( gl.VERTEX_SHADER, vsSource );
this.fragmentShaderID = this.loadShader( gl.FRAGMENT_SHADER, fsSource );
gl.attachShader( this.programID, this.vertexShaderID );
gl.attachShader( thi... |
$('.shows').hide();
$('.UpdateForm').on('click',function(){
$('.shows').toggle();
}) |
import React from "react";
import Header from "../components/Post/SearchHeader";
import Results from "../components/Post/SearchResultsContainer";
export default class SearchPage extends React.Component {
render() {
return (
<div style={{ paddingBottom: "10em" }}>
<Header>
... |
describe('standard.echo.emit', () => {
test.todo('Envia uma mensagem com channel e message')
})
|
var BULLET, PLAYER, imageLoader, img, init;
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
PLAYER = 1;
BULLET = 2;
imageLoader = function() {};
img = [];
imageLoader.imageLoaded = function(name) {
img[name].loaded = true;
imageLoader.imagesLoaded += 1;
if (imageLoader.imag... |
import styled from "styled-components";
import Frame from "../components/Frame";
import axios from "axios";
import React, { useState } from 'react';
import cookies from 'next-cookies'
import { useRef } from 'react';
import {ChangePassword} from '../components/ChangePassword';
import {UpdateAddress} from '../components/... |
/*global module */
'use strict';
module.exports = {
name: '../ember-unified-select',
}; |
$(function() {
var key = getCookie('key');
if (!key) {
window.location.href = WapSiteUrl + '/tmpl/member_system/login.html';
return;
}
var change_passwd = 0;
$('#loginpasswdbtn').click(function() {
if (change_passwd) {
errorTipsShow("正在处理中,请勿重复点击!");
r... |
(function() {
'use strict';
/**
* @ngdoc function
* @name app.controller:xmodalCtrl
* @description
* # xmodalCtrl
* Controller of the app
*/
angular
.module('ngdirectives')
.controller('XmodalCtrl', Xmodal );
Xmodal.$inject = [];
/*
* recommend
* Using function declarations
* and bindable mem... |
export function invertColor(hex) {
let r = parseInt("0x" + hex.substr(1, 2))
let g = parseInt("0x" + hex.substr(3, 2))
let b = parseInt("0x" + hex.substr(5, 2))
let textColor = ((r * 299) + (g * 587) + (b * 114)) / 1000;
return textColor >= 128 ? "#000000" : "#FFFFFF"
}
export function hexT... |
require('./bootstrap');
// window.Vue = require('vue');
import Vue from 'vue';
import Vuetify from "vuetify";
import Vuelidate from 'vuelidate'
import LoteComponent from './components/LoteComponent.vue'
import MeusLotesComponent from './components/MeusLotesComponent.vue'
import LeilaoComponent from './components/Leil... |
import { SHOW_LIST, EXPORT_LIST, DELETE_DEVOPS, DELETE_ENGINEERING, UPDATE_DEVOPS, UPDATE_ENGINEERING} from '../constants/types'
export const showList = (updates) => {
return {
type: SHOW_LIST,
payload:updates
};
}
export const updateDevops = (devOps) => {
return {
type: UPDATE_D... |
import React from "react";
import { Text, View, FlatList, TouchableOpacity } from "react-native";
import Data from "../../common/data";
import Language from "../../common/lang";
import UTILS from "../../common/utils";
import NavigationService from "../../common/nav-service";
import Heading from "../elements/Heading";... |
console.log("Initialize module 2");
var module1 = require("./module1");
module.exports = {
module1: module1
};
console.log("End of module 2"); |
db_query_all_product(function(err, result) {
if (err) {
console.log("query All fail");
} else {
console.log("query All success");
console.log(result);
}
});
db_insert_product(my_db_data.product, function(err, result) {
if (err) {
console.log("insert fail");
} else {
console.log("insert ... |
var mongoose = require('mongoose')
var rutaSchema = new mongoose.Schema({
nombre:{
type: String,
require: true,
trim: true
},
descripcion:{
type: String,
require: true,
trim: true
},
tipoUser:{
type: String,
trim: true
}
})
/*****... |
/**
* Created by xiaojiu on 2017/2/9.
*/
define(['../../../app', '../../../services/storage/inventory-manage/collectDifferenceConfirmService'], function(app) {
var app = angular.module('app');
app.controller('collectDifferenceConfirmCtrl', ['$scope', '$state', '$stateParams', '$sce', 'collectDifferenceConfirm... |
function multiply (a, b) {
//TODO retun
};
|
import React from "react";
import PropTypes from "prop-types";
export const Customer = ({ name, onClick }) =>
<li onClick = {onClick}>
{name}
</li>;
Customer.propTypes = {
name: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired
}; |
module.exports = [{
fName: "Luke",
lName: "Skywalker",
isLiving: false,
amount: 4000,
type: "Jedi",
_id: "1"
}];
|
export const housesDataWrangler = housesArray =>
housesArray.map(house => ({
name: house.name,
founded: house.founded,
seats: house.seats.join(', '),
titles: house.titles,
coatOfArms: house.coatOfArms,
ancestralWeapons: house.ancestralWeapons.join(', '),
words: house.words,
swornMembe... |
module.exports = function(app) {
var User = require('../db/models/').User;
var Stylist = require('../db/models/').Stylist;
var Salons = require('../db/models/').Salons;
var skillsJobTypeStylists = require('../db/models/').skillsJobTypeStylists;
var skills = require('../db/models/').skills;
var jobTypeStylis... |
import React from 'react';
class Footer extends React.Component {
render() {
return (
<footer className=" mx-auto mt-5 page-footer font-small ">
<div className="footer-copyright text-center py-3">© 2019 Copyright:
<a className='a' href=""> RAZANAKINIAI... |
const e = require("express");
const caja = require("../../Models/Seguridad/cajas");
function guardarCaja(req, res) {
console.log('Endpoint para crear cajas ejecutado');
const newCaja = new caja();
const { codigo, fecha, descripcion, entrada, restaurante } = req.body;
newCaja.codigo = codigo;
newCa... |
import React from 'react';
import PropTypes from 'prop-types';
import { observable, computed, toJS } from 'mobx';
import { observer } from 'mobx-react';
import { withStyles } from '@material-ui/core/styles';
import Fuse from 'fuse.js';
import empty from 'is-empty';
import match from 'autosuggest-highlight/match';
impor... |
const objectToParams = payload => {
let str = '';
Object.keys(payload).map(key => {
if (str !== '') {
str += '&';
}
return (str += `${key}=${payload[key]}`);
});
return str;
};
export default objectToParams;
|
import React, { Fragment, Component } from 'react';
import PropTypes from 'prop-types';
import { Menu, Grid, Segment } from 'semantic-ui-react';
import styles from './Footer.scss';
import { NavLink } from 'react-router-dom';
class Footer extends Component {
constructor(props){
super(props)
this.state={active... |
function OnNetworkInstantiate(msg : NetworkMessageInfo) {
if(networkView.isMine)
{
var _NetworkRigidBody : NetworkRigidBody = GetComponent("NetworkRigidBody");
_NetworkRigidBody.enabled = false;
}
else
{
name += "Remote";
var _NetworkRigidBody2 : NetworkRigidBody = GetComponent("NetworkRigidBody");
_Net... |
const socketController = (socket) => {
console.log('Cliente conectado', socket.id );
socket.on('disconnect', () => {
console.log('Cliente desconectado', socket.id );
});
socket.on('enviar-mensaje', ( payload, callback ) => {
console.log('Mensaje Recibido',payload);
... |
;(function (){
'use strict';
app.Collections.Users = Backbone.Collection.extend({
model: app.Models.User,
url: 'http://tiyqpic.herokuapp.com/users'
});
}()); |
import React, { useEffect } from 'react';
import { HashLink as Link } from 'react-router-hash-link';
import classes from './Navbar.module.css';
import clockicon from '../../Assets/Images/Icons/clock.svg';
import phoneicon from '../../Assets/Images/Icons/phone.svg';
import phoneiconblack from '../../Assets/Images/Icons/... |
var db = require('../../../config/db.config');
db.registration.hasOne(db.candidatemodel,{foreignKey: 'user_id'});
db.candidatemodel.belongsTo(db.work, {foreignKey: 'user_id'});
db.work.belongsTo(db.education, {foreignKey: 'user_id'});
db.registration.hasMany(db.userquestionans, {foreignKey: 'user_id'});
db.registrat... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class GroupExpenseUpdate {
constructor(model) {
if (!model)
return;
this.userId = model.userId;
this.parent = model.parent;
this.code = model.code;
this.name = model.name;
if (mod... |
const mobile = 375;
const tablet = 768;
const laptop = 1024;
const wide = 1440;
module.exports = {
mobile,
tablet,
laptop,
wide,
customMedia: {
"--mobile": `(min-width: ${mobile}px)`,
"--tablet": `(min-width: ${tablet}px)`,
"--laptop": `(min-width: ${laptop}px)`,
"--wide": `(min-width: ${wide... |
import dbFactory from '../../dbFactory';
import { CATEGORY } from './../../../constant/Constant';
const getDbRef = collectionName => {
const db = dbFactory.create('firebase');
const ref = db.firestore().collection(collectionName);
return ref;
};
export const getCategoryFromDB = dispatch => {
const db = dbFact... |
import React from "react";
import { ReactComponent as Paw } from "../../paw-solid.svg";
function Header() {
return (
<>
<h1 className="text-center p-5 m-5 header">
<Paw className="m-2 paw" /> Survey Tiger
</h1>
</>
);
}
export default Header;
|
const { Layer, Network }= window.synaptic
const inputLayer = new Layer(1);
const hiddenLayer = new Layer(2);
const outputLayer = new Layer(3);
inputLayer.project(hiddenLayer);
hiddenLayer.project(outputLayer);
const myNetwork = new Network({
input: inputLayer, hiddenLayer,
hidden: [hiddenLayer],
o... |
var comments21;
if (window.localStorage.getItem("comment21")) {
comments21 = JSON.parse(window.localStorage.getItem("comment21"));
} else {
comments21 = [];
}
function storeComm21() {
var date = new Date().toLocaleString();
var singleComment... |
import {SAVED_STATE_MODE, RESTORING_STATE_MODE, STATE_RESTORE_MODE, SEARCH_TERM} from "./constants";
export const defaultFilters = {
sortingMethod: 'bestMatch',
newlyListed: false,
lowestPrice: false,
highestPrice: false,
highQuality: false,
shippingCountries: [],
taxonomies: [],
global... |
import ChainLongWeb3Provider from '../src'
import * as Web3 from 'web3'
describe('ChainLongWeb3Provider', () => {
test('create instance', () => {
const provider = new ChainLongWeb3Provider({
rpcUrl: 'wss://rinkeby.infura.io/ws'
})
expect(provider).toBeInstanceOf(ChainLongWeb3Provider)
expect(pr... |
$(document).ready(function(){
//be yt-nav
$(".yt-nav a").click(function(e) {
$(".yt-nav a").removeClass('active');
$(".yt-left-but").removeClass('minout');
$(this).addClass('active');
pos=$(".yt-nav a").index(this);
var sub2nav=new Array();
//alert(main_nav[pos]['children']);
if(main_nav[pos]['childre... |
import React, { useEffect, useState } from 'react';
import { FlatList, Alert } from 'react-native';
import Geolocation from 'react-native-geolocation-service';
import Styled from 'styled-components/native';
const Container = Styled.SafeAreaView`
flex: 1;
background-color: #EEE;
`;
const WeatherContainer = Sty... |
import React from 'react';
import { View, Text, ScrollView } from 'react-native';
import { colors } from '../../constants/theme';
const MyRecipes = (props) => {
return (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: colors.white,
... |
import aAmicoPower from './aAmicoPower'
export {
aAmicoPower
}
|
import { renderString } from '../../src/index';
describe(`return datetime of beginning of the day`, () => {
it('renders correct time', () => {
const html = renderString("{{ today() }}");
});
it('plusDays', () => {
const html = renderString("{{ today().plusDays(1) }}");
});
}); |
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const ArticleSchema = new Schema({
id: String,
slug: String,
title: String,
lang: String,
langCode: String,
converted: Boolean,
published: Boolean,
draft: Boolean,
editor: String,
version: String,
wikiSource: String, // The wiki ... |
function initDoomWadLevel(context) {
/**
* Constructor
*/
var Level = context.DoomWad.Level = function(info, directory, textures, name) {
var self = this;
// Level lump header (eg MAP01)
const levelLump = directory.lumpHeaderFor(name);
const header = levelLump.header;
const stream = lev... |
module.exports = function (app) {
var pagamento = app.controllers.pagamento;
app.route('/pagamento')
.get(pagamento.lista)
.post(pagamento.novo);
app.route('/pagamento/:id')
.get(pagamento.buscaPorId)
.put(pagamento.confirma)
.delete(pagamento.cancela);
}; |
//--------------------------------------------------;
// UTIL;
//--------------------------------------------------;
//-------------------------;
// PACKAGE;
//-------------------------;
window.service.render = {};
//-------------------------;
// FUNCTION;
//-------------------------;
/**
*
*/
... |
//头部组件
import React from "react";
import {Row,Col,Menu,Icon,Button,Modal,Tabs,Form,Input} from "antd";
import {Link} from "react-router";
import logo from "../images/logo.png"
const MenuItem = Menu.Item;
const TabPane = Tabs.TabPane;
const FormItem = Form.Item;
class NewsHeader extends React.Component{
construc... |
// var filterFn = require('./mymodule.js')
// var dir = process.argv[2]
// var filterStr = process.argv[3]
// filterFn(dir, filterStr, function (err, list) {
// if (err) {
// return console.error('There was an error:', err)
// }
// list.forEach(function (file) {
// console.log(file)
// })
// })
// ... |
$(document).ready(function(){
var idevent;
$(".report").click(function(){
idevent = $(this).val();
$("#dialogreportadv").empty();
/*$("#dialogreportadv").dialog('option', 'position', {
my: "left+20 top",
at: "left bottom",
of: ".report"
}); */
$("#dialogreportadv").dialog("open");
var ... |
$(function(){
$('.header-slider').slick({
arrows: false,
vertical: true,
dots: true,
dotsClass: 'header-dots',
autoplay:2000,
});
}); |
import React, { Component } from 'react';
import OfferCard from './OfferCard';
import '../../css/Offer/Offer.css';
import '../../css/Offer/Mobile.css';
class Offer extends Component {
constructor(props){
super(props);
this.state = {
offers: [
{
offer_... |
{
"version": 1480542008,
"fileList": [
"data.js",
"c2runtime.js",
"jquery-2.1.1.min.js",
"images/p1-sheet0.png",
"images/p2-sheet0.png",
"images/platform-sheet0.png",
"images/p1spawn-sheet0.png",
"images/p2spawn-sheet0.png",
"images/bullet-sheet0.png",
"images/ghost-sheet0.png",
"images/jumpthr... |
var botBuilder = require('claudia-bot-builder'),
fbTemplate = botBuilder.fbTemplate;
var format = text => (text && text.substring(0, 80));
var _ = require('lodash');
var location = require('./location');
var moment = require('moment');
var Promise = require('bluebird');
var doc = require('dynamodb-doc');
var dynamo... |
//Defines an Alert
//This is abstract
function Alert(id, p) {
this.id = id;
this.priority = p;
}
//Getters
Alert.prototype.getID = function() {
return this.id;
}
Alert.prototype.getPriority = function() {
return this.priority;
}
//Information about this error, should be overriden
Alert.prototype.toString =... |
import * as firebase from "firebase";
const User = {
id: "",
name: "",
email: "",
dataCriacao: (new Date().getTime())
}
export default class UserHelper{
static getUser(){
return new Promise(async (resolve,reject)=>{
const currentUser = firebase.auth().currentUser;
if(currentUser){
let sna... |
import React from 'react'
import { Layout } from '../components'
const AboutPage = () => (
<Layout title='About' description='$ whoami'>
<p>
Hi, my name is Iago Dahlem Lorensini, born in Porto Alegre/RS, with 21 years old, graduating in Computer Science at <a href="http://ulbra.br/canoas/" target="_blank" ... |
'use strict';
const assert = require('assert');
const path = require('path');
const sep = path.sep;
const pm = require('..');
const compare = (a, b) => {
a = a.toLowerCase();
b = b.toLowerCase();
return a > b ? 1 : a < b ? -1 : 0;
};
const match = (list, pattern, options = {}) => {
let isMatch = pm(pattern, ... |
'use strict';
module.exports = function (UploadedFile) {
//destroyAll
UploadedFile.aminoDestroyAll = function (cb) {
UploadedFile.destroyAll((err, info) => {
cb(err, info);
});
};
UploadedFile.remoteMethod('aminoDestroyAll', {
accepts: [],
returns: [
{
arg: 'info',
... |
// CREATE BUDGET
import React, {useState, useEffect} from 'react';
import {Link} from 'react-router-dom';
import {connect} from 'react-redux';
import {getCategory} from '../redux/reducer';
import axios from 'axios';
const CreateBudget = (props) => {
const[form, toggleForm] = useState(false);
const[name, setNa... |
import React, { Component } from "react";
import { Text, View, FlatList, StyleSheet, AppRegistry, Image, ActivityIndicator } from "react-native";
import { colors, metrics, fonts } from "../themes";
import Items from "../components/Item";
export default class Item extends Component {
constructor() {
super();
this... |
// Realizzare una todolist con Vue. La lista deve essere già popolata con alcuni elementi e si deve dare la possibilità di aggiungere nuovi item e di cancellarli.
// Bonus 1): permettere ai file cancellati di finire in un'area 'cestino' dove possono essere eliminati del tutto oppure ripristinati.
// Bonus 2): Dare la... |
'use strict';
describe('Accordion Combined Test',function(){
it('展开accordion并且能够点击combo下面的basic_select控件',function(){
browser.get("test/e2e/testee/accordion/web/combined.html");
browser.sleep(2000);
element(by.css(".combo .rdk-accordion-module .theme")).click();
var combo_input=... |
import React from "react"
import Layout from "../components/layout"
import RightFeature from "../components/rightFeature"
import LeftFeature from "../components/leftFeature"
import featureStyles from "./features.module.css"
import metricsScreen from "../assets/metrics_mock.png"
import overviewScreen from "../... |
/**
* Description: ie6 7 8 9 placeholder fixed
* Author: jiangfeng ([email protected])
* Update: 2013-05-24 16:45
*/
(function($){
if (!$ || !window.JEND) return;
JEND.namespace('JEND.placeholder');
JEND.placeholder.init = function(id, tagid){
alert(111);
};
})(jQuery); |
const os = require('os');
// console.log("CPU", os.cpus());
// console.log('IP address: ', os.networkInterfaces().en0.map(i => i.address));
// console.log(os.freemem());
// console.log(os.type());
// console.log('OS version', os.release());
console.log(os.userInfo()); |
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.command === "collectHTMLData") {
metaCSP = "";
document.querySelectorAll('meta').forEach(function(node) {
if (node.getAttribute('http-equiv') !== null &&
... |
import produce from 'immer'
export const INITIAL_STATE = {
counter: 0,
}
export default (state = INITIAL_STATE, action) =>
produce(state, draft => {
switch (action.type) {
case 'INCREMENT':
draft.counter += 1
break
case 'DECREMENT':
draft.counter -= 1
break
ca... |
$(document).ready(function() {
// config việc hiển thị message error
setValidationForInCareers($("#table4Sub3DataForm"));
// config cấu hình rule và message validate cho các item
setValidationForInputInCareers($("#table4Sub3DataForm"));
$(".changeAny").change(function() {
// Tổng số cuối ... |
app.factory('userFactory',['$http','env',($http,env)=>{
const getUser = () =>{
return $http({
url :env.SERVICE_URL+'/getUser',
method :'GET'
}).then((result) => {
return result.data;
}).catch((err) => {
console.log(err);
});
};
... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsEndpointsDisconnected = {
name: 'endpoints_disconnected',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.39 4.93l6.08 6.08H3.01v2H7V18H6v4h3.99v-4h-1v-4.99h1.48l8.65 8.65 1.28-1.28L3.67 3.66 2.39 4.93zM17.01 11.01v... |
import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
Button,
ScrollView,
TextInput,
KeyboardAvoidingView,
Picker,
TouchableOpacity,
Dimensions,
} from 'react-native';
import {connect} from 'react-redux';
import {bindActionCreators } from 'redux... |
import React from 'react';
import { Link } from 'react-router-dom';
import '../styles/Navbar.scss';
export const Navbar = () => {
return (
<nav className="navbar">
<Link to="/home/1">
<li className="fas fa-home"></li>
</Link>
<Link to="/search">
<li className="fas fa-search"></li>
</Link>
... |
const EspacosController = require('../controllers/espaco-controller')
module.exports = (app)=>{
const espacoController = new EspacosController (app.datasource.models.espacos, app.datasource.sequelize)
app.route('/espacos')
.all(app.auth.authenticate())
.get(async(req, res)=>{
try{
... |
//Requiere de myUbication.js en el head
//colocar este codigo al final del body
//requiere los input para la latitud y longitud
//requiere de el div id="map-canvas" para el mapa
//requiere de <input type="text" id="searchmap"> para busquedas
varLatitud=Number(localStorage.getItem('varLatitud'));
varLongitud=Number(l... |
const EC = require('elliptic').ec;
const SHA256 = require('crypto-js/sha256');
const uuidV1 = require('uuid/v1');
const ec = new EC('secp256k1');
class ChainUtil {
static id() {
return uuidV1();
}
static genKeyPair() {
return ec.genKeyPair();
}
static hash(data) {
return... |
import React, {useState, useEffect } from 'react';
//import logo from 'logo.svg';
import './App.css';
function App(){
//хуки позаоляют делать внутреннее состояние без классовых компонентов. Функция возвращает массив
const [count, setCount] = useState(0);//в скобкахх передаётся начальное состояние
const [data,... |
const logging = require('../../../../../shared/logging');
const commands = require('../../../schema').commands;
const table = 'mobiledoc_revisions';
const message1 = 'Adding table: ' + table;
const message2 = 'Dropping table: ' + table;
module.exports.up = (options) => {
const connection = options.connection;
... |
import dialogPolyfill from "dialog-polyfill";
import Handsontable from "handsontable";
import JSZip from "jszip";
export default class TaguchiDesigner {
constructor(viewmanager) {
this.__viewManagerDelegate = viewmanager;
this.__numberOfParameters = 0;
this.__numberOfLevels = 0;
th... |
//Copyright 2012, John Wilson, Brighton Sussex UK. Licensed under the BSD License. See licence.txt
var QuadHotspotDEFAULTDEPTH = 0.125
var QuadHotspotclassName = "QuadHotspot"
function QuadHotspot(quads,depth,name,debug)
{
this.quads = quads ;
this.name = name || "NONAME" ;
this.depth = depth || QuadHotspotD... |
import React from 'react';
export default function Cloc(props) {
return (
<div>
<h1>CLOC Homepage</h1>
<p>Add some content</p>
</div>
);
}; |
import mongoose from "mongoose";
const Schema = mongoose.Schema;
const trackSchema = new Schema({
title: String,
id: {
type: Number,
unique: true
},
release_date: String,
duration: Number,
artist: {
id: Number,
name: String,
picture: String
},
album: Object,
user: {
type: Sche... |
let as_nav_h2 = "Bag"
let as_nav_h3 = ""
let as_nav_list = [
{name:"Home",href:"#home"},
{name:"Feature",href:"#feature"},
{name:"About",href:"#about"},
{name:"Product",href:"#product"},
{name:"Shop Now",href:"#shop-btn"}
]
let bags = [
{bg:"#FFE1E8",img:'bag1'},
{bg:"#FFE1E8",img:'bag2'}... |
try{
pastigagal();
}
catch(e){
console.log('ini di baris 12:',e);
}
finally{
console.log('pada finally semua harus lewat sini');
} |
import React from "react";
import {ActivityIndicator, StyleSheet, View} from "react-native";
import { VERDE, FUNDO_CINZA_CLARO } from "../../assets/estilos/estilos";
export default Loading = (props) => {
return props.bolAtivo ?
<View style={styles.loading}>
<ActivityIndicator size="larg... |
function syncCanvasData (canvasData, aDocument) {
// initializating position variables
let computedStyle = aDocument.defaultView.getComputedStyle(canvasData.canvas, null)
canvasData.stylePaddingLeft = parseInt(computedStyle['paddingLeft'], 10) || 0
canvasData.stylePaddingTop = parseInt(computedStyle['paddingTo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.