text stringlengths 7 3.69M |
|---|
console.log('hello world!!');
console.log('Hey babe!fd!!');
|
import React, { Component } from "react";
import * as constant from "../../constant/constant";
import Header from '../../component/header/';
import CardItem from '../../component/cardItem';
export default class Home extends Component {
constructor(props) {
super(props);
}
componentDidMount() {}
render() ... |
var mqtt = require('mqtt')
exports.publish = (req, res) => {
var data = req.body
data = JSON.stringify(data)
var client = mqtt.connect('mqtt://demo.thingsboard.io',{
username: "WZmujYnJH0hIIWex7zlS"
})
client.on('connect', function () {
client.publish('v1/devices/me/telemetry', dat... |
class Coins {
constructor() {
this.x = Math.floor(Math.random() * 450);
this.y = 100;
this.canvas = document.getElementById('my-canvas');
this.ctx = this.canvas.getContext('2d');
this.width = 60;
this.height = 60;
this.status = true;
this.img = new Ima... |
const AccesoProhibidoException = use('App/Exceptions/AccesoProhibidoException');
const RecurosNoEncontradoException =use('App/Exceptions/RecurosNoEncontradoException');
class AutorizacionService{
verificarPermiso(recurso, user){
if(!recurso){
throw new RecurosNoEncontradoException();
... |
'use strict';
const fs = require('fs');
fs.readFile('config.json', (err, data) => {
if (err) throw err;
let serverid1 = JSON.parse(data).serverID;
let clid1 = JSON.parse(data).clientID;
let details1 = JSON.parse(data).details;
let largeImage1 = JSON.parse(data).largeImageName;
let largeImageTe... |
angular.module('devmtnTravel').controller('packagesCtrl',function($scope,mainSrv){
$scope.packages = mainSrv.travelInfo;
})
|
$(document).ready(function () {
"use strict";
var empty = [];
var permarray = [0, 3, 7, 6, 1, 4, 9, 2, 5, 8];
var countup = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
empty.length = 10;
var av = new JSAV("collisionCON3");
// Create an array object under control of JSAV library
var arr = av.ds.array(empty, {indexe... |
const translateErrorMsg = errorMsg => {
switch (errorMsg) {
case "Missing required parameter USERNAME":
return "Ingrese correctamente el email";
case "Incorrect username or password.":
return "Email o password incorrectos";
case "User does not exist.":
return "El email no se encuentra re... |
"use strict";
function ComponentCollection() {
if (ComponentCollection._instanceAlreadyCreated) {
if(console && console.warn)
console.warn("Another instance of the ComponentCollection has been generated. There should only be 1 instantiated for the lifetime of the application.");
}
ComponentCollection._instanc... |
import * as firebase from 'firebase';
// Initialize Firebase
const firebaseConfig = {
apiKey: "AIzaSyBolnqghsxdV0OvTUM6RqAgpD6Yz2Zi8QU",
authDomain: "geoz-9db4d.firebaseapp.com",
databaseURL: "https://geoz-9db4d.firebaseio.com",
// projectId: "geoz-9db4d",
storageBucket: "geoz-9db4d.appspot.com",
... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
import requireAuth from './requireAuth';
class CommentBox extends Component {
state = { comment: '' };
handleChange = (e) => {
this.setState({ comment: e.target.value });
};
handleSubmit = (e... |
/*
* Module code goes here. Use 'module.exports' to export things:
* module.exports.thing = 'a thing';
*
* You can import it from another modules like this:
* var mod = require('prototype.container');
* mod.thing == 'a thing'; // true
*/
var logger = require("screeps.logger");
logger = new logger("prototype.co... |
function attachEvents() {
const baseUrl = 'https://baas.kinvey.com/appdata/kid_HJBUjKi5f';
const kinveyUsername = 'test';
const kinveyPassword = 'test';
const base64auth = btoa(kinveyUsername + ":" + kinveyPassword);
const authHeaders = {
'Authorization': 'Basic ' + base64auth,
'Content-type': 'application/jso... |
var express = require('express');
var mongoose = require('mongoose');
var bodyparser = require('body-parser');
var cors = require('cors');
var path = require('path');
var app = express();
const prodRoute = require('./routes/prodRoute.js')
const saleRoute = require('./routes/saleRoute.js')
mongoose.connect('mongodb:... |
/* jshint esversion: 6 */
const express = require('express');
const shell = require('shelljs');
const path = require('path');
const multer = require('multer');
const unzip = require('unzip');
const fs = require('fs');
const bddUtils = require('../../utils/bddUtils')
const reportutils = require('../../utils/reportUtil... |
'use strict';
/**
* @ngdoc function
* @name cop21App.controller:MockupCtrl
* @description
* # MockupCtrl
* Controller of the cop21App
*/
angular.module('cop21App')
.controller('MockupCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});... |
let CharactersCtrl = function($scope, CharactersService, $state) {
CharactersService.getCharacters().then( (res) => {
console.log(res);
$scope.characters = res.data.results;
})
};
CharactersCtrl.$inject = ['$scope', 'CharactersService', '$state'];
export default CharactersCtrl; |
module.exports = [
178416,
676461
] |
'use strict';
console.log('task loaded');
var PM = (function (module) {
var host = 'http://localhost:3000/',
authToken = localStorage.getItem('authToken'),
projectId = localStorage.getItem('projectId'),
taskId = localStorage.getItem('taskId');
module.apiRoutes = {
users: host + 'users/',
projects: h... |
'use strict';
/* globals module, element, by , xpath*/
var regPersonalInfoPage = function() {
this.userDetails = {
personalInfoHeader : element(by.xpath("//h1[text()='Personal Information']")),
nameHeader : element(by.xpath("//h1[text()='NAME']")),
firstNameText : element(by.id("givenName")),
lastNameText... |
var path = require('path');
module.exports = function(config) {
if ( ! process.env.SAUCE_USERNAME || ! process.env.SAUCE_ACCESS_KEY) {
console.error('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.');
process.exit(1);
}
var customLaunchers = {
'chrome-1': {
ba... |
export default [{
'provinceInfo': {
'name': 'Phnom Penh',
'districtInfos': [{
'name': 'Khan Chamkar Mon',
'communes': [{
'name': 'Tonle Bassac',
'type': 'Urban Commune'
}, {
'name': 'Boeung Trobaek',
'type': 'Urban Commune'
}, {
'name': 'Phsar Da... |
module.exports = {
siteMetadata: {
title: "Benjamin Kleeman",
author: "Benjamin Kleeman",
description: "A personal/portfolio website for Benjamin Kleeman, a web developer and musician."
},
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-plugin-manifest`,
options: {
... |
import React from 'react';
import PartWidget from './PartWidget';
import DataStore from '../services/DataStore';
class PartsView extends React.Component {
constructor(props) {
super(props);
this.service = new DataStore();
this.vars = {
batchSize: 20
, partsIndex : 0
};
this.loadCategories = this... |
import { createStore, applyMiddleware } from "redux";
import thunk from "redux-thunk";
import reducer from "./reducer";
import { composeWithDevTools } from "redux-devtools-extension"
const store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))
export { store, reducer };
|
import { h } from 'preact';
import PropTypes from 'prop-types';
const ValueContainer = ({ description, shortcut }) => (
<div className="shortcut-select__value">
{description}
<span className="shortcut-select__key">
{shortcut.length > 0 ? shortcut : chrome.i18n.getMessage('notSpecified').toLowerCase()}
... |
/*$(document).ready()方法,jQuery支持我们预定在DOM加载完毕后调用某个函
*数,而不必等待页面中的图像加载。
*/
$(document).ready(
function () {
//获得div 类名poem-stanza的元素
$('div.poem-stanza').addClass('horizontal');
} ); |
//(function(){
var app = angular.module('appHomeWork',[]);
app.controller("SubmitController",function(){
this.user = {};
this.title = "Road TO Angularjs Home Work!!";
this.userlist = [];
this.clearUser = {};
this.add = function(hello){
... |
module.exports = function(sequelize, DataType) {
const ItemStatus = sequelize.define('ItemStatus', {
sold : {
type : DataType.STRING,
allowNull : false
}
},
{
tableName : 'status'
});
ItemStatus.associate = function(models) {
ItemStatus.hasOne(models.Item, {
foreignKey : 'is... |
/**
* Created by Shao Fei on 26/6/2015.
*/
// Factor to compress image
COMPRESS_FACTOR = 0.7;
function processICImage(side) {
var fileInput;
if(side === "front") {
fileInput = "ic_front";
} else if (side === "back") {
fileInput = "ic_back";
}
// Load image and returns <img> el... |
import BootState from './phaser/states/Boot';
import PreloadState from './phaser/states/Preload';
class Game extends Phaser.Game {
constructor(location = null) {
const gameWrapper = document.getElementById(location);
const width = 200;
const height = 200;
super(width, height, Pha... |
import searchActionTypes from './search.types'
import axios from "axios";
export const onSearchChange = character => ({
type: searchActionTypes.SEARCH_START,
payload: character
})
export const searchSuccess = targetUser => ({
type: searchActionTypes.SEARCH_SUCCESS,
payload: targetUser
})
export const... |
import React from 'react'
const FoodItem = (props) => {
return(
<div>
<h5>{props.item.foodName}</h5>
<p>{props.item.ingredients}</p>
<p><strong>{props.item.price}</strong></p>
</div>
)
}
export default FoodItem |
movieDBApp.controller('LoginController', function LoginController($scope, $timeout, $location, loginService) {
$scope.user = {};
$scope.message = '';
$scope.clear = () => {
$scope.user = {};
}
$scope.login = () => {
console.log("User saved scope:", $scope.user);
loginService... |
var canvas;
$(document).ready(function()
{
canvas = document.getElementById("logo");
if (canvas.getContext)
{
drawLogo();
}
});
function drawLogo()
{
var context = canvas.getContext('2d');
context.fillStyle = "#f00";
context.strokeStyle = "#f00";
context.font = 'italic... |
import { createServer } from 'http'
import React from 'react'
import Stroop from '../shared/stroop'
import getRandomColorName from '../shared/getRandomColorName'
const server = createServer()
server.on('request', (req, res) => {
const data = {
color: getRandomColorName(),
name: getRandomColorName()
}
c... |
const getEmailIndex = require("./appointmentUtil");
class Appointment{
constructor(start,end){
this.start = start;
this.end = end;
this.maxAttendees = 10;
this.attendees = [];
}
setId(id){
this.id = id;
}
addAttendee(name, email){
... |
import { SET_NOTIFICATION } from "config/constants";
const initState = {
loading: false,
notifications: [],
};
const appReducer = (state = initState, action) => {
switch (action.type) {
case SET_NOTIFICATION:
const notfs = state.notifications.slice();
notfs.unshift(action.payload);
return... |
var CallidForm;
var pageSize = 25;
/**********************************************************************站臺管理主頁面**************************************************************************************/
//站臺管理Model
Ext.define('gigade.Sites', {
extend: 'Ext.data.Model',
fields: [
{ name: "site_id", type: ... |
import React from 'react';
import { connect } from 'react-redux';
import { usernameInput, passwordInput, goToPage, input } from '../store/actions';
import { api, Api } from '../apiUrl';
import axios from 'axios';
import qs from 'qs';
const mapStateToProps = (state) => {
return {
username: state.username,
pas... |
import React, {useState} from 'react';
import {AgGridColumn, AgGridReact} from 'ag-grid-react';
import 'ag-grid-community/dist/styles/ag-grid.css';
import 'ag-grid-community/dist/styles/ag-theme-alpine.css';
import RowGroupingModule from 'ag-grid-community';
import classes from "./Grid2.module.css";
const Grid2 = (... |
import VueDatamaps from './components/Datamaps.vue'
if (typeof window !== 'undefined' && window.Vue) window.Vue.use(VueDatamaps)
export {
VueDatamaps
}
export default (Vue) => {
Vue.component(VueDatamaps.name, VueDatamaps)
}
|
import Creators from './actions';
import sActions from '../../../socket/actions';
import { roomOperations } from '../../loading_room/duck';
const setGameState = Creators.setGameState;
const rotateShip = Creators.rotateShip;
const SHIP_MAP = {
'carrier': 5,
'battleship': 4,
'cruiser': 3,
'su... |
import axios from 'axios';
class AnuncioService {
search(productName) {
return axios.get(`https://api.mercadolibre.com/sites/MLB/search?q=${productName}`)
.then(res => {
let results = res.data.results;
//console.log(results);
//this.setState({ r... |
'use strict';
const mysqlConfig = {
host : 'localhost' ,
database : 'flowburDevelopment' ,
password : '[email protected]' ,
user : 'root' ,
debug : false ,
port : 3306 ,
multipleStatements : true
};
var mongoDatabase = null;
v... |
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('geo_project', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
departmentId: {
type: DataTypes.INTEGER(11),
allowNull: false... |
var s = Snap("#svg");
// Lets create big circle in the middle:
var bigCircle = s.circle(150, 150, 100);
// By default its black, lets change its attributes
bigCircle.attr({
fill: "#bada55",
stroke: "#000",
strokeWidth: 5
});
var smallCircle = s.circle(100, 150, 70);
// Lets put this small circle a... |
var express = require('express');
var router = express.Router();
var passport = require('passport');
var logger = require('@ekhanei/logger').getLogger();
var sdk = require('@ekhanei/sdk');
var utils = require('@ekhanei/utils');
var requireLogin = require('../middleware/require-login');
// All account routes require l... |
import reactDom from 'react-dom';
import './topbar.css';
import {Link} from "react-router-dom";
export default function TopBar() {
return (
<div className ="top">
<div className = "topLeft">
<i className="topIcon fab fa-facebook-square"></i>
<i className="topIcon ... |
import React from 'react';
import PropTypes from 'prop-types';
import { Tail } from 'tail';
import os from 'os';
import { shell } from 'electron';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import Container from 'react-bootstrap/Container';
import Alert from 'react-bootstrap... |
import React from "react";
import day from "./day";
function WeatherDay({ weatherForecast, setWeatherPerDay }) {
// weatherForecast const que almacena la respuesta de la api de la funcion getWeatherForecastFor5Days
// optenemos datos del clima de 5 dias futuros con lapsos de 3 horas , retorna un array de 40 eleme... |
const runtimeOnly = {
entry: './dist/src/entrypoints/runtimeOnly.js',
output: {
filename: 'dist/stopify.bundle.js',
library: 'stopify',
libraryTarget: 'var'
},
devtool: 'source-map',
node: {
// Commander has these as dependencies
'fs': 'empty',
'child_process': 'empty',
}
};
const c... |
// Define Elements in JS
const currencyEl_one = document.getElementById("currency-one");
const currencyEl_two = document.getElementById("currency-two");
const amount_one = document.getElementById("amount-one");
const amount_two = document.getElementById("amount-two");
const rateEl = document.getElementById("rate");
con... |
var express = require('express');
var app = express();
//var lookupAudio = new Function("rfid", "if(rfid==='6A003E4B243B') {return 'It\'s a C!';} else {return 'Not found :(';}");
function lookupAudio(rfid) {
if(rfid === "6A003E4B243B") {
return "C_SOUND.AFM";
}
else if(rfid === "6A003E1E3C76") {
return "A_SOUN... |
var gulp = require('gulp');
var px2rem = require('gulp-px2rem');
var sass = require('gulp-sass');
sass.compiler = require('node-sass');
//rem配置项
var px2remOption = {
rootValue: 64,//根字体大小 元素尺寸 / (效果图的尺寸/10)
unitPrecision: 3,//保留小数点后几位
propertyBlackList: [],//黑名单,不需要编译的属性
propertyWhiteList: [],//白名单,需要编译的
rep... |
/**
* Provides services to execute queries on Informix database
*/
const config = require('config')
const Wrapper = require('informix-wrapper')
const logger = require('./logger')
const informixOptions = config.get('INFORMIX')
const writeOperationRegex = new RegExp('^(insert|update|delete|create)', 'i') // Regex to c... |
import React, { Component } from 'react';
import {Container, Row, } from 'react-bootstrap';
class About extends Component {
render() {
return (
<div>
<Container>
<Row>
<div
style={{
opacity: ".7",
width: "50%",
ma... |
//1.3.1
// function greet(greeting, name = 'John') {
// console.log(greeting + ', ' + name);
// }
//
// greet("Hello");
//1.3.2
// function receive(complete) {
// complete();
// }
//
// receive();
// function receive(complete) {
// complete();
// }
//
// receive(function() {
// console.log('complete');
// })
... |
import React, { useState } from 'react';
import styled from 'styled-components';
//import DetailPage from '../Detail/DetailPage';
//import Avartar from '../Detail/DetailFunction/Avartar';
//import LikeInterest from '../Detail/DetailFunction/Like_Interest';
const LeftBottomContainer = styled.div`
position: absolute;... |
import React from 'react';
import classes from './List.css';
const button = (props) => (
<div className = {classes.Center}>
<li>
{props.children}
</li>
</div>
)
export default button; |
const {merge} = require('webpack-merge')
const common = require('./webpack.common.js')
const TerserPlugin = require('terser-webpack-plugin')
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = () => {
const entry = './src/index.ts'
... |
function fn1 (){
this.foo = function (){
console.log(11111);
}
}
const fn1 = new fn1()
function fn2 (){
}
fn2.prototype.foo = function (){
console.log(11111);
}
const fn2 = new fn2()
|
function getCookie(name) {
var r = document.cookie.match('\\b' + name + '=([^;]*)\\b');
return r ? r[1] : undefined;
}
function isMail(mail) {
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})$/;
if (filter.test(mail)) return true;
else return false;
}
function isDomain(dom... |
var gBuses = (function () {
var sesion = false;
var lBuses;
var DatosBasicos;
var OpcionEjecutar;
var indexBusSeleccionado;
var table;
var guardar = false;
// id de los documentos
var docSOAT = 1;
var docTecMec = 2;
var docTarOpe = 3;
var docPolCont = 4;
... |
const express = require('express');
const router = express.Router();
const UserController = require('../controllers/UserController');
const ProductController = require('../controllers/ProductController');
const CategoryController = require('../controllers/CategoryController');
// Router: Users
router.get('/user', Use... |
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/chat_list/chat/_msg_sys_tip" ], {
"701b": function(t, n, e) {
Object.defineProperty(n, "__esModule", {
value: !0
}), n.default = void 0;
var a = {
props: {
... |
const express = require("express")
const cors = require("cors");
const PORT = 12345;
let app = express();
app.use(function (req, res, next) {
console.log('Time:', Date.now())
next()
})
app.use(cors( //sets the origin able to access sites to be localhsot.
{
origin: 'http://localhost'
}
))
app.... |
import React, { Component } from 'react';
import styles from './index.module.scss';
import ctx from '@/assets/js/ctx';
import { connect } from "react-redux";
import Header from '@/components/Header';
import {changeToken} from '@/store/actionCreators'
export class MyCenterUI extends Component {
static contextType ... |
//Part of Meishuu's 'slash' script to decode HTML
const entities = {
amp: '&',
lt: '<',
gt: '>',
quot: '"',
apos: "'",
}
module.exports = {
decodeHTMLEntities(s) {
return (s
.replace(/<\/?[^<>]*>/gi, '')
.replace(/&#(\d+);?/g, (_, code) => String.fromCharCode(code))
.replace(/&#[x... |
import Template from "./template";
import paper from "paper";
import ComponentPort from "../core/componentPort";
export default class LLChamber extends Template {
constructor() {
super();
}
__setupDefinitions() {
this.__unique = {
position: "Point"
};
this.__he... |
import React from 'react';
import TimePicker from '..';
import '../assets/index.less';
const App = () => <TimePicker defaultValue={new Date()} showSecond={false} minuteStep={15} />;
export default App;
|
const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
return sequelize.define('CatalogProductOptionTypePrice', {
option_type_price_id: {
autoIncrement: true,
type: DataTypes.INTEGER.UNSIGNED,
allowNull: false,
primaryKey: true,
comment: "Option Typ... |
//array of heads
const heads = [
{
name: "Frank- Walter Steinmeier",
image: "./images/steinmeier.jpeg",
link: "https://en.wikipedia.org/wiki/Frank-Walter_Steinmeier"
},
{
name: "Joachim Gauck",
image: "./images/gauck.jpeg",
link: "https://en.wikipedia.org/wiki... |
define([
'apps/system4/merge/merge'], function (app) {
app.module.factory("mergeService", function ($rootScope, Restangular, stdApiUrl, stdApiVersion) {
var restSrv = Restangular.withConfig(function (configSetter) {
configSetter.setBaseUrl(stdApiUrl + $rootScope.currentBusiness.Key + '/' + st... |
/*
* @copyright Adam Benda, 2016
*/
/**
* @class
* @classdesc Static box that can be connected with Ball via rope
*/
/**
*
* @param {Matter.Engine} engine
* @param {number} x - x coordinate
* @param {number} y - y coordinate
* @returns {Ball}
*/
var Pylon = function (engine, x, y, cnt) {
this.type =... |
import React, { Component } from 'react';
import Modal from 'react-modal';
import RequestService from '../../Services/RequestService';
import ToolbarContainer from '../dashboard/toolbar/ToolbarContainer';
import FindingsPart from './FindingsPart';
import { NotificationManager, NotificationContainer } from 'react-notifi... |
import React from 'react';
import { Grid, Typography } from '@material-ui/core';
import MyPost from './Post/UserPost';
import useStyles from './styles';
import { Ripple } from 'react-spinners-css';
const MyPosts = ({ currentUserPosts }) => {
const classes = useStyles();
console.log(currentUserPosts);
ret... |
import request from 'lib/request';
import { loginQuery } from 'queries/login';
import { RESET_STATE, AUTH_ERROR } from 'constants/action-types';
import { isLoading } from 'actions';
export const signInUser = async ({ email, password }) => {
const query = loginQuery(email, password)
dispatch(isLoading(true));
t... |
export const fruitMixin = {
data() {
return {
fruits: ["Apple", "Banana", "Mango", "Melon"],
filterText: ""
};
},
computed: {
filteredFruits() {
return this.fruits.filter(element =>
element.toLowerCase().match(this.filterText.toLowe... |
require('dotenv').config();
const express = require('express');
const app = express();
app.use(express.json());
app.use(express.urlencoded({extended: true})); //req.body < data
app.post('/compute', (req, res) => { //route
const { age, cre, dia, eje, bp, plt, ser, seso ,secre, sex, smok, time} = req.body;
co... |
import React, { useState, useEffect } from "react";
import { useStore } from "./useStore";
import Ajax from "ui/business/hooks/helpers/ajax";
export default function useAction({ name }) {
const { state, dispatch } = useStore();
const [response, setData] = useState([]);
const [metadata, setMetaData] = useState([... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { withStyles } from "@material-ui/core/styles";
import { connect } from "react-redux";
import { submitReview } from "../../actions/reviewActions";
import { Button, Input } from "@material-ui/core/";
import {
Dialog,
DialogActions,... |
import h from 'mithril/hyperscript'
import connect from '../../../../src/connect.js'
function list ({items}, intents) {
return h('ul.todo-list',
items.map(item => {
const active = item.active || false
const edit = item.edit || false
if (edit) {
return h('input.u-full-width[type="text"][... |
import React from 'react';
import '../announcements/announcements.css';
export default class editAnnouncement extends React.Component {
state = {
title: '',
body: '',
creator: '',
id: '',
success: false
}
onSubmit = e => {
const requestOptions =... |
import React from 'react'
import { connect } from 'redux-bundler-react'
import PropTypes from 'prop-types'
class HomePage extends React.Component {
static propTypes = {
hasGroup: PropTypes.bool.isRequired,
doCreateGroup: PropTypes.func.isRequired
}
render () {
return (
<div>
{this.prop... |
describe('Base test', () => {
it('Test runns', () => {
});
});
|
import React, { Component } from 'react'
import stylesheetGridlex from 'styles/gridlex.min.css'
import animateScrollTo from 'animated-scroll-to'
import stylesheet from 'styles/investor.scss'
import { default as Layout } from '../components/layout/layout'
import { Media } from '../components/media'
import { MediaCTA } f... |
import React from 'react';
const StaffBox = (props) => {
return (
<div className="staff-box">
<div className='staff-box__name'>{props.person.name}</div>
<div className="staff-box__title">{props.person.title}</div>
<img alt="staffPhoto" className="staff-box__photo" src={props.person.photo} />
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const DataHelper_1 = require("../../../helpers/DataHelper");
class Statement {
constructor(model) {
if (!model)
return;
this._id = DataHelper_1.default.handleIdDataModel(model._id);
this.userId = DataHel... |
class Line {
// NEW
fitness = 0; //El fitness del line
isBest = false; //Variable para saber si el line es el mejor de la generacion
dead = false; //Variable para saber si el line esta terminado o no
pathArray = []
distance = 0
passengers = 0
//Constructor
constructor(pathArr... |
{
"class" : "Page::ring::reset_pass",
"command" : {
"reset" : "reset"
},
"template" : "reset_pass.html"
}
|
import "./styles.css";
import Navbar from "./components/Navbar/navbar";
import Lembretes from "./components/Lembretes/task";
import { useState } from "react";
const task = {
id: 0,
title: "Novo lembrete",
state: "pendente"
};
let ContId = 0;
const geraId = () => {
ContId++;
return ContId;
};
export default... |
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'Inicio',
component: () => import( '../views/Inicio.vue')
},
{
path: '/equipo',
name: 'equipo',
component: () => import( '../views/Equipo.vue')
},
{
path: '/detalletra... |
import { validStars } from "github-query-validator";
import { queryValidator } from "github-query-validator";
export const validateStars = input => {
if (!validStars(input)) {
return "You are looking at wrong stars";
}
};
export const validateQuery = input => {
if (!queryValidator(input)) {
return "You ... |
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faSortDown,
faSortUp,
faSort,
} from '@fortawesome/free-solid-svg-icons';
import s from './ColumnHeader.css';
/... |
/**
* Created by Administrator on 2018-02-26.
*/
module.exports = (sequelize, DataTypes) => {
var ClientPart = sequelize.define('client_part', {
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
key: DataTypes.INTEGER,
sort: DataTypes.I... |
let producto = document.getElementById('collecttion')
let shop = document.getElementById('shop')
let coleccion = document.getElementById('productos')
let canvas = document.getElementById('offcanvasExample')
let car = document.getElementById('car')
let acticulo = 'http://localhost:4000/articulos';
let cosasCompradas = ... |
/**
* Created by victor on 12.03.15.
* logger winston
* https://www.npmjs.com/package/winston
*/
/**
* проблема с подсветкой в консоли, а так все норм.
* **/
var winston = require('winston');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({
colori... |
export function newPushPull(push,pull) {
return { push : push
, send_callback : push.send_callback
, pull : pull
, grab_callback : pull.grab_callback
};
}
export function makeLifetimePush(send_callback, grab_callback) {
return { send_callback : send_callback
, grab_callback : grab_callback
};
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.