text stringlengths 7 3.69M |
|---|
const path = require('path');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const PACKAGE_NAME = 'test-app';
module.exports = {
entry: {
[PACKAGE_NAME]: './lib-es6/index.js'
},... |
const urls = require('../urls');
const testUrls = {
ssh: [
'ssh://git:foo@github.com/robbiegleeson/gistHub.git',
'ssh://git@github.com/robbiegleeson/gistHub.git',
'ssh://github.com/robbiegleeson/gistHub.git',
'ssh://git:foo@github.com/robbiegleeson/gistHub',
'ssh://git@gith... |
/**
* Created by clicklabs on 4/9/17.
*/
'use strict'
var mongoose = require('mongoose');
//mongoose schema
var SPGigProductsInfoSchema = mongoose.Schema({
profile_id : String,
provider_id : String,
gig_id : String,
category_id : String,
... |
// ---------------------------------------------------- //
// SIMPLE ACCORDION v1.2
// Last update : December, 2017
// Author : BeliG
// Documentation : http://www.design-fluide.com/?p=1416
// ---------------------------------------------------- //
(function($) {
$.fn.simpleAccordion = function(options) {
... |
function bouncer(arr) {
//Only return values that evaluate as true inside the array.
return arr.filter(function(value){
if (value){
return (value);
}
});
} |
/* jscwlib - JavaScript Morse Code Library
*
* Author: Fabian Kurz, DJ1YFK
* Homepage: https://fkurz.net/ham/jscwlib.html
* Repository: https://git.fkurz.net/dj1yfk/jscwlib
*
* The MIT license applies.
*/
function jscw (params) {
var download_svg = "data:image/svg+xml;base64,PHN2ZyB4bWx... |
const { default: $ } = require('xstream')
const Cycle = require('component')
const Factory = require('utilities/factory')
const { makeField } = require('components/Form/Field')
const { makeTextareaField } = require('components/TextareaField')
const pipe = require('ramda/src/pipe')
const prop = require('ramda/src/prop'... |
for (i = 1; i <= 3; i++){
var password = prompt("Members only!");
console.log(i);
if (password === "xxx"){
console.log("Password accepted");
break;
}
else {
if (i >= 3){
console.log("Unauthorized access attempt detected - sent away");
window.location.replace('http://www.platsbanken.se');
}
confirm("The pas... |
import styled from "styled-components";
export default styled.div`
margin: 5vh;
`;
|
/*
* Order Model
*
* This contains defalut Order model.
*/
import mongoose from 'mongoose';
import { strictEqual } from 'assert';
const Schema = mongoose.Schema;
const OrderSchema = new Schema({
items: {
type: 'String',
required: true,
},
info: {
type: 'String',
required: false,
},
product_... |
const mysql=require("mysql");
const database=require("../config/dbconfig");
const upload=require("../config/uploadconfig");
const caseDao={
caseDao(){
return new Promise(function (resolve,reject) {
database.connect("SELECT c_name as '案例名称',GROUP_CONCAT(g_name,'') AS '商品名称',t_d_case.c_img as '案... |
var app = angular.module('mp4', ['ngRoute', 'mp4Controllers', 'mp4Services']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/users', {
templateUrl: 'partials/users.html',
controller: 'UsersController'
}).
when('/userdetails/:id', {
templateUrl: 'partials/userdeta... |
$('.toggle-password').on('click', function () {
$(this).toggleClass('icon-eye');
let input = $($(this).parent('div').find('input'));
if (input.attr('type') === 'password') {
input.attr('type', 'text');
} else {
input.attr('type', 'password');
}
});
$( document ).ready(function() {
... |
var myObject = {
create: function(protoList) {
var copy = {
prototypeList: [],
call: function(funcName, parameters) {
// Check if this object has a function whose name == funcName
if (this.hasOwnProperty(funcName)) {
return this[... |
import React from 'react';
import s from './NewPost.module.css';
function handleNewPostChange(e, updatePost) {
let value = e.target.value;
updatePost(value);
}
function handlePostSubmit(addPost) {
addPost();
}
function NewPost(props) {
return (
<div className={s.newPostWrapper}>
<div>
<te... |
const projectSession = document.querySelector('.projects')
export function loadProjects() {
if (localStorage.length == 0){
projectSession.innerHTML = `<h4 class="projects__empty">Nenhum projeto aqui :/</h4>
<h5 class="projects__clickhere">Para criar um projeto <a class="projects__clickhere" href=".... |
const { STARTING_BALANCE } = require('../config');
class Wallet{
constructor() {
this.balance = STARTING_BALANCE;
}
}
module.exports = Wallet; |
/*global alert: true, ODSA */
$(document).ready(function() {
"use strict";
var config = ODSA.UTILS.loadConfig(),
interpret = config.interpreter, // get the interpreter
settings = config.getSettings(); // Settings for the AV
var av, // for JSAV library object
arr, // for the JSAV ... |
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
var form = new Vue({
el : "main",
data : {
formId : 0,
formSequence : 0,
dataDosen : null,
... |
const SipPhone = require('..');
void async function () {
try {
const sipPhone = new SipPhone('baresip', {
callEstablished: number => console.log(`!!!!!!!!!!a call with ${number} has been established!!!!!!!!!!`),
hangUp: number => console.log(`********the call with ${number} has been... |
const mongoose = require('mongoose');
module.exports = function(mongoUrl){
mongoose.connect(mongoUrl);
const Waiters = mongoose.model('Waiters', {name : String, days: Array});
return{
Waiters
};
}
|
function showNavBar(e) {
e.preventDefault();
$(".nav-header").toggleClass("visible");
}
$(".nav-icon").click(showNavBar);
|
// import logo from './logo.svg';
import './App.css';
import StartRating from './component/startRating'
function App() {
return (
<>
<StartRating />
</>
);
}
export default App;
|
function showSlider (goodsData) {
const sliderFilter = "popularity";
let tempArray = getSortedGoods(getGoodsAccordingToCategory(goodsData), sliderFilter);
let slides = $(".d-block");
slides = $.makeArray(slides);
slides.forEach( (slide, index) => {
slide.alt = tempArray[index].name;
... |
import { useQuery } from '@apollo/react-hooks';
import { useEffect, useState } from 'react';
import SeasonTab from './SeasonTab';
import './ChooseSeason.css';
const ChooseSeason = (props) => {
return (
<div className='container-fluid'>
<div className='row justify-content-center align-items-... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsKeyboardArrowRight = {
name: 'keyboard_arrow_right',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/></svg>`
};
|
import React from 'react'
import TableRow from '../tableRow/TableRow'
const Table = (props) => {
const {data,title} = props
const rows = data.map(row => {
return <TableRow key={row._id} data={row}/>
})
const sum = data.reduce((accumulator, currentValue) => {
return accumulator + currentValue.amount
},0)
r... |
function iteratee(arg) {
if (!arg) return (v) => v
if (typeof arg === 'function') return arg
if (typeof arg === 'object')
return Array.isArray(arg)
? (compare) => compare[arg[0]] === arg[1]
: (compare) => arg === compare || Object.keys(arg).every(key => arg[key] === ... |
import React, {Component} from 'react';
import LoginBox from '../../components/UI/LoginBox/LoginBox';
import AvatarImage from '../../components/UI/AvatarImage/AvatarImage';
import Bubbles from '../../components/UI/Bubbles/Bubbles';
class LoginWindow extends Component {
render () {
return (
<React.Fragm... |
var schedule = require('node-schedule');
var rp = require('request-promise');
weather.rqCloud(getCloud);
var todaysCloud = [];
for (let idx = 0; idx < 24; idx++) todaysCloud.push(-1);
exports.powerFlowJob = powerFlowJob;
exports.powerJob = powerJob;
exports.powerJob2 = powerJob2;
exports.init = function (ca... |
import React from 'react'
const Gallery = (altText) => {
return (
<div>
<img alt={altText.alt} src={altText.source} />
</div>
)
}
export default Gallery |
jQuery(document).ready(function($) {
$('.datepicker').pickadate({
format: 'mmmm dd, yyyy',
onStart: function() {
var date = new Date()
this.set('select', [date.getFullYear(), date.getMonth(), date.getDate() + 1]);
}
});
if($('form').hasClass('new-program')){
$('select').select2({
... |
var app = angular.module("myApp", ['ngRoute', 'MainController', 'StudentsController', 'ui.chart', 'ngSanitize', 'TeacherController'])
.config(function ($routeProvider, $locationProvider) {
//var baseUrl = $("base").first().attr("href");
//console.log("base ur... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import MovieCard from "./MovieCard";
import { addMovie } from "../redux";
import { Alert } from "react-bootstrap";
function MovieList() {
const movielist = useSelector(state => state.movielist);
const dispatch = useDi... |
import {encodeJson, parse} from 'jsedn'
import {helpers, mori} from 'datascript-mori'
import typeOf from 'typeof'
const MORI = `mori`
const DS_MORI = `datascript-mori`
const PLUGIN_NAME = `babel-plugin-datascript`
const ARRAY = `array`
const OBJECT = `object`
const STRING = `string`
const KEY_VAL = `val`
const DEFAUL... |
const express = require('express');
const router = express.Router();
//Ground Model
const Ground = require('../../../models/groundModel')
//Get Grounds from api/grounds
router.get('/', (req,res)=>{
Ground.find()
.then(Grounds=> res.json(Grounds))
});
//Get Grounds by Ground_ID
router.get('/:id',(req... |
/* 🤖 this file was generated by svg-to-ts*/
export const EOSIconsNetworkCell = {
name: 'network_cell',
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-opacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/></svg>`
};
|
var walk = require('./walk'),
fileStats = require('./file-stats');
module.exports = function(dir, config) {
var stats = {};
function filter(name, stat) {
return stat.isDirectory() && name === '.git';
}
stats.main = function() {
return fileStats(dir, config.main);
}
stats.tree = function() {
... |
import React, {useState} from 'react';
import {TableStyle} from '../../../assets/styles/table'
import TableView from '../../../components/TableView'
//-------------------------------------------------------
const dateFormat =(date)=>{
let dateFinal = date.slice(0,10);
return dateFinal
}
export default ({data, ha... |
/**
* 全局属性和方法
*/
$.extend(true, window.gb || (window.gb = {}), {
caches: {
},
init: function() {
//子页面框架初始化
this.subframe();
//初始化表格
$("#data-table").bootstrapTable();
//缓存表格操作列html
this.table.cacheOps();
//初始化模板
this.vm = new Vue({
el: '#tmpls',
data: {
role: {}
}
});
},
existN... |
export { CLIENTS } from './clients';
export { createServer } from './server';
|
// app.shoppingListDirectiveController.js
(function() {
"use strict";
angular.module("ShoppingListDirectiveApp")
.controller("ShoppingListDirectiveController", ShoppingListDirectiveController);
function ShoppingListDirectiveController() {
let list = this;
list.cookiesInList = cookiesInList;
f... |
var searchData=
[
['damping',['damping',['../class_smooth_follow2.html#a1ed62a9925041bfe519860a66a1e32a1',1,'SmoothFollow2']]],
['data',['data',['../class_notification.html#a0ede738bfcd21259e6eb4d86de62c826',1,'Notification']]],
['distance',['distance',['../class_smooth_follow2.html#aab094c74183e2da4f9bed5fb3e3f5... |
var class_set_texture_from_u_r_l =
[
[ "imageRatioXxY", "class_set_texture_from_u_r_l.html#a7b760fa9dfbf54476398046cad415789", null ],
[ "mapSize", "class_set_texture_from_u_r_l.html#a3bd56e10319aa3c56b4470b956be012d", null ],
[ "reload", "class_set_texture_from_u_r_l.html#a03dffbbe192d467eb906b41bc58646bf"... |
'use strict';
/**
* @ngdoc overview
* @name projetS6App
* @description
* # projetS6App
*
* Main module of the application.
*/
angular
.module('projetS6App', [
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'xml',
'ngVis',
'LocalStorageModule',
... |
var searchData=
[
['eda_2emd',['EDA.md',['../EDA_8md.html',1,'']]],
['estadistica_2ejava',['Estadistica.java',['../Estadistica_8java.html',1,'']]]
];
|
'use strict';
/* Controllers */
var tamilPaarvaiControllers = angular.module('tamilPaarvaiControllers', []);
tamilPaarvaiControllers.controller('HomeCtrl', ['$scope', '$http', 'StorageService', 'CategoryService',
function($scope, $http, storageService, categoryService) {
$scope.displayHome = function () { ... |
/* ******************************************************
REQUIRED VARIABLE
****************************************************** */
//Chat
var chatClasses = ["color1","color2","color3","color4"];
var chatClassIndex = 0;
var chatUsernameClass = {}
//File
//window.addEventListener("load", Ready);
var SelectedFile;
va... |
function getCheckedMails(mail) {
$("#check-info").append(mail + ',');
let check_info = $("#check-info").html();
let n = [check_info];
alert(n[0]);
}
/*function getUnCheckedMails(mail){
mail = [mail, 4];
alert(mail);
}*/
function select_all() {
let select_all = document.getElementById("sele... |
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const download = require('download-git-repo');
const ora = require('ora');
const {
prompt
} = require('inquirer');
const {
resolve
} = require('path');
const questions = [{
type: 'input',
name: 'project',
... |
import UWA from '../../src/Auth/UWA';
import { assert, expect } from 'chai';
describe('UWA', () => {
describe('getDigest', () => {
it('should return an empty string if the input json is empty or null', () => {
assert.equal('', UWA.getDigest(''));
});
it('should return a predictable digest for a gi... |
import path from 'path';
import chokidar from 'chokidar';
import { writeFile, copyFile, makeDir, copyDir, cleanDir } from './lib/fs';
import pkg from '../package.json';
import { format } from './run';
import { exec } from './lib/cp';
export function dateFormat(date, fmt) {
const o = {
'M+': date.getMonth() + 1, ... |
/**
* 화면 초기화 - 화면 로드시 자동 호출 됨
*/
function _Initialize() {
// 단위화면에서 사용될 일반 전역 변수 정의
$NC.setGlobalVar({
// 체크할 정책 값
policyVal: {
CM120: "", // 로케이션 표시
CM121: "", // 로케이션 존 길이
CM122: "", // 로케이션 행 길이
CM123: "", // 로케이션 열 길이
CM124: "", // 로케이션 단 길이
}
})... |
/*
*
* FUNCTIONS:
*
* 0. Functions are reusabe blocks of code that accept inputs, process them, and return
* a new data value.
*
* 1. Functions are defined with the function keyword, followed by a name,
* followed by parentheses ().
*
* 2. The parameter may include parameter names separated by commas.
*
* 3. The ... |
// Listens to specific events that could be done by the user like mouse click or key press
/* var button = document.getElementsByTagName("button")[0];
button.addEventListener("click", function () {
console.log("click!!!");
}); */
// Button that adds new bullet points to list. It does not add empty strings
var bu... |
angular.module('MainApp')
.config(function($routeProvider,$locationProvider){
$routeProvider
.when('/', {
templateUrl: 'template/home.html',
controller: 'userController',
controllerAs: 'user'
})
.when('/profile', {
templateUrl: 'template/profile.html',
controller: 'profileControll... |
$(document)
.ready(function() {
$("#generate-string")
.click(function(e) {
$.ajax({
type: "POST",
url: '/url',
contentType: 'application/json',
data: JSON.stringify({
"url": $("input[name='form-input-url']")
.val()
}),
... |
$(function(){criteriaInit();resetAll();});
var criteriaSortedTable=null;
function criteriaInit(){
criteriaSortedTable=$('#contestantList').dataTable({"bSort": false, "bLengthChange":false, "sPaginationType":"two_button", "bAutoWidth":false, "iDisplayLength":10, "bFilter": false,"aoColumns": [{"sType":"html"}]});
... |
import React, {Component} from 'react';
import Label from './LabelComponent';
export default class Link extends Component {
constructor(props) {
super(props);
this.props.className = props.className;
this.props.type = props.type;
this.props.label = props.label;
this.props.ro... |
var DS_HopDong;
var detailInit_e;
var HopDong_ID;
$(document).ready(function () {
//document.oncontextmenu = function () { return false; }
$("#main-menu-min").click();
$("#wd_giahan").kendoWindow({
draggable: false,
height: "auto",
width: "60%",
modal: true,
res... |
export { default as Orgs } from './Orgs';
|
$( document ).ready(function() {
/* var col_num = get_geo_policy_column();
if(col_num > -1) {
check_and_convert_geo_tag_column(col_num);
}*/
});
var tags_object = {};
var tags_object_parsed = false;
function parse_and_save_tags() {
if(tags_object_parsed) return;
var json = JSON.parse($("#id_json_field")[0].va... |
$(document).ready(function(){
$('html').addClass($.fn.details.support ? 'details' : 'no-details');
$('details').details();
}); |
// 查询用户购买记录
var DM_UserTradeIssueRecord = function(){
MessageMachine.call(this);
// url
this.url = url_host+"/user/trade-records/";
// template
this._template=
'<div class="umar-ts bd-b-dashed"> '+
' <div class="ub ub-fh"> '+
' <div class="ub-f2 c-left" >{{createTime}}</div> '+
... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import Arrow from '../../assets/images/next.png'
const Container = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
`
class Role extends Component... |
import React, {Fragment} from 'react';
import {withStyles} from '@material-ui/styles';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Switch from '@material-ui/core/Switch';
import Button from "components/CustomButtons/Button.js";
import GridContainer from 'components/Grid/GridContainer'
impo... |
import React from 'react';
import Modal from './Modal'
class App extends React.Component {
constructor() {
super();
this.state = {
rows: [],
showModal: false,
selected: ''
}
}
showModal() {
this.setState({
showModal: !this.state.showModal
})
}
selectRow(value) {
... |
import scoreModule from '../modules/score.module';
/**
* Score 資料表
*/
/* Score GET 取得 */
const scoreGet = (req, res) => {
scoreModule.selectAllScore().then((result) => {
res.send(result); // 成功回傳result結果
}).catch((err) => { return res.send(err); }); // 失敗回傳錯誤訊息
};
/* Score POST 新增 */
const scorePost =... |
(function () {
'use strict';
angular
.module('app.admin.users',[])
.directive('usersList',function () {
return {
restrict: 'E',
templateUrl: 'scripts/admin/users.html',
controller:'AdminUsersCtrl',
controllerAs:'ctrl'
};
})
.con... |
function Basket(){
this.oldfoodarray = []
this.goals = []
this.progressArray = []
this.progressObj = {}
}
Basket.prototype = {
addFoodtoBasket: function(object){
this.saveFoodItemToDataBase(object)
},
saveFoodItemToDataBase: function(object){
var self = this
$.ajax({
url: '/foods',
... |
import './css/style.css';
import './css/animate.css'
import {index} from './js/index.js';
index();
|
/*
Author: Pradeep Khodke
URL: http://www.codingcage.com/
*/
/*
Author: Pradeep Khodke
URL: http://www.codingcage.com/
*/
$('document').ready(function()
{
/* validation */
var nameregex = /^[a-zA-Z ]+$/;
$.validator.addMethod("validname", function( value, element ) {
return this.optional( e... |
function requestPOST($http, func, data, success, failed){
request('POST',$http, func, data, success, failed);
}
function requestGET($http, func, success, failed){
request('GET',$http, func, null, success, failed);
}
function request(method, $http, func, data, success, failed){
var url = func;
if(func.... |
window.PlaceModel = Parse.Object.extend({
className: "Place",
initialize: function(options){
Parse.Object.prototype.initialize.apply(this, arguments);
this.ratings = new ForPlaceRatingsCollection([], {
place: this
});
},
getRatings: function(cb){
if(this.ratings.length){ //have ratings already
cb();... |
var form = document.querySelector(".needs-validation");
form.addEventListener("submit", function(event) {
// checkValidity is a builtin function for checking the validity
if (form.checkValidity() === false) {
// to prevent the default event
event.preventDefault();
// we are using stopPropagation to n... |
var express = require('express');
var router = express.Router();
var auth = require('./authenticator');
var Page = require('../models/pages');
var Question = require('../models/questions');
var Answer = require('../models/answers');
var Marking = require('../models/markings');
var Correction = require('../models/corr... |
//Global Variables
let ALL_ELEMENTS = [] // Contains all the elements
let PAGE_MAP = {} // A mapping of elements to i
let utterThis = new SpeechSynthesisUtterance("Welcome to the Screen Reader")
let CURRENT_ELEMENT = {
// a function that updates this.value to newElement and reads the element
setAndSpeak: (newEl... |
var Modeler = require("../Modeler.js");
var className = 'Typedemographicsaccommodation';
var Typedemographicsaccommodation = function(json, parentObj) {
parentObj = parentObj || this;
// Class property definitions here:
Modeler.extend(className, {
type: {
type: "Typedemographicsaccommodationtype",
... |
import React, { lazy, Suspense } from "react";
import { BrowserRouter, Route, Switch, withRouter } from "react-router-dom";
import Container from "@material-ui/core/Container";
import AppBar from "./client/commons/appBar/appBar.component";
import "./App.css";
import ScrollTop from "./client/commons/appBar/scrollTop.mo... |
import React, { PropTypes } from 'react'
class Add extends React.Component {
constructor(props){
super(props);
this.state={
isComplete:false
}
}
handleClick(){
let value=this.refs.inputVal.value;
let data=this.props.todo;
let newLi={newthing:value,isComplete:this.state.isComplete}
... |
import React, { Component, PropTypes } from 'react';
import { Provider } from 'react-redux';
import { loadConfig } from 'shared/actions/Config';
import Assignments from 'mgmt/TaskAssignments/containers/Assignments';
class Root extends Component {
componentWillMount() {
this.props.store.dispatch(loadConfi... |
var Urna = {
totalEleitores: 1000,
votosValidos : 800,
votosBrancos : 150,
votosNulos : 50,
calculaPercentual : function(value) {
return `${value / this.totalEleitores * 100}%`;
},
getPercentualVotosValidos : function() {
return 'Votos válidos = '.concat(this.calculaPercentual(... |
(function (App) {
'use strict';
App.Model.CountryModel = Backbone.Model.extend({
initialize: function (iso, year, isMSME) {
this.year = year;
this.iso = iso;
this.isMSME = !!isMSME;
},
url: function() {
var apiUrl = this.isMSME ? MSME_API_URL : API_URL;
return apiUrl + '... |
define(['backbone','text!templates/all.html','views/longPost'], function(Backbone , AllTemplate , LongPostView) {
var AllView = Backbone.View.extend({
el : $('#main'),
template : _.template( AllTemplate ),
initialize : function(){
this.posts = window.col;
this.posts.bind... |
"use strict";
/**
* @class
*/
DIC.define('DemoApp.test.tool.DocsTest', new function () {
/**
* @description test {@link DemoApp.tool.Docs} has a control
* @memberOf DemoApp.test.tool.DocsTest
* @param {EquivalentJS.test.Unit.assert} assert
*/
this.testHasControl = function (assert) {
... |
(function () {
'use strict';
VenuuDashboard.Router.reopen({
rootURL: '/dashboard/',
location: 'auto'
});
function wizardPages() {
/*jshint validthis:true */
this.route('pricing', { path: 'pricing' });
this.route('types', { path: 'types' });
this.route('services', { path: 'services' });... |
const {
insertIntoUniqueTable,
insertIntoGenericTable
} = require('./populate-sql-methods')
const {
createShipObj,
createUserObj,
createShipDetailsObj
} = require('./populate-db')
const {
shipHeader,
usersHeader,
shipDetailHeader
} = require('../schema/amenities_header')
const pgp = require('pg-promise'... |
var searchData=
[
['goalie_5fid',['GOALIE_ID',['../group__config.html#gaca00d4d6b543d32559444f5dca4969ed',1,'GOALIE_ID(): robot_types.cpp'],['../group__config.html#gaca00d4d6b543d32559444f5dca4969ed',1,'GOALIE_ID(): robot_types.cpp']]],
['goals_5fblue',['goals_blue',['../structRefComm_1_1Packet.html#a8e81... |
import YouTube from "@u-wave/react-youtube";
import { Button, Input, Modal } from "antd";
import React from "react";
const { Search, TextArea } = Input;
const NewVideoModal = props => {
return (
<Modal
destroyOnClose
title="Add a new YouTube video"
width={600}
visible={props.visible}
... |
function init() {
var selector = d3.select("#selDataset");
d3.json("samples.json").then((data) => {
console.log(data);
var sampleNames = data.names;
sampleNames.forEach((sample) => {
selector
.append("option")
.text(sample)
.pr... |
import {render} from '@testing-library/react';
import {Spinner} from '../components/spinner/spinner';
describe('Testing Spinner component', () => {
let component;
beforeEach(() => {
component = render(<Spinner/>)
})
test('Snapshot test', () => {
expect(component).toMatchSnapshot();
... |
const express = require( 'express' );
const aws = require( 'aws-sdk' );
const multerS3 = require( 'multer-s3' );
const multer = require('multer');
const path = require( 'path' );
const url = require('url');
const router = express.Router();
const accessKeyID = require("../config/keys").AWSAccessKeyID;
const secretAccess... |
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var bcrypt = require('bcrypt-nodejs');
var dbConfig = require('../config/dbConfig');
var constants = require('../config/constants');
var dbUtility = require('../utility/dbConnection');
module.exports = function(passport) {
pas... |
class Project {
constructor(name, repo_url) {
this.name = name;
this.repo_url = repo_url;
}
}
module.exports = Project; |
function mostrar()
{
let destino;
//como es una cantidad tengo que pasarla a entero y number
destino = document.getElementById("txtIdDestino").value;
//solo me dice que si esta entre 7 y 11 decir que es de mañana
switch (destino) {
case "Ushuaia":
alert("Su destino se encuentra en el Sur");
break;
cas... |
import React, { Component } from 'react';
import propTypes from 'prop-types';
import { View, Picker, StyleSheet } from 'react-native';
import { Text, Icon } from 'react-native-elements';
import constants from '../../constant';
class NumberPicker extends Component {
constructor(props) {
super(props)
this.state =... |
import React, { Component } from 'react';
import { Link, Route } from 'react-router-dom';
const MenuLink = ({ to, activeOnlyWhenExact, label }) => {
return (
<Route path={to} exact={activeOnlyWhenExact} children={({ match }) => {
var active = match ? 'active-bg' : '';
return (
... |
const assert = require('assert')
let x = 0;
function foo() {
x++;
return {
bar() { x++ }
}
}
foo().bar();
assert.equal(x, 2)
|
import React from 'react';
import Vote from '../Vote'
import propTypes from 'prop-types';
import RemoveComment from '../RemoveComment'
import Avatars from '../Avatars'
import {
withStyles,
ExpansionPanelDetails, Typography,
ExpansionPanelActions,
} from '@material-ui/core';
const styles = () => ({
col... |
import { compose, createStore, applyMiddleware } from "redux";
import createSagaMiddleware from "redux-saga";
import reducer from "./reducer.js";
import todoWatcher from "../redux/sagas";
const saga = createSagaMiddleware();
const store = createStore(
reducer,
compose(
applyMiddleware(saga),
window.__REDUX_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.