text stringlengths 7 3.69M |
|---|
/**
* Copyright 2021-present, Facebook, Inc. All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* Messenger For Original Coast Clothing
* https://developers.facebook.com/docs/messenger-platform/getting-started... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { increase,decrease } from './actions/action'
class App extends Component {
render(){
console.log(this.props)
return (
<div className="App">
<button onClick={this.props.increase}> + </button>
<div... |
import React from 'react';
import {compose, lifecycle} from 'recompose';
import {applyToParticipate, detectParticipate} from "../store/action";
import {connect} from "react-redux";
import {
Button,
} from 'reactstrap';
import {Loader} from "../../Layout/Loader";
const mapStateToProps = ({
outingReducer: {
outi... |
angular.module("mainModule")
.component("note", {
templateUrl: "Scripts/Components/Note/Note.html",
controller: function () {
var ctrl = this;
var component = {};
setTimeout(function () {
component = $("#note-" + ctrl.id);
compone... |
/*global beforeEach, describe, it, assert, expect */
'use strict';
describe('ProfileInfo Model', function () {
beforeEach(function () {
this.ProfileInfoModel = new PipedriveTest.Models.ProfileInfo();
});
});
|
// Controller.Start.js
Ext.regController('Start', {
index: function(options) {
console.log('[Controller.Start] index');
if (options.game && !this.game)
this.initGame(options.game);
// this user ready to play
App.on(
'player-button-start',
function() {
console.log('Controller.Start pressed b... |
const GOOD_PASSWORD = "qwerty123";
const MAX_TRIES = 5; |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview'
import store from './store'
import 'iview/dist/styles/iview.css' // 使用 CSS
//i... |
const config = {
botName: 'BigBraim',
ownerName: 'Brayan',
youtube: 'www.youtube.com/channel/UCI15ahRyhf_cssUSPXgF0Mw',
instagram: 'INSTAGRAM_LINK',
}
|
//ДЗ 1-2
var x = prompt ('ввести значение');
var n = prompt('ввести степень');
function pow (x,n){
var result=x;
for (var i=1; i<n; i++){
result*=x;
}
return result;
}
alert (pow(x,n));
|
require('express-async-errors');
const {Genre, validateGenre} = require('../model/genre');
const auths = require('../middleware/auths');
const admin = require('../middleware/admin');
const express = require('express');
const router = express.Router();
router.get('/', async (req, res) => {
const genre = await Ge... |
/*import express from 'express';
import http from 'http';
import bodyParser from 'body-parser'; //node 这里还不支持es6的import 的写法
import morgan from 'morgan';
*/
const express = require('express');
const http = require('http');
const bodyParser = require('body-parser');
const morgan = require('morgan');
const router= require... |
'use strict'
angular.module('app').directive('appPositionInfo',[function(){
return{
restrict:'AE',
replace:true,
templateUrl:'view/template/positioninfo.html'
}
}]) |
/**
* Title: Exercise 1.3 - Class Refresher
* Author: Nathaniel Liebhart
* Date: August 6th, 2019
* Description: Create a cell phone object with properties and methods
*/
/**
* Params: firstName, lastName, assignment
* Response: output
* Description: Returns formatted header string
*/
const header = require("... |
class CartPage {
get cartemptyText() { return $("div[class='_3Y9ZP']")}
get itemName() { return $("div[class='_33KRy']")}
get addButton() {return $("div[class='_1ds9T']")}
get removeButton() { return $("div[class='_29Y5Z']")}
get individualItemCount() { return $("div[class='_2zAXs']")}
getcartText() {
return t... |
/* open menu */
const menuButton = document.querySelector('button.menu-button');
menuButton.addEventListener('click', () => {
menuButton.classList.toggle('active');
});
/* external link in new tab */
Array.from(document.querySelectorAll('a')).forEach(a => {
if (a.href.search(/\w+:\/\//) === 0 && a.hostname !==... |
var structfsml_1_1FlatMachine =
[
[ "FlatMachine", "structfsml_1_1FlatMachine.html#a506e347690aa39f7eb7637fd7a952e40", null ],
[ "FlatMachine", "structfsml_1_1FlatMachine.html#a939aa63ea93b644c498cf2e31f67499f", null ],
[ "~FlatMachine", "structfsml_1_1FlatMachine.html#af9260de8b6528b4d8839d3a21b7dd68c", nu... |
import React from 'react'
import { Row, Col, Image } from 'react-bootstrap'
import Header from '../components/Header/customHeader'
import * as actions from '../../redux/actions'
import { connect } from 'react-redux'
import { CircularProgress } from '@material-ui/core'
import {withRouter} from 'react-router-dom'
import... |
import React from "react";
import { Link } from "gatsby";
import Menu from "./menu";
import styles from "./layout.module.scss";
const Header = ({ location, title }) => {
const rootPath = `${__PATH_PREFIX__}/`;
const isRootPath = location.pathname === rootPath;
let headerTitle = isRootPath ? (
<h1 className... |
$(function () {
$('.close').click(function () {
$('#info').fadeOut(500)
});
});
// Handle full screen mode toggle
// toggle full screen
function toggleFullScreen() {
if (!document.fullscreenElement && // alternative standard method
!document.mozFullScreenElement && !document.webkitFulls... |
import messageConstants from '../constants/message_constants';
export const receiveMessage = msg => ({
type: messageConstants.MESSAGE_RECEIVED,
msg
});
export const submitMessage = msg => {
socket.emit('messageUp', msg);
return { type: messageConstants.SUBMIT_MESSAGE };
};
|
import React from "react";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faUpload,
faSearch,
faCog,
faComment,
faBell,
faBars,
faWindowClose,
} from "@fortawesome/free-solid-svg-icons";
import logo from "../images/logo.jpg";
const Navbar = () => {
return (
<>
<sec... |
import colorPalettes from "utils/colorPalettes";
// Structure to define the relation among the type of information, the palette to use and
// the order to assign the colors in the palette to the values (if any)
const match = {
fc: {
palette: "rainbowFc",
sort: [10, 9.5, 9, 8.5, 8, 7.5, 7, 6.5, 6, 5.5, 5, 4.5... |
cc.Class({
extends: cc.Component,
properties: {
sp1: cc.Node,
sp2: cc.Node
},
start: function() {
this.updateFrame = 1, cc.director.getCollisionManager().enabled = !0, this.sp1.active = !0,
this.sp2.active = !1, this.sp2.scaleX = 1.1, this.sp2.scaleY = 1.1;
},
... |
//var Chart = require('chart.js/Chart');
function randomLine() {
var t = 30000;
var i = -30000;
return Math.floor(Math.random() * (t - i)) + i;
};
function randomBar() {
return Math.round(100 * Math.random());
};
function mountCharts() {
var chartLine = document.getElementById('chartCashFlow'... |
const axios = require('axios');
let todos;
axios.get('https://hlv7793ve8.execute-api.us-east-1.amazonaws.com/jsontest')
.then((response) => {
todos = response.data;
console.log(todos[0].name);
})
.catch((err) => console.log(err));
// async / await approach
async function AWSTest() {
t... |
/*=========================================================================================
File Name: router.js
Description: Routes for vue-router. Lazy loading is enabled.
----------------------------------------------------------------------------------------
Item Name: Vuexy - Vuejs, HTML & Laravel Admin Da... |
(function () {
"use strict";
/*global $scope*/
describe("serviceId", function () {
var $window, $compile, ContentsService, markup, form, queryResult;
beforeEach(inject(function (_$injector_) {
$window = _$injector_.get("$window");
$compile = _$injector_.get("$compile");
ContentsServic... |
import { connect } from 'react-redux';
import * as ComicsActions from '../../../redux/comics/actions';
import View from './comics';
import { Actions } from 'react-native-router-flux';
// nos subscribimos a los cambios de valor de estas valores
const mapStateToProps = (state) => {
return {
isFetching: state.com... |
'use strict';
angular.module('SearchSetupService', [])
.factory('SearchSetup', function(DataProcessing) {
var searchFormFields = function () {
var resultObj = {};
// step radio list
resultObj.stepRLOptions = {
label: 'services.crm.search.steptype.step',
data: [
{"id": 1... |
/**
@Name:layuiAdmin 主页示例
@Author:star1029
@Site:http://www.layui.com/admin/
@License:GPL-2
*/
layui.define(function (exports) {
var admin = layui.admin;
//回复留言
admin.events.replyNote = function(othis){
var nid = othis.data('id');
var nindex = othis.data('index');
var notify... |
// main body
// ------------------------------
let newCardWindow = document.getElementById("newCardWindow");
let newCardInput = document.getElementById("addCardInput");
let doneButton = document.getElementById("doneButton");
let okWindow =document.getElementById("okWindow");
let okWindow2 =document.getElementById("ok... |
/*global define, alert, Howler */
// Array Remove - By John Resig (MIT Licensed)
Array.prototype.remove = function(from, to) {
var rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;
return this.push.apply(this, rest);
};
define(['player', 'platform', 'control... |
import React from 'react'
import data from '../../data'
import Product from '../product'
function HomeScreen() {
return (
<div className="row center">
{
data.products.map(product => {
return <Product key={ product._id } product={product} />
} )
}
... |
function sendCategory(category,sex) {
var a=category
var b=sex;
window.location.href = "/ssm/index?category="+a+"&sex="+b;
} |
import { h } from 'preact';
import { useInView } from 'react-intersection-observer';
import Section from "./../../components/section"
import style from './style.css';
const Wrapper = ({ initialInView, height, children }) => {
const { ref, inView } = useInView({
// Add any options here (https://www.npmjs.com/packag... |
import React, {useEffect, useState} from 'react';
import { Row, Col } from 'antd';
import axios from 'axios';
import CategoryComponent from './CategoryComponent';
import ProductItem from './../../components/ProductItem';
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
... |
const chai = require('chai')
const chaiHttp = require('chai-http')
const chaiSpies = require('chai-spies')
const faker = require('faker')
const { expect } = chai
const UserController = require('../../../server/controllers/users')
chai.use(chaiHttp)
chai.use(chaiSpies)
describe('Users controller', () => {
let req... |
import * as store from "./store.js";
import * as ui from "./ui.js";
import * as webRTCHandler from "./webRTCHandler.js";
import * as constants from "./constants.js";
import * as strangerUtils from "./strangerUtils.js";
let socketIO = null;
export const registerSocketEvents = (socket) => {
socketIO = socket... |
var express = require("express");
var app = express();
app.set("views", __dirname + "/views");
app.set("view engine", "ejs");
app.use(express.static(__dirname + "/static"));
app.get("/cars", function (request, response){
response.render("cars");
})
app.get("/cats", function (request, response){
response.render(... |
/* eslint-disable strict, new-cap */
'use strict';
const request = require('request');
const zlib = require('zlib');
const tar = require('tar');
const headers = {
'Accept-Encoding': 'gzip',
};
request({ url: 'http://localhost:3000/download?fileId=123', headers })
.pipe(zlib.createGunzip()) // unzip
.pipe(tar.E... |
import fetchMock from 'fetch-mock';
import * as Requests from 'services/requests';
describe('Services - Requests', () => {
describe('requestGET', () => {
const data = {
name: 'Jim',
gender: 'male'
};
const url = 'test-url';
beforeEach(() => {
f... |
const { gql } = require("apollo-server");
const bookQuery = gql`
type QueryBook {
books: [Book]
}
`;
|
const initialState = {
keyword: "",
category : "",
surveys: [{'title':'d'},],
error: null,
}
export default function surveys(state = initialState, action){
switch(action.type) {
case "SELECT_CATEGORY" :
return{...state, category : action.category};
case "SEARCH_SURVEY"... |
import React from "react";
import PropTypes from "prop-types";
import { Waypoint } from "react-waypoint";
import OompaCard from "./OompaCard";
import LoaderComponent from "./LoaderComponent";
const OompasGrid = ({ data, size, setSize, searchValue, isResultEmpty }) => {
const handleNextPage = () => {
const total... |
const { injectBabelPlugin, getLoader } = require('react-app-rewired');
const path = require('path');
const theme = require('./theme')
const fileLoaderMatcher = function(rule) {
return rule.loader && rule.loader.indexOf(`file-loader`) != -1;
}
const resolve = function(dir) {
return path.join(__dirname, '.', dir)... |
var http = require('http');
http.createServer((req, res) => {
// 인자를 파싱한 url
var _url;
// method name을 소문자로 사용하는 client에 대해서 대문자로 통일
req.method = req.method.toUpperCase();
console.log(req.method + ' ' + req.url);
res.end('The Current time is ' + Date.now());
}).listen(3000);
console.log('Serv... |
var searchData=
[
['q_5flevel',['q_level',['../structPagerRedrawData.html#aa4b6264cb3765622bc9592e1288481c4',1,'PagerRedrawData']]],
['qresync',['qresync',['../structImapAccountData.html#a65af7d98fa8ec32e0ce94505f11c1802',1,'ImapAccountData']]],
['quadvalues',['QuadValues',['../quad_8c.html#aa543c1d754d2ee8c48add... |
import React from 'react';
import ReactHowler from 'react-howler';
import music from "assets/backgroundMusic.mp3";
class BackgroundMusic extends React.Component{
constructor(props){
super(props);
}
// This sound file may not work due to cross-origin setting
render () {
const { mute } =... |
/*
Sum the numbers
Write a function sumNumbers which is given an array of numbers and returns the sum of the numbers.
> sumNumbers([1, 4, 8])
13
*/
function sumNumbers(numbers) {
let sum = 0;
for (let i = 0; i < numbers.length; i++) {
sum += numbers[i];
}
return sum;
}
//console.log(s... |
/* eslint-disable react/prefer-stateless-function */
// Won't be stateless for long.
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import SidebarNavigator from '../../core/components/SidebarNavigator';
import UserDetailsHeader from '../../u... |
home_animation = (function() {
var endFrame = 0;
function init()
{
document.getElementById("container").style.display = "block";
TweenLite.to(bg, 0, {scaleX:1, scaleY:1});
frame1();
}
function frame1()
{
TweenLite.to(first_text, 1.4, {opacity:0, top:-300, delay: 3});
TweenLite.to(product... |
app.service('ModalProvider', ['$uibModal', '$log', '$rootScope', function ($uibModal, $log, $rootScope) {
/**************************************************************
* *
* Customer Model *
* ... |
const chalk = require('chalk');
module.exports = function(){
console.log(chalk.yellow(
`EXERCISE 9:
Write a function called "sumTo100" that takes a parameter called "num" and returns the sum of that number and all other numbers up to, and including, 100.
For example:
sumT... |
exports.printMsg= function()
{
console.log("Hello World - GCI 2017");
} |
'use strict';
const path = require('path');
const nopt = require('nopt');
const utils = require('./utils');
const vars = require('./vars');
const run = require('./run');
const npmconf = require('../node_modules/npm/lib/config/core.js');
const npmCommands = {i: true, install: true};
module.exports = function (args)... |
import React from 'react';
import { connect } from 'react-redux';
import { fetchCoinChart } from '../actions';
import { selectDuration } from '../actions';
import * as d3 from 'd3';
class CoinChart extends React.Component {
componentDidMount() {
this.props.fetchCoinChart(this.props.cid, this.props.dura... |
import render from './render.js';
import ingredients from './ingredients.js';
import ingredientToOption from './ingredient_to_option.js';
import { addPizza } from './pizza_management.js';
const options = ()=> ingredients.map(ingredientToOption).join('\n');
const formHTML = `
<form>
<h2>Create your own pizza</h... |
const {StyledPageTagsDialog} = require("./PageTagsDialog.style");
import DialogContent from "~/components/atoms/dialog/DialogContent";
import {Grid, ListItem} from "@material-ui/core";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableHead from "@material-ui/c... |
import Navbar from './nav'
import Plot from './plots'
import About from './about'
import MyForm from './form'
import Footer from './footer'
function App() {
return (
<div className="App">
<Navbar/>
<Plot/>
<About/>
<MyForm/>
<Footer/>
</div>
);
}
export default App;
|
import React from 'react'
import ReactPlayer from "react-player";
import Grid from "@material-ui/core/Grid";
import GreenButton from '../GreenBtn'
import withRouter from "react-router/es/withRouter";
import './style.css'
import WOW from 'wow.js'
class GiftComponent extends React.Component {
state = {
video... |
/**
* Created by StarkX on 08-Apr-18.
*/
const mongoose = require('mongoose');
const Token = require('../schema/tokenSchema');
const tokenGenerator = require('../../lib/tokenGenerator');
Token.statics.getAccessToken = (bearerToken) => {
return tokenModel
.findOne({ accessToken : bearerToken })
.p... |
var Service = require('node-linux').Service;
// Create a new service object
var svc = new Service({
name:'Vandelay',
description: 'Vandelay-Inspector',
script:'../../server.js',
});
// Listen for the install event, which indicates that the process is available as a service.
svc.on('install',function(){
svc.start(... |
/* eslint-disable no-param-reassign */
import { fromJS } from 'immutable'
import { createReducer } from 'bypass/utils/index'
import { toObject, timeConverter, parseBins, unformatSearch, SearchState } from 'bypass/app/utils/utils'
import * as actions from '../constants'
const initialState = fromJS({
showSearch: false... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const path = require("path");
exports.systems = {};
function shouldIgnoreFolder(pluginName) { return pluginName.indexOf(".") !== -1 || pluginName === "node_modules"; }
class System {
constructor(id, folderName) {
... |
import React from "react";
import { List, ListItem, ListInput, Block, Row, Button, Link, Col } from 'framework7-react';
import { dict } from '../../Dict';
import crypto from 'crypto-js';
const TodoForm = (props) => {
if (true) {
function involvementChecked(workInvolvement) {
var flag = false
props.i... |
import firebase from '../../firebase';
import { Redirect } from 'react-router';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
function Handleclickforqr(phone) {
//console.log("hello");
console.log(phone);
//var duration = 3000;
//in milliseconds. therefore 3 seconds.
//which ... |
/*
* description:使用原生js封装基本 dom 操作功能
* author: fanyong@gmail.com
*
*/
var domUtil = {
/* version v0.1*/
hasClass: function(obj, className) {
var classNames = obj.className; // 获取DOM中的 class 内容
var classNameArr = classNames.split(/\s+/); // 将字符串 split 为数组
for (var item in classNameAr... |
import React from "react";
const LabelInfo = ({ labelfor, labeltitle }) => {
return <label htmlFor={labelfor}>{labeltitle}</label>;
};
export default LabelInfo;
|
var Promise = require('bluebird');
var _ = require('lodash');
var app = require('../../server/server');
module.exports = function(Costcenter) {
Costcenter.afterRemote('**', function(ctx, costcenter, next) {
var findOrders = Promise.promisify(app.models.Purchaseorder.find, app.models.Purchaseorder);
function... |
// shows the game and you can play it yay
let questionsIndex = 0
let answers = []
let score = 0
const renderGamePlay = () => {
app.innerHTML = `score: ${score}`
titleBox.innerHTML = `<h2><i class='icon star is-medium'></i> ${selectedGame.title}</h2>`
// create element to display the question and append to #app... |
// Aula 17 - 20/09/2021
// Métodos Avançados
// ex07Splice.js
// splice = emenda
// Splice() é o método que serve para remover e adicionar elementos
// de uma array
// Sintaxe array.splic(inicio, quantidade, item1, item2...)
// quantidade é opcional - números inteiro a eliminar no array
let frutas = ['Banana','Laranja... |
var User = require('./user.server.model'),
Quiz = require('../quiz/quiz.server.model'),
Test = require('../test/test.server.model');
exports.getUsers = function (req, res, next) {
User.find({})
.exec(function (err, users) {
if (err) res.status(500).send(err);
else res.jso... |
import { withRouter } from 'react-router-dom'
import requireAuth from '../../decorators/requireAuth'
import Home from './Home'
export default withRouter(requireAuth(Home));
|
/* eslint-env node */
'use strict';
var gulp = require('gulp');
var autoprefixer = require('gulp-autoprefixer');
var browserSync = require('browser-sync');
var concat = require('gulp-concat');
var connect = require('gulp-connect-php');
var del = require('del');
var eslint = require('gulp-eslint');
var filter = require... |
(function(){
var canvas = document.getElementById('hexmap');
var tipCanvas = document.getElementById("tip");
var tipCtx = tipCanvas.getContext("2d");
var canvasOffset = $("canvas").offset();
var offsetX = canvasOffset.left;
var offsetY = canvasOffset.top;
var xPadding = 30;
v... |
import { CUBEPROJ_NONE, DETAILMODE_MUL, FRESNEL_SCHLICK, SPECOCC_AO, SPECULAR_BLINN } from '../../../src/scene/constants.js';
import { Color } from '../../../src/core/math/color.js';
import { Material } from '../../../src/scene/materials/material.js';
import { StandardMaterial } from '../../../src/scene/materials/stand... |
const h = require("./helper");
const knex = require("./../config/knex");
const Common = require("../model/common.model");
const patient = {};
patient._formatAllergies = allergies => {
if (allergies.length > 0) {
const formattedAllergies = h.map(allergies, function (obj) {
return {
mrno: obj.mrno,
... |
import React, { Component } from 'react';
import AppHeader from '../app-header';
import SearchPanel from '../search-panel';
import ItemStatusFilter from '../item-status-filter';
import AppItemList from '../app-item-list';
import Popup from '../popup';
import ItemAddForm from '../item-add-form';
import './App.css';
e... |
export * from "./provider";
export * from "./hook";
|
'use strict';
/**
* @requires ../node_modules/fuse.js/dist/fuse.js
* @requires ../node_modules/@babel/polyfill/dist/polyfill.min.js
*/
class GhostSearch {
constructor(args) {
this.check = false;
const defaults = {
host: '',
key: '',
version: ... |
controllers
.controller('logoutController', function($state, AccountManager) {
console.log('logout controller');
var vm = this;
AccountManager.logout();
}); |
let targets = [];
let title;
let titleOpacity = 255;
function setup() {
createCanvas(windowWidth, windowHeight);
title = loadImage('./assets/title.png');
imageMode(CENTER);
textAlign(CENTER);
}
function draw() {
background(0);
noStroke();
if (titleOpacity > 0.01) {
tint(255, ... |
/**
* Created by m314029 on 8/7/2017.
*/
'use strict';
/**
* Constructs the API to call the backend for custom hierarchy.
*
* @author m314029
* @since 2.11.0
*/
(function(){
angular.module('productMaintenanceUiApp').factory('CustomHierarchyApi', customHierarchyApi);
customHierarchyApi.$inject = ['urlBase', ... |
import React from 'react'
import { useHistory } from 'react-router'
import './style.scss'
const dialogType = {
login: {
title:'Join with us',
desc:'You are not logged in. Please login & try again.'
},
empty: {
title:'Order us services',
desc:'Your cart is empty. Please order ... |
import React, {Component} from 'react';
import moment from 'moment';
import Alert from "./partials/Alert";
import {Redirect} from 'react-router-dom';
import PropTypes from 'prop-types';
import User from "../data/User";
class Login extends Component {
constructor(props) {
super(props);
this.state =... |
import React, { Component } from 'react';
import './App.css';
import { Switch, Redirect, Route } from 'react-router';
import { BrowserRouter, Link } from 'react-router-dom';
import Clients from './components/Clients/Clients';
import SingleClientComponent from './components/Clients/SingleClientComponent';
import ClientA... |
import { Button, Card, Grid, Paper } from "@mui/material";
export const Home = () => {
return (
<div>
<Paper
elevation={1}
sx={{
width: "98.5vw",
height: "98vh",
backgroundColor: "slategray",
margin: ".5vw",
marginTop: "1vh",
}}
... |
import React, {Component} from 'react'
export default class CandyList extends Component {
render() {
return (
<section className="candies">
<h1>Candy List</h1>
{
this.props.candies.map(candie =>
<div key={candie.id}>
<div><stro... |
import Joi from "joi";
const ValidateDTO = class ValidateDTO {
static getProduct(params) {
const schema = Joi.number().required();
return schema.validate(params);
}
};
export default ValidateDTO;
|
'use strict'
module.exports = (app, db) => {
app.get('/bookmarks', (req, res) => {
var sess = req.session
if (typeof sess.userid != 'undefined'){
db.account.findOne({
where: {userid:sess.userid},
include: [{model: db.bookmark, include: [db.scanProfile, db.trigger]}]
})
.... |
module.exports = {
View: {},
Model: {},
Layout: {},
Collection: {},
Controller: {}
};
|
/* Project specific Javascript goes here. */
/*
Formatting hack to get around crispy-forms unfortunate hardcoding
in helpers.FormHelper:
if template_pack == 'bootstrap4':
grid_colum_matcher = re.compile('\w*col-(xs|sm|md|lg|xl)-\d+\w*')
using_grid_layout = (grid_colum_matcher.match(self.label_clas... |
import React from "react";
import Image from "next/image";
const index = () => {
return (
<div style={{ width: "100%" }}>
<Image
src='/images/br_post_page_footer.png'
alt='End of Page Footer'
layout='responsive'
width={2352}
height={724}
/>
</div>
);
};
... |
highway_bus_8042_interval_name = ["臺南<br />航空站","奇美<br />博物館","高鐵<br />臺南站","阿蓮","崗山頭","月世界","古亭","鹿埔","馬頭山","旗山","中埔"];
highway_bus_8042_interval_stop = [
["臺南航空站"], // 臺南航空站
["奇美博物館"], // 奇美博物館
["高鐵臺南站"], // 高鐵臺南站
["崙仔頂","阿蓮分駐所","阿蓮","中正路","工業區","源勝社區","磚子窯"], // 阿蓮
["大埤","南崗山","峰山里","崗山頭","崗山頭溫泉","崗安路","崗山頭市場"], // ... |
import * as d3 from 'd3';
export default function GridChart(ciudades, target) {
const GridChart = {};
const getRubros = (ciudades) => {
let rubrs = []
console.log("ciudades", ciudades)
ciudades.forEach(ciudad => ciudad.irregularidadesEncontradas.forEach(rubro => rubrs.push(rubro.name))... |
import React from "react"
import Layout from "../components/layout"
const services = () => {
return (
<Layout>
<h1>Our Services</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Neque dolorem
ullam, vero sapiente obcaecati provident unde? Quo ipsam itaque quod
... |
var log = require('../log/log');
var authentication = require('../authentication/authentication');
module.exports = angular
.module('login', [
log.name,
authentication.name,
'ui.router',
'ct.ui.router.extras'
])
.config(function ($stateProvider) {
$stateProvider.state('login', {
url: '/login',
views... |
/*
Like projection, filtering an array is also a very common operation. To filter an array we apply a test to each item in the array and collect the items that pass into a new array.
*/
var newReleasesMov = [
{
"id": 1,
"title": "Hard",
"boxart": "Hard.jpg",
"uri": "http://vikask/m... |
const UglyfyjsWebpackPlugin=require("uglifyjs-webpack-plugin");
const webpackMerge=require('webpack-merge');
const baseConfig = require("./base.config");
module.exports=webpackMerge(baseConfig,{
plugins:[
new UglyfyjsWebpackPlugin() //开发时不用这个,不好调试,最终打包再用
]
}
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.