text stringlengths 7 3.69M |
|---|
const express = require('express');
const router = express.Router();
const db = require('../models');
const ItemStatus = db.ItemStatus;
// fetching user routes
router.route('/')
.get((req, res) => {
return ItemStatus.findAll()
.then((statuses) => {
console.log('list of statuses returned');
return res.json(st... |
function binaryAgent(str) {
let arr = str.split(' ');
let newStrArr = [];
for(let i in arr) {
newStrArr.push(String.fromCharCode(parseInt(arr[i], 2)))
}
return newStrArr.join('');
}
binaryAgent("01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01... |
export const content={
'id': 0,
'title': '人工智能的发展历史与当今应用领域',
'author': {
'id': 0,
'username': '王永',
'role': 'AI研究员',
},
};
|
module.exports = {
options: {
outputStyle: 'nested',
sourceMap: true
},
defaults: {
cwd: '<%= paths.src %>/scss/',
src: [
'styles-veams.scss',
'styles-veams-generator.scss',
'styles-veams-methodology.scss',
'styles-veams-js.scss',
'styles-veams-components.scss',
'styles-veams-sass.scss'
]... |
// Global variable.
let onloadPlatform, xScale, xScale2, x_axis, x_axis_el, yScale, yScale2, y_axis, y_axis_el, info, yOld, xOld,
x1, x2, transformXY, xFunc, yFunc, w, d, e, g, x, y, margin, width, height, funcTested, funC, zoomTransform,
func2, txx = 0;
|
import React, { Component } from 'react';
import {connect} from 'react-redux';
import {onUpdateA,onUpdateB,onUpdateC,onUpdateD} from '../Action/Task2action';
class Task2component extends Component{
render(){
return(
<div> your number:
<span>{this.props.numa}</span>
<... |
import React, { Component } from 'react';
import axios from 'axios';
import moment from 'moment'
// Internal Imports
import HabitList from '../Habits/HabitsList';
import HabitsForm from '../Habits/HabitsForm'
import Chart from './ChartsContainer'
class HabitContainer extends Component{
state={
user: '',
... |
import React from "react";
import { useSelector, useDispatch } from "react-redux";
import * as balanceActions from "../actions/balanceActions";
function ReduxDeposit() {
const balance = useSelector(state => state.balanceReducer.balance);
const loading = useSelector(state => state.balanceReducer.loading);
const ... |
jsfac.module('application', ['dashboard', 'diagnostics'], function (register) {
register('main', ['fooWidgetViewModel', 'barWidgetViewModel', 'eventMonitorViewModel'],
function (fooWidgetViewModel, barWidgetViewModel, eventMonitorViewModel) {
return {
foo: fooWidgetViewModel,
... |
define(['angularAMD',
'angular-moment',
'angular-ui-select',
'angular-ui-grid',
'angular-validation',
'ng-tagsinput',
'rate',
'apps/base/base.service',
'apps/base/base.service.permission',
'apps/base/base.service.enum',
'apps/base/base.service.notification',
'apps/base/ba... |
import Vue from "vue";
import Request from './scms-requests';
let sg = {}
sg.install = function (Vue, options) {
Vue.prototype.$scms = {
Request,
showDate(id){
const date = new Date(parseInt(id.toString().substring(0, 8), 16) * 1000);
const day = date.getDate().toString().... |
import React, { Component } from 'react';
import { imagePath } from '../../utils/assetUtils';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styles from './home.scss';
import {
Carousel,
CarouselItem,
CarouselIndicators
} from 'reactstrap';
// const mapStateToProps = st... |
import React from 'react';
import PropTypes from 'prop-types';
import TrainingListItem from '../TrainingListItem';
const TrainingList = ({ trainings }) => {
const elements = trainings.map((item, index) => {
/* destructured id, spred operator ...propsExceptId */
return (
<TrainingListIt... |
import React from 'react';
import { AppMenu } from './component/menu';
import './App.less';
import imgAva from './imgs/avatar.png';
import { Layout, Avatar, Menu } from 'antd';
const { Header, Footer, Sider, Content } = Layout;
const MyAvatar = () => {
return <img src={imgAva} />
}
const App = () => (
<div classNam... |
/*
* 在 Telegram 群組中取得群組的 ID,以便於配置互聯機器人
*/
module.exports = ( pluginManager, options ) => {
let tg = pluginManager.handlers.get( 'Telegram' );
if ( tg ) {
tg.addCommand( 'thisgroupid', ( context ) => {
if ( context.isPrivate ) {
context.reply( `YourId = ${ context.from }` );
console.log( `\x1b[33m[Conne... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app/App';
// You must include styles inside .jsx files because
// styles won't be aplied to the html even if you have
// extractor for css
import '../css/app.scss';
ReactDOM.render(<App />, document.getElementById('app'));
|
export const dateUnaVuelta = (inc = 1) =>{
return{
type:'INCREMENT',
howMuchToIncrement: inc
}
} |
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { decrement, increment, incrementAsync, selectCount } from './counterSlice';
import styles from './counter.module.css';
export default () => {
const count = useSelector(selectCount);
const dispatch = useDispatch();
retur... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Project Schema
*/
var ProjectSchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Project name',
trim: true
},
description: {
type: String,
trim: true
},
cre... |
$(document).ready(function(){
$("#submenu2").hide();
document.getElementById('Edicion').addEventListener("mouseover", muestra_menu,false);
document.getElementById('Edicion').addEventListener("click", oculta_menu,false);
$("#submenu2").hide();
document.getElementById('Herramientas').addEventListener("mouseover", mu... |
'use strict';
// test cases for .join() with only simple components.
var commonTestCases = [
[[''], '.'],
[['/'], '/'],
[['.'], '.'],
[['..'], '..'],
[['foo'], 'foo'],
[['/', ''], '/'],
[['/', '/'], '/'],
[['/', '.'], '/'],
[['/', '..'], '/'],
[['/', 'foo'], '/foo'],
[['.', ''], '.'],
... |
function simpleTimeout(consoleTimer){
console.timeEnd(consoleTimer);
}
var a = {'two':2000,'one':1000,'five':5000,'50Milli':50};
for(var idx in a){
console.time(idx);
setTimeout(simpleTimeout, a[idx], idx);
}
|
/* HTTP Host: static.ak.fbcdn.net */
/* Generated: March 25th 2009 9:41:32 AM PDT */
/* Machine: 10.16.139.101 */
/* Source: Local Cache ... |
import React, {useState, useEffect} from 'react';
import {
Text,
View,
Modal,
StyleSheet,
TouchableOpacity,
Dimensions,
} from 'react-native';
import Entypo from 'react-native-vector-icons/Entypo';
import AntDesign from 'react-native-vector-icons/AntDesign';
import MaterialIcons from 'react-native-vector-ic... |
import React from "react";
import { connect } from 'react-redux'
import ProgramTable from './ProgramTable';
import ProgramGraph from './ProgramGraph';
import ProgramCard from './ProgramCard';
import '../../style/programDashboard.css';
class ProgramDashboardRender extends React.Component {
state = {
value: ... |
/**
* Created with JetBrains PhpStorm.
* User: a.savchenko
* Date: 28.10.13
* Time: 9:45
* To change this template use File | Settings | File Templates.
*/
define(['templates', 'backbone', 'stage'], function (templates, Backbone, LiveAPI) {
var EventView = Backbone.View.extend({
className: 'event-wrapper', /... |
const Sequelize = require("sequelize");
const { sequelize } = require("../Database/dbConfig");
const Detail = sequelize.define("Detail", {
title: {
type: Sequelize.STRING,
},
description: {
type: Sequelize.STRING,
},
});
// sequelize
// .sync({ force: true })
// .then(() => {
// console.log(`... |
//https://projecteuler.net/problem=21
/*
* Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
* If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable
* numbers.
*
* For example, the proper divisors of 220 ar... |
import { createApp } from 'vue'
import App from './App.vue'
import routes from './shared/router/main.router';
import { createRouter, createWebHistory} from 'vue-router';
const router = createRouter({
history: createWebHistory(),
routes
});
const app = createApp(App);
app.use(router);
app.mount('#app');
|
import * as axios from 'axios';
const URL = 'api/todos'
const getTodos = async function() {
try {
const response = await axios.get(URL);
return response.data;
} catch (error) {
console.error(error);
throw new Error(error);
}
};
const addTodo = async function(todoName) {
tr... |
/*
* LOOPS:
*
* 0. Loops perform or utter an action repeatedly.
*
* 1. They're important so we can perform an action a specific number of times.
*
* 2. There are three main kinds of loops:
* - While loops
* - For loops
* - For in loops
*
* 3. For and while loops all have startng an stopping conditions.
*
* 4. S... |
// create a calculator function that accepts 3 arguements 2 numbers and 1 operator
// ex. calculator ( 2, *, 2) >> this should return 4
// hints-- you will need to use conditionals ;-)
function calculator(num1, operator, num2)
{
if (operator === "+" ) {
return num1 + num2;
} else if (operator === "-" ){
return... |
import React, { Component} from 'react';
import API from '../../services/api';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEdit, faTrash, faEye } from '@fortawesome/free-solid-svg-icons';
import { Link } from "react-router-dom";
export default class Main extends Component {
stat... |
import {request, request1} from "./request"
export function getCategoryGoods(page) {
return request({
url: "/home/data",
params: {
type: 'pop',
page,
}
})
}
export function getCategoryMeishi(page) {
return request1({
url: "/category/meishi/"+page,
})
}
|
import React, { Component } from 'react';
import Style from './index.module.less';
import Avatar from '@components/avatar';
import { Button } from 'antd';
class AttentionList extends Component {
render() {
const { followList} = this.props;
let avatarStyle = {
'width': '44px',
'height': '44px',
... |
var friends = require("../data/friends");
module.exports = function (app) {
// Get
app.get("/api/friends", function (req, res) {
res.json(friends);
});
//Post
app.post("/api/friends", function (req, res) {
var newFriend = req.body;
var lowest = 999;
var match;
... |
function abortInstaller()
{
installer.setDefaultPageVisible(QInstaller.Introduction, false);
installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false);... |
require("../common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/personal_package/material/house_purchase" ], {
"146d": function(e, n, a) {
a.d(n, "b", function() {
return t;
}), a.d(n, "c", function() {
return o;
}), a.d(n, "a", funct... |
/**
* Given a string, determine if it is a palindrome,
* considering only alphanumeric characters and ignoring cases.
Note: For the purpose of this problem, we define empty string as valid palindrome.
Example 1:
Input: "A man, a plan, a canal: Panama"
Output: true
Example 2:
Input: "race a car"
Output: false
... |
import React from 'react'
import { Grid } from '@material-ui/core'
import { useHistory } from "react-router-dom";
import SingleProduct from './SingleProduct';
export default function CatalogPRoduct({products, checkedProducts, checkboxChanged, setActiveProduct, setIsOpen}) {
const history = useHistory();
cons... |
import React, { Component, PropTypes } from 'react'
import Day from './day'
import Chart from './chart'
import { connect } from 'react-redux'
import * as actions from '../actions'
import Moment from 'moment'
class Card extends Component {
static PropTypes = {
data: PropTypes.array
}
constructor (props) {
su... |
import React from 'react'
import POSItemsView from './posItemsView'
const mainView = () => {
return (
<div className='wrapper'>
<POSItemsView />
</div>
)
}
export default mainView
|
import React from 'react';
import "../../../Assets/CSS/ws_test_configuration.css";
import { Card, Col, Row, Button, message, Icon, Input, DatePicker } from "antd";
import moment from 'moment';
import { Link } from 'react-router-dom'
import CreditCardInput from 'react-credit-card-input';
const dateFormat = 'YYYY/MM/DD'... |
import React, {Component} from 'react';
import {Card } from 'reactstrap';
import {connect} from 'react-redux';
import {withRouter , Link} from 'react-router-dom';
const mapStateToProps = state => {
return{
products: state.products
}
}
const RenderSupplements = ({ product }) => {
const suppleme... |
/**
* Fake background script messaging.
* This script is prepended to background script(if exist).
* Only other pages should receive messages sent from background script
*/
// shadow the global
let browser = (function () {
const runtimeOnMessage = {
addListener (listener) {
if (typeof listener !== 'fun... |
"Use strict"
const services = [
{
icon: 'facebook',
title: 'interFace Design',
description: 'Continually scale resource-leveling vectors without best-of-breed schemas. Assertively initiate backward-compatible'
},
{
icon: 'twitter',
title: 'Experience Design',
... |
'use strict'
const setLocation = (location, extra = {}) => state => [{
...state,
...extra,
location,
}, []]
const zip = (a, b) => {
const result = []
const len = Math.max(a.length, b.length)
for (let i = 0; i < len; i++) {
result.push([ a[i], b[i] ])
}
return result
}
const isParam = path => path.startsWi... |
var mongoose = require('mongoose');
mongoose.connect('mongodb://' + process.env.IP + '/movies_app')
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function() {
var movieSchema = mongoose.Schema({
title: String,
year: Number,
d... |
import ApiBase from './ApiBase'
import ApiConfig from './ApiConfig'
class RegisterApi extends ApiBase {
verifyInformation(state) {
if (ApiConfig.UseMocks) {
return new Promise((resolve, reject) => {
resolve({
data: {
cliente: {
estadoRegistro: 'Preregistro',
idCliente: 10
},... |
angular.module("app")
.controller("mainCtrl", function($scope, adminSvc) {
adminSvc.getProducts()
.then(function(products) {
$scope.products = products;
});
});
|
const empleados = [
{
id: 1,
nombre: 'Hugo'
},
{
id: 2,
nombre: 'Faby'
},
{
id: 3,
nombre: 'Sofia'
}
];
const salarios = [
{
id: 1,
salario: 191200
},
{
id: 2,
salario: 122400
}
];
const getEmplead... |
var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var mmq = require('gulp-merge-media-queries');
var purge = require('gulp-css-purge');
var cssmin = require('gulp-cssmin');
var rename = require('gulp-rename');
//var sync = require('browser-sync').create();
gulp... |
var searchData=
[
['commitcontroller',['CommitController',['../class_commit_controller.html',1,'']]],
['commitmodel',['CommitModel',['../class_commit_model.html',1,'']]]
];
|
import Controller from '@ember/controller';
import move from 'ember-animated/motions/move';
import { fadeIn, fadeOut } from 'ember-animated/motions/opacity';
export default Controller.extend({
rows: [],
currentId: 1,
interval: null,
init() {
this._super(...arguments);
this.startInterval();
},
*t... |
var fs = require('fs'),
path = require('path'),
async = require('async'),
EventSocket = require('/event-socket/event-socket'),
es = new EventSocket('ws://zip-socket:8080/')
;
es.bind('open', function() {
var output = fs.createWriteStream("output.zip");
es.send("pipe", {});
es.on("stream", fun... |
const Notifications = require('notifications');
var HelperFunctions = {};
HelperFunctions.extend = function(target, source) {
for(var n in source) {
if(!source.hasOwnProperty(n)) {
continue;
}
if(target.hasOwnProperty(n)) {
continue;
}
target[n] = source[n];
}
};
HelperFunctions.garbageCollection =... |
const express = require("express");
const session = require("express-session");
const log4js = require("log4js");
const logger = log4js.getLogger("testApp");
const passport = require("passport");
const pug = require("pug");
const WebAppStrategy = require("./../lib/appid-sdk").WebAppStrategy;
const app = express();
//... |
var User = require('../models/User');
var Profile = require('../models/profile');
const jwt = require("jsonwebtoken");
const passport = require("passport");
require("../config/passport")(passport);
module.exports = {
login: function (req, res,next) {
const username = req.body.username;
const password = req.bo... |
var User = require('./model/user');
var Card = require('./model/card');
var mongoose = require('mongoose');
var bluebird = require('bluebird');
mongoose.Promise = bluebird;
var applyCard = function (mainUser ,minonUser,credit_line) {
var account = new Account({
account_id : randomstring.generate({
... |
import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';
const pkg = require('./package.json');
export default {
sourcemap: true,
input: 'src/index.js',
external: Object.keys(pkg.dependencies),
plugins: [
babel(
Object.assign(
{
include: ['src/**']
},
... |
import React, { useState, useEffect } from 'react';
import {
Button,
Card,
CardBody,
CardHeader,
Col,
Collapse,
Fade,
Form,
FormGroup,
Input,
InputGroup,
Label,
Row,
} from 'reactstrap';
import axios from 'axios';
import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/d... |
import React from "react";
import CustomSlider from "./CustomSlider";
export default {
title: "form/Input/Slider",
component: CustomSlider,
};
export const CustomSliderComponent = () => <CustomSlider />;
|
/*
* Loading libraries
*/
var fs = require("fs");
/*
* Global variables
*/
var rebalancingPath0 = "../Data/201402_rebalancing_data-000.csv";
var rebalancingPath1 = "../Data/201402_rebalancing_data-001.csv";
var rentalOutputPath = "../Prediction/input/rental_data.csv";
/**
* Main Work Here :
* - Read one file, ... |
import React from 'react';
// import ReactDOM from 'react-dom';
import TodoList from './Components/todolist'
import TodoForm from './Components/todoForm'
import './App.css';
class App extends React.Component {
constructor() {
super()
this.initialState = {
todoName: '',
todoItems: [],
}
t... |
$(document).ready(function() {
$('img[src *= logo]').slideUp(3000).slideDown(3000);
}); // End of ready |
// need to add follower's img
import React, {useState, useEffect} from 'react';
function UserFolloweeCard({followee, removeFollowee, user, currentUser}){
// followee = friendship's id
// followee.follower_id = (the person who are following you)
// follower.followee_id = (the one being followed)
const ... |
/* eslint-env node */
module.exports = {
bail: 1,
coverageDirectory: "coverage",
collectCoverageFrom: ["**/src/**"],
coverageReporters: ["text", "html"],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
notify: true,
notify... |
/**
* @param {number[]} A
* @return {number}
*/
var maxTurbulenceSize = function(A) {
var n = A.length;
var ans = 1;
var anchor = 0;
for (var i = 1; i<n; i++) {
var diff;
if(A[i-1] === A[i]) {
diff = 0;
} else if (A[i-1] <A[i]) {
diff= -1;
} else {
diff = 1;
}
var di... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Table } from 'semantic-ui-react';
import { findAll as findAllExploitationTypes} from '../../actions/exploitationTypes';
class RepairsTotalCostsTable extends Component {
componentDidMount = () => {
this.props.findAllE... |
import React, {useState} from 'react';
import AddOneTodo from './AddOneTodo';
const TodoList = ()=> {
const [todos, setTodos] = useState([
{id: 1, todo: 'Acheter des cadeaux de noel'},
{id: 2, todo: 'Emballez les cadeaux de noel'},
{id: 3, todo: 'Offrir les cadeaux de noel'}
])
... |
import React from "react";
import { Container, Row, Col, NavLink } from "reactstrap";
import { MdModeEdit } from "react-icons/md";
import EditAbout from "./editabout";
import { connect } from "react-redux";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
const About = (props) => {
const {... |
import React from 'react';
class InputRadio extends React.Component {
constructor(props) {
super(props);
this.state = {inputs: this.props.inputs}
}
onClick(ev) {
let e = ev.target;
let $inputs = this.state.inputs;
let $index = $(e).data("index");
$inputs.map((input, ... |
let mongoose = require('mongoose');
let AccountSchema = require('../schemas/AccountSchema');
let Account = mongoose.model('account', AccountSchema);
module.exports = Account;
|
const express = require('express');
const app = express()
const mongoose = require('mongoose');
// const bodyParser = require('body-parser');
mongoose.set('useFindAndModify', false);
require('dotenv/config')
mongoose.connect(process.env.DB_CONNECTION, {useNewUrlParser: true, useUnifiedTopology: true})
const database ... |
import * as Constants from '../constants/Constants';
function register(profileState, action) {
switch (action.type) {
case Constants.REGISTER(Constants.PENDING):
return {
...profileState,
register: {
saving: true
}
};
case Constants.REGISTER(Constants.FULFILLED):
return {
...profileS... |
import { expect } from 'chai';
import mockery from 'mockery';
import * as config from '../lib/config';
import conf from './mockdata/conf';
const cwd = process.cwd();
describe('config', () => {
beforeEach(() => {
mockery.enable({ warnOnUnregistered: false });
});
afterEach(() => {
mockery.disable();
... |
/**
* Listens to DML trigger notifications from postgres and pushes the trigger data into kafka
*/
const config = require('config')
const pg = require('pg')
const logger = require('./common/logger')
const kafkaService = require('./services/pushToDirectKafka')
const pushToDynamoDb = require('./services/pushToDynamoDb'... |
import React from 'react';
import './style.css'
const card = (props) => {
return <div className="container" >
<img className="img" src={props.img} alt="" />
<div className="desc"><p className="head"> {props.title}</p><br />
<p> {props.description}</p></div>
</div>
}
export default card; |
(function ($) {
"use strict";
/*global alert: true, ODSA */
$(document).ready(function () {
var initData, bh,
settings = new JSAV.utils.Settings($(".jsavsettings")),
jsav = new JSAV($('.avcontainer'), {settings: settings}),
exercise,
arr1, arr2, arr3, arr4,
input1, input2, input3,
i... |
const CategorySerializer = {
serialize({
id,
parent,
name,
slug,
isDeleted,
status,
image,
order,
createdBy,
updatedBy,
createdAt,
updatedAt,
children,
productCount
}) {
return {
id,
parent,
name,
slug,
isDeleted,
status... |
// let characters = null;
// let inventories = null;
// let stacks = null;
// let identificators=null;
// let characterRecipes = null;
// let cellsMap=[];
//
// let charactersUpdate = null;
// let inventoriesUpdate = null;
// let stacksUpdate = null;
// let characterRecipesUpdate = null;
//
// let charactersDelete = [... |
const sharp = require("sharp");
const fs = require("fs");
const path = require("path");
const thumbnailSize = 500;
const inDir = "./static/projects/full";
const outDir = "./static/projects/thumb";
fs.readdir(inDir, (err, files) => {
if (err) {
console.error("Failed to load files", err);
} else {
files.fo... |
$(document).ready(function(){
/*** SLIDE OUT CARD CONTENT ON MOBILE ***/
$('.mobile-icon').on('click', function(event){
event.preventDefault();
$(this).parent().parent().find('.card-bottom').slideToggle();
console.log('hi there');
});
/*** HIDE OR SHOW CARD CONTENT ON RESPONSIVE WINDOW RESIZE ***/
$(windo... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {API} from '../Common/config'
import _ from 'lodash';
import Popup from "reactjs-popup";
// import './Teamsdata.css';
var axios = require('axios');
export default class Teams extends Component {
constructor(props) {
super(props... |
// export { default } from './Dashboard';
export { default as EmploymentHistory } from './EmploymentHistory';
export { default as PersonalInfo } from './PersonalInfo';
export { default as ExperienceQualifications} from './ExperienceQualifications'
export { default as Disclosures} from './Disclosures'
export { default ... |
var fs = require('fs-extra');
var uuid = require('uuid');
var path = require('path');
var Hooks = require('../../../helpers/hooks');
var Files = require('../../../helpers/files');
module.exports = (Orden) => {
Orden.beforeRemote('basePrioritario', Hooks.beforeRemoteFormData);
Orden.basePrioritario = function( oper... |
import React from "react";
import PropTypes from "prop-types";
import {
Modal,
Header,
Button,
Icon,
Segment,
} from 'semantic-ui-react'
import 'semantic-ui-css/semantic.min.css';
import styles from "./styles.module.scss";
const ConfirmModal = (props, context) => {
return (
<... |
/* Magic Mirror
* Node Helper: MMM-OrderManagement
*
* By
* MIT Licensed.
*/
var util = require("util"),
eyes = require('eyes'),
https = require('https'),
fs = require('fs'),
xml2js = require('xml2js'),
moment = require('moment'),
querystring = require('querystring'),
pr... |
import AbstractView from "./AbstractView.js";
export default class extends AbstractView {
constructor(params) {
super(params);
this.setTitle("Yoga");
}
getHtml = async () => {
return `
<h1>Welcome to Omflow</h1>
<a href="/teachers" data-link>View teachers</a>
<a href="/classe... |
/** @format */
import React from "react";
function RatingStars() {
return (
<React.Fragment>
<div class='rating rating2'>
<a href='#5' title='Give 5 stars'>
★
</a>
<a href='#4' title='Give 4 stars'>
★
</a>
<a href='#3' title='Give 3 stars'>
★
</a>
<a href='#2' title='G... |
var searchdata________________8js________8js____8js__8js_8js =
[
[ "searchdata________8js____8js__8js_8js", "searchdata________________8js________8js____8js__8js_8js.html#a89024f7782a507e2cdca62a3e262c996", null ]
]; |
import React, { Component } from 'react';
import config from '../config';
class EditRestaurant extends Component {
state = {
the_restaurant: '',
type: '',
id: '',
index: ''
}
componentDidMount() {
const { the_restaurant, type, id } = this.props.location.state.restaurant
const { index } =... |
import React,{createContext,useState} from 'react'
export const TaskContext = createContext();
export const TaskListContextProvider = ({children}) => {
const [task, settask] = useState([
])
const [ edititem, setedititem ] = useState(null);
const AddTask = (title) => {
... |
const { config } = require('../../framework/index.js');
Page({
data: {
isMore: false,
sliderBox: {
height: 0,
initHeight: 280,
minHeight: 100,
},
},
onReady() {
this.caculateBoxHeight();
},
onShareAppMessage() {
return config.shareData;
},
caculateBoxHeight() {
c... |
'use strict';
const { Suite } = require('benchmark');
const { mm, pm } = require('./load-time');
const { cyan, red, green } = require('ansi-colors');
const argv = require('minimist')(process.argv.slice(2));
const longList = require('./fixtures/long-list');
/**
* Setup
*/
const cycle = (e, newline) => {
process.s... |
import React, { Component } from 'react';
import { Modal, Button } from 'react-bootstrap'
class MovieModal extends Component {
state = {
show: false,
}
render() {
// console.log(this.props)
const { title, genres, revenue, release_date, production_companies, imdb_id } = this.props;... |
function switchVideo(s) {
let target = document.querySelector("#aVideo");
target.src = "../video/" + s.id + ".mp4";
target.poster = "../video/" + s.id + ".png";
// if(document.getElementsByName="two"){
// document.getElementById("wenzi").innerHTML = "Hello World";
// }
}
var bianz... |
'use strict';
var SCREEN_WIDTH = 505,
SCREEN_HEIGHT = 606,
TILE_WIDTH = 101,
TILE_HEIGHT = 81,
PLAYER_SIDE_MOVE = 101,
PLAYER_VERTICAL_MOVE = 83,
PLAYER_HEIGHT = 50,
PLAYER_WIDTH = 40,
PLAYER_TOP_SPACE = 80,
PLAYER_SIDE_SPACE = 40,
ENEMY_HEIGHT = 66,
ENEMY_WIDTH = 97,
EN... |
/** When your routing table is too long, you can split it into small modules */
const authRouter = [
{
path: '/signin',
alias: '/login',
component: () => import('@/views/auth/SignIn.vue'),
hidden: true
},
{
path: '/signup',
alias: '/registration',
component: () => import('@/views/auth/SignUp.vue'),
... |
//const fs = require('fs')
var path = require('path');
const ObjectsToCsv = require('objects-to-csv')
const xlsxFile = require('read-excel-file/node')
var glob = require("glob")
const folder1 = 'D:/Dropbox/0_isep/TDMEI/tdmei/other/slither_modified/'
const folder2 = 'D:/Dropbox/0_isep/TDMEI/tdmei/other/mythril_modified... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.