text stringlengths 2 1.04M |
|---|
const buttons = document.querySelectorAll('.type');
const items = document.querySelectorAll('.item');
//for Each function to work each button
buttons.forEach((button) => {
button.addEventListener('click', (e) => {
//prevent button from going to top
e.preventDefault();
const filter = e.ta... |
export const SET_SINGER = 'SET_SINGER'
export const SET_PLAYING_STATE = 'SET_PLAYING_STATE'
export const SET_FULL_SCREEN = 'SET_FULL_SCREEN'
export const SET_PLAYLIST = 'SET_PLAYLIST'
export const SET_SEQUENCE_LIST = 'SET_SEQUENCE_LIST'
export const SET_PLAY_MODE = 'SET_PLAY_MODE'
export const SET_CURRENT_INDEX =... |
import { PolymerElement, html } from "@polymer/polymer/polymer-element.js";
import "@polymer/paper-input/paper-input";
import "@polymer/iron-icon/iron-icon";
import "@polymer/iron-flex-layout/iron-flex-layout";
import "@biopolymer-elements/bio-icons/bio-icons";
import {BioLinkMixin} from "./bio-link-mixin";
/**
* `b... |
(window.webpackJsonp=window.webpackJsonp||[]).push([["tFgI"],{tFgI:function(t,e,n){"use strict";n.r(e);var l=n("ZrdR"),i=Object(l.a)({},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{padding:"30px"}},[e("el-alert",{attrs:{closable:!1,title:"menu 2"}})],1)},[],!1,null,null,null);i.o... |
import createStore from './createStore';
import todoReducer, { initialState as todoInitialState } from './todos';
export default createStore(todoReducer, todoInitialState); |
'use strict';
const faker = require('faker');
const bcrypt = require('bcryptjs');
module.exports = {
up: async (queryInterface, Sequelize) => {
return queryInterface.bulkInsert(
'Users',
[
{
email: 'demo@user.io',
username: 'Demo-lition',
hashedPassword: bcrypt.h... |
const Room = require('./room')
class Player {
/**
* @param {string} id
* @param {string} secretId
*/
constructor(id, secretId) {
this.id = id
this.secretId = secretId
this.username = ''
/**
* @type {Room}
*/
this.room = null
this.events = []
this.ready = false
... |
import { FilledSort as SharpSort } from './FilledSort';
export { SharpSort }; |
'use strict';
const webpack = require('webpack');
const exec = require('child_process').exec;
module.exports = {
mode: 'development',
context: `${__dirname}/../src/`,
entry: {
phaser: './phaser.js'
},
output: {
path: `${__dirname}/../build/`,
filename: 'phaser-facebook-i... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var setValueIfUndefined_1 = require("./setValueIfUndefined");
var fillDefaultEditorSettings_1 = require("./fillDefaultEditorSettings");
function fillDefaultFormatCodeSettings(settings, manipulationSettings) {
fillDefaultEditorSettings_1.fi... |
module.exports = {
// Specifies the ESLint parser
parser: "@typescript-eslint/parser",
extends: [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
],
settings: {
react: {
version: "detect",
},
},
env: {
browser: true,
node: true... |
const { App } = require('@slack/bolt');
const SLACK_TOKEN = process.env.SLACK_BOT_TOKEN || 'xoxb-1564172303667-1578673961893-0kEfc51gPuan5yGddv3f3lDl';
const SLACK_SIGNING_SECRET = process.env.SLACK_SIGNING_SECRET || '7bac532792e95a6f98a39a44cdfbd1bd';
// Initializes your app with your bot token and signing secret
cons... |
/**
* Copyright 2015 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import cookies from '../src/cookies';
import shold from 'should';
describe('Cookies', function () {
it('#setItem() should set a value', function () {
cookies.setItem('name', '==xx');
document.cookie.indexOf('%3D%3Dxx').should.not.be.equal(-1);
});
it('#getItem() should return true', function () {
co... |
$(function(){
// 打开登录框
$('.login_btn').click(function(){
$('.login_form_con').show();
})
// 点击关闭按钮关闭登录框或者注册框
$('.shutoff').click(function(){
$(this).closest('form').hide();
})
// 隐藏错误
$(".login_form #mobile").focus(function(){
$("#login-mobile-err").hide();
});
$(".login_form... |
var searchData=
[
['charset',['charset',['../structcshiori__request__message.html#a1bebf3f369216f7f53de21b8974d613d',1,'cshiori_request_message::charset()'],['../structcshiori__response__message.html#a926c5ced06ede9934ad29da81b01cebc',1,'cshiori_response_message::charset()']]],
['chomp',['chomp',['../strutl_8h.html... |
#! /usr/bin/env node
/**
*
*
*
*
*
*
*
*
*/
const readLine = require("../lib/input.js");
const installPackages = require("../lib/installPackages.js");
const { generateDefinition } = require("../lib/createDefinition.js");
const fileIO = require("../lib/fileIO.js");
const log4js = require("log4js");
const logge... |
import {
ORDER_CREATE_REQUEST,
ORDER_CREATE_SUCCESS,
ORDER_CREATE_FAIL,
ORDER_DETAILS_REQUEST,
ORDER_DETAILS_SUCCESS,
ORDER_DETAILS_FAIL,
ORDER_PAY_REQUEST,
ORDER_PAY_FAIL,
ORDER_PAY_SUCCESS,
ORDER_PAY_RESET,
ORDER_LIST_MY_REQUEST,
ORDER_LIST_MY_SUCCESS,
ORDER_LIST_MY_FAIL,
ORDER_LIST_MY_RES... |
import $ from 'jquery';
import { parseBoolean } from '~/lib/utils/common_utils';
import { __ } from '~/locale';
import setupToggleButtons from '~/toggle_buttons';
import { fixTitle } from '~/tooltips';
import DirtyFormChecker from './dirty_form_checker';
const CALLOUT_SELECTOR = '.js-callout';
const HELPER_SELECTOR = ... |
export const TABS = {
Home: "Home",
Calendar: "Calendar",
News: "News",
Search: "Search",
Settings: "Settings"
};
export const TABBAR_ICONS = {
[TABS.Home]: "rocket",
[TABS.Calendar]: "calendar",
[TABS.News]: "newspaper",
[TABS.Search]: "search",
[TABS.Settings]: "cog"
};
export const MONTHS = [
... |
import * as swcHelpers from "@swc/helpers";
var C = function C() {
"use strict";
swcHelpers.classCallCheck(this, C);
};
var C = ''; // error
var M;
(function(M) {
var D = function D() {
"use strict";
swcHelpers.classCallCheck(this, D);
};
var D = 1; // error
})(M || (M = {})); |
var fs = require('fs');
var Async = require('./async');
var EventProxy = require('./event').EventProxy;
var util = require('./util');
// 文件分块上传全过程,暴露的分块上传接口
function sliceUploadFile(params, callback) {
var ep = new EventProxy();
var TaskId = params.TaskId;
var Bucket = params.Bucket;
var Region = param... |
/**
* @name exports
* @summary DocumentReferenceRelatesTo Class
*/
module.exports = class DocumentReferenceRelatesTo {
constructor(opts) {
// Create an object to store all props
Object.defineProperty(this, '__data', { value: {} });
// Define getters and setters as enumerable
Object.defineProperty... |
var gulp = require('gulp'),
modernizr = require('gulp-modernizr');
gulp.task('modernizr', function() {
return gulp.src('./app/assets/**/*.{css,js}')
.pipe(modernizr({
"cache" : true,
"options": [
"setClasses",
"html5shiv"
]
... |
import React from 'react'
export default function AboutSection() {
return (
<div class="row">
<div className="col-10 col-sm-10 mx-auto">
<div class="card-group">
<div class="card">
<img class="card-img-top" src="https://pbs.twimg.com/profile_images/109404... |
basePath = '../../../../..';
var KARMA_LIB = process.env.KARMA_LIB;
files = [
JASMINE,
JASMINE_ADAPTER,
'https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',
KARMA_LIB + '/jasmine-jquery-1.5.2.js',
// Test files
'tests/unit/javascript_tests/modules_skill_map/lesson_editor/*.js',
// Test ... |
import api from "../../../common/api";
import { goBack } from "connected-react-router";
import { apiErrorToast } from "../../../common/api/apiErrorToast";
import { setLoading, ActionTypes } from "../list";
import { toast } from "react-toastify";
/* Actions */
function success(productType) {
return {
type: Action... |
import axios from 'axios';
export const getAdminDashboardInfoAPI = () => {
return (axios.get('/api/admin/admin_dashboard_info'));
};
export const createForumAPI = (forum_obj) => {
const formData = new FormData();
for (let attr in forum_obj) {
if (attr === 'tileObject')
formData.append(attr, JSON.str... |
export default {
props: {
smoothness: {
type: Number,
default: 0
},
enableSimplify: {
type: Boolean,
default: true
},
simplifyTolerance: {
type: Number,
default: 2
},
enableClip: {
type: Boolean,
default: true
},
symbol: {
type:... |
import React, { useState, useEffect, Fragment } from 'react';
import * as _ from 'lodash';
import { connect, useIntl } from 'umi';
import { InfoCircleOutlined } from '@ant-design/icons';
import { Tag, Button, Table, Switch, Card } from 'antd';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import HeaderSea... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
'use strict';
import Hapi from 'hapi';
import HodgePodge from 'hodgepodge';
import persistence from './persistence';
import users from './users';
const server = new Hapi.Server({
connections: {
router: {
stripTrailingSlash: true
},
routes: {
cors: true
}
},
load: {
sampleInterv... |
/* eslint-disable react/jsx-closing-bracket-location */
/* eslint-disable react/jsx-indent-props */
/* eslint-disable react/jsx-filename-extension */
/* eslint-disable react/jsx-indent */
/* eslint-disable import/prefer-default-export */
/* eslint-disable import/newline-after-import */
import React from "react";
export... |
//webpack是node写出来的,是node的语法
let path = require('path') //node的核心模块
let HtmlWebpackPlugin = require('html-webpack-plugin')
let MiniCssExtractPlugin = require('mini-css-extract-plugin')
let OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin")
let UglifyJsPlugin = require("uglifyjs-webpack-plugin")
let ... |
export{c as createAnimation}from"./p-613c0939.js";export{iosTransitionAnimation}from"./p-6888305b.js";export{mdTransitionAnimation}from"./p-347c22bd.js";export{g as getTimeGivenProgression}from"./p-bac8255f.js";export{createGesture}from"./p-a013b234.js";export{g as getPlatforms,i as initialize,a as isPlatform}from"./p-... |
import React from 'react'
import Link from 'gatsby-link'
import path from 'path'
import { Follow } from 'react-twitter-widgets'
import brand from '../../assets/images/brand.png'
const Navigation = () => (
<nav className="navbar">
<div className="navbar__content-wrapper">
<Link
to="/"
active... |
"use strict";
exports.__esModule = true;
exports.monitorWindowError = exports.PromiseController = exports.dispatchedErrorEvent = exports.errorWindowClosed = void 0;
exports.errorWindowClosed = "window-closed";
exports.dispatchedErrorEvent = "catchError";
var PromiseController = /** @class */ (function () {
function... |
import React from 'react';
import ReactDOM from 'react-dom';
import EditorDemo from './EditorDemo';
document.addEventListener('DOMContentLoaded', () => {
let rootNode = document.createElement('div');
document.body.appendChild(rootNode);
ReactDOM.render(
<EditorDemo />,
rootNode
);
}); |
/*
* Copyright 2019 Mia srl
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
import styled from 'styled-components';
import style from '../../assets/global-style';
export const Top = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 5px 10px;
background: ${style['theme-color']};
&>span {
line-height: 40px;
color: #f1f1f1;
font-size... |
// flow-typed signature: d5d72228883a6974bc67491fd2f0fac4
// flow-typed version: <<STUB>>/vue_v^2.2.6/flow_v0.42.0
/**
* This is an autogenerated libdef stub for:
*
* 'vue'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community ... |
'use strict';
/**
* An abstraction for loading imposters from in-memory
* @module
*/
/**
* Creates the repository
* @param {Object} startupImposters - The imposters to load at startup (will not be validated)
* @returns {Object}
*/
function create (startupImposters) {
const imposters = startupImposters || {... |
/*
* MindTouch Deki - enterprise collaboration and integration platform
* Copyright (C) 2006-2009 MindTouch, Inc.
* www.mindtouch.com oss@mindtouch.com
*
* For community documentation and downloads visit www.opengarden.org;
* please review the licensing section.
*
* This program is free software; you can redis... |
$("document").ready(function() {
//////////////////////////////////
// event handlers registration //
//////////////////////////////////
$(".phone-number").keyup(function(e) {
phoneNumber = iti.getNumber();
});
$('input').on('input', function() {
this.value = this.value.replace(... |
const Service = require('./Service')
const Database = require('../sql')
const User = Database.User
const phoneRegex = /^\+[1-9]\d{1,14}$/g
function requireAuthenticated(loggedInUser) {
if (loggedInUser == null || loggedInUser.uuid == null) {
throw {
message: 'Unauthorized',
status... |
import React from "react"
import { Link } from "gatsby"
import styled from "styled-components"
//bringing in media queries from an extrapolated file
import { device } from "../utils/breakpoints"
import Navlink from "./navlink"
const NavWrapper = styled.ul`
margin-left: auto;
padding: 10px;
list-style: none;
... |
import { shallowMount } from '@vue/test-utils';
import RecorderComponent from '@/components/recorder.vue';
let page;
const fakeRecorder = {
start: jest.fn(),
stop: jest.fn(() => {
fakeRecorder.onStop();
}),
onStop() { },
blobURL: '',
};
const click = async (buttonName) => {
const button = page.find(`[t... |
(function (window, document, undefined) {
'use strict';
////////////////////////////////////////////////////////////////////////////
// GLOBAL VARIABLES
////////////////////////////////////////////////////////////////////////////
let currentStep; // current step in form creation
let maxStep; //... |
export const initialState = {
isLoading: false,
feedback: {
message: '',
type: '',
},
};
export default (state = initialState, action) => {
switch (action.type) {
case 'FEEDBACK/SET_IS_LOADING': {
return {
...state,
isLoading: action.payload.isLoading,
};
}
case ... |
/*
Copyright 2018 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
import React from 'react'
import { Link, graphql, useStaticQuery } from "gatsby";
import headerStyles from '../styles/header.module.scss'
const Header = () => {
const data = useStaticQuery(graphql`
query {
site {
siteMetadata {
title
}
... |
const PythonShell = require('python-shell');
// const elfLog = require('mcalvert-isit-code').elfLog('find-duplicate-keys');
function findDuplicateKeys(callback) {
// console.log('findDuplicateKeys called');
const options = {
mode: 'text',
pythonPath: '/usr/bin/python3',
pythonOptions: [... |
// DO NOT EDIT! This test has been generated by /html/canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.gradient.interpolate.multiple
// Description:
// Note:
importScripts("/resources/testharness.js");
importScripts("/html/canvas/resources/canvas-tests.js");
var t = async_test("");
var t_pass = t.done.... |
var D3BaseChart = (function () {
'use strict';
D3BaseChart.prototype = {
position: function () {
return [this.margin.left, this.margin.top].join(",");
},
drawBaseSVG: function () {
var width = (this.width + this.margin.left + this.margin.right),
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classC... |
var rucksack = require('rucksack-css')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var webpack = require('webpack')
var poststylus = require('poststylus')
var path = require('path')
module.exports = {
entry: {
jsx: ['webpack-dev-server/client?http://0.0.0.0:3003', 'webpack/hot/only-dev-server', './cl... |
var encoded_config = {
google_api_key: 'QUl6YVN5Q1FHQnRIQmIxOWM1d3RTYkxpU01ka01BU2RpODVySFlN',
google_client_id: 'NTc0MzQzNzEwODMxLWFiMGlwMG0zcnRia20yZmE2bDBic2E0aXNrajN0MDFwLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29t',
ibm_db_url: 'aHR0cHM6Ly80NzllYjM1ZC03ODE3LTRlZGItYWNkNC0zMjNjZDY3NmUxM2YtYmx1ZW1peC5jbG91ZGFudG5vc3FsZGI... |
import { FORWARD, LEFT } from '@warriorjs/geography';
import detonateCreator from './detonate';
describe('detonate', () => {
let detonate;
let unit;
beforeEach(() => {
unit = {
damage: jest.fn(),
isUnderEffect: () => false,
say: jest.fn(),
};
detonate = detonateCreator({ targetPow... |
'use strict';
define([
'eventsource', 'utils'
],
function (EventSource, Utils)
{
/**
* Main application WorkspaceBase. It works in 3 modes:
* 1. NULL. In may have measures but with no visual representation.
* 2. MODE_2D. It has image. Spots are mapped on this image using X and Y
* coordi... |
require = {
baseUrl: 'themes/graphyte',
paths: {
d3: '../../node_modules/d3/d3.min',
dagre: '../../node_modules/dagre-d3/dist/dagre-d3.min',
dot: '../../node_modules/graphlib-dot/dist/graphlib-dot',
require: '../../node_modules/requirejs/requirejs',
jquery: '../../node_modules/jquery/dist'
}
}; |
import { MapContainer, TileLayer, Marker } from 'react-leaflet';
import "leaflet/dist/leaflet.css";
import "./style.css";
function MapBox() {
return (
<MapContainer
className="markercluster-map"
center={[-5.491179, -47.495673]}
zoom={16}
maxZoom={30}
zoomControl={false}
styl... |
var util = require('util'),
connect = require('connect'),
colors = require('colors'),
httpProxy = require('http-proxy');
var PROXY_PORT = 8000;
var SERVER_PORT = 3000;
var regex = /\/coursera/;
//
// Now we set up our proxy.
//
httpProxy.createServer(function(req, res, proxy) {
// For coursera specific... |
"use strict";
/**********************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
/* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. */
/******************************************************************************
*
* You may not use the identified files except in compliance with the Apache
* License, Version 2.0 (the "License.")
*
* You may obtain a copy of the ... |
/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
(function(){if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd)var e = jQuery.fn.select2.amd; return e.define("select2/i18n/cs", [], function(){function e(e, t){switch (e){case 2:return t?"dva":"dvě"; case 3:return"tři"... |
let path = require('path');// nodejs工具类
let HtmlWebpackPlugin = require('html-webpack-plugin');
// nodejs模块化固定用法
module.exports = {
// 配置web服务
devServer: {
port:8080,
open:true,
contentBase:'./dist'// dist\index.html
},
mode: 'development',// 默认production -- 会压缩代码
// 入口
entry: './src/index.js',
... |
import React from 'react';
import Wrapper from "./components/Wrapper/Wrapper";
import EmployeeTable from "./components/EmployeeTable/EmployeeTable";
import SearchForm from "./components/SearchForm/SearchForm";
import Employees from "./employees.json";
import Jumbotron from "react-bootstrap/Jumbotron";
import Container ... |
const customEvent = () => {
if (typeof window.CustomEvent === 'function') return false //If not IE
function CustomEvent (event, params) {
params = params || {
bubbles: false,
cancelable: false,
detail: undefined
}
const evt = document.createEvent('CustomEvent')
evt.initCustomEvent... |
import ptrx from 'path-to-regexp';
import _ from 'lodash';
import { getProduct, addProducts, updateProducts, getCate } from '../services';
import { fieldsChange } from '../../../utils/ui';
import { upload } from '../../../utils';
import { message } from 'antd';
const source = window.config.source;
const INIT_STATE = ... |
const requestOptions = function(job) {
return {
url: job.config.api + "/v3/invites",
headers: {
Authorization: 'Bearer ' + job.tokenRequestBody.access_token,
'Content-Type': 'application/json'
},
method: 'POST',
json: true,
body: {
force_create: 1,
email: job.config.new... |
"use strict";
const path = require("path");
const fs = require("graceful-fs");
const captureStdio = require("./helpers/captureStdio");
let webpack;
/**
* Escapes regular expression metacharacters
* @param {string} str String to quote
* @returns {string} Escaped string
*/
const quotemeta = str => {
return str.re... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _require = require("express-validator"),
body = _require.body,
validationResult = _require.validationResult,... |
(function($) {
"use strict";
/*Line chart*/
var optionslinechart = {
chart: {
toolbar: {
show: false
},
height: 170,
type: 'area'
},
dataLabels: {
enabled: false
},
stroke: {
curve... |
import React from 'react';
import IconCheckBox from '../Checkbox/Icon-Checkbox';
class NodeList extends React.Component {
state = {
toggle: false
}
toggleChild = (option) => {
option.showChild = !option.showChild;
this.setState({
toggle: !this.state.toggle
})
}
setAllChildSelected =... |
//# sourceMappingURL=component---src-pages-use-query-mdx-34d10b4feed8635777c2.js.map |
/**
* Site : http:www.smarttutorials.net
* @author muni
*/
//adds extra table rows
var i = $('table tr').length;
$(".addmore").on('click', function () {
html = '<tr>';
html += '<td><input class="case" type="checkbox"/></td>';
html += '<td class="hidden"><input data-type="productCode" name="itemId[]" id... |
import { MedusaError } from "medusa-core-utils"
import { BaseService } from "medusa-interfaces"
/**
* Provides layer to manipulate profiles.
* @extends BaseService
*/
class ShippingOptionService extends BaseService {
constructor({
manager,
shippingOptionRepository,
shippingOptionRequirementRepository,... |
// Backbone.js 1.4.0
// (c) 2010-2019 Jeremy Ashkenas and DocumentCloud
// Backbone may be freely distributed under the MIT license.
// Model
// -----
// **Models** are the basic data object in the framework --
// frequently representing a row in a table in a database on your server.
// A discrete chunk of... |
// ==UserScript==
// @author fisher01
// @name IITC plugin: Wasabee: Mark Portals with Kythera ornaments
// @category Misc
// @version 0.1.0
// @description Automark Portals for Kythera Anomaly
// @id wb-kythera
// @updateURL https://github.com/SebastienForay/Wasabee-I... |
import React, { Component } from 'react'
class About extends Component {
render() {
if (this.props.data) {
var name = this.props.data.name
var profilepic = 'images/' + this.props.data.image
var bio = this.props.data.bio
var street = this.props.data.address.street
var city = this.pro... |
export function graphic(labels, data, max) {
var ctx = document.getElementById("myBarChart");
var myLineChart = new Chart(ctx, {
type: "bar",
data: {
labels: labels,
datasets: [
{
label: "N° de modelos",
backgroundCo... |
class Trigger {
constructor (conditions, effect) {
this._conditions = conditions;
this._effect = effect;
}
apply(state) {
for (const c of this._conditions) {
if (!c.test(state)) return;
}
this._effect(state);
}
}
class Condition {
constructor (n... |
// require models folder
const models = require('../models');
// set note to the model note
const Note = models.Note;
// maker page function
const makerPage = (req, res) => {
// find by owner by account id
Note.NoteModel.findByOwner(req.session.account._id, (err, docs) => {
// if error log error
if (err) ... |
#!/usr/bin/env node
// eslint-disable-next-line no-unused-expressions
require('..').cli(process.argv) |
!function(e){const l=e.ja=e.ja||{};l.dictionary=Object.assign(l.dictionary||{},{"%0 of %1":"","Align center":"中央揃え","Align left":"左揃え","Align right":"右揃え",Big:"大","Block quote":"ブロッククオート(引用)",Bold:"ボールド","Bulleted List":"箇条書きリスト",Cancel:"キャンセル","Choose heading":"見出しを選択",Column:"列","Decrease indent":"インデントの削除",Default:"... |
import styles from './about.css';
export default function() {
return (
<div className={styles.normal}>
<h1>Page about</h1>
</div>
);
} |
import { _ as _curry2 } from "../../common/_curry2-21fa898b.js";
import { _ as _has } from "../../common/_has-ef506577.js";
import "../../common/_curry1-a6784b40.js";
import "../../common/_isPlaceholder-69544913.js";
var whereAny = /* @__PURE__ */ _curry2(function whereAny2(spec, testObj) {
for (var prop in spec) {
... |
import { configure, addDecorator, addParameters } from '@storybook/react';
import { withCreevey } from 'creevey'
addDecorator(withCreevey())
addParameters({ creevey: { captureElement: 'root' }})
configure(() => [require('../stories/KindA.stories')], module); |
const {
getJobs,
getTranslations,
deleteJob,
deleteTranslation,
} = require('./translation_workflow/database.js');
const { getAccessToken, vendorRequest } = require('./utils/vendor-request');
const fetch = require('node-fetch');
const PROJECT_ID = process.env.TRANSLATION_VENDOR_PROJECT;
const DOCS_SITE_URL = '... |
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments);
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.asyn... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may no... |
/*!
* ${copyright}
*/
// Provides control sap.m.RatingIndicator.
sap.ui.define([
'./library',
'sap/ui/core/Control',
'sap/ui/core/theming/Parameters',
'./RatingIndicatorRenderer',
"sap/ui/events/KeyCodes",
"sap/base/Log",
"sap/ui/thirdparty/jquery"
],
function(library, Control, Parameters, RatingIndicatorRen... |
import {inject} from 'aurelia-framework';
import {EventAggregator} from 'aurelia-event-aggregator';
@inject(EventAggregator)
export class Backdrop {
isOn = false;
constructor(eventEmitter) {
this.eventEmitter = eventEmitter;
eventEmitter.subscribe('left-nav:open', event => this.isOn = true);
eventEmitter.sub... |
/**
* @param {number[]} nums
* @param {number} k
* @return {void} Do not return anything, modify nums in-place instead.
*/
var rotate = function(nums, k) {
const length = nums.length;
let count = 0;
while(count < k) {
let last = nums[length - 1];
for(let i = length - 1; i > ... |
require('./bootstrap');
// require('alpinejs');
import Alpine from 'alpinejs';
Alpine.data('demo', () => ({
open: false,
toggle() {
this.open = !this.open
}
}));
window.Alpine = Alpine;
// should be last
Alpine.start(); |
import React, { useState } from "react";
import VideoPlayer from "./VideoPlayer";
import Lesson1 from "./lessons/Lesson1.js";
import Lesson2 from "./lessons/Lesson2.js";
import Lesson3 from "./lessons/Lesson3.js";
const Navbar = () => {
// todo: move the following const out of Navbar
// lessonData is a functional co... |
async ( ) => { } ; |
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "fbb341e02128651d18305d9247bcaf5d",
"url": "/index.html"
},
{
"revision": "f25f5fa1e754a18e2d5f",
"url": "/static/js/2.12fd8161.chunk.js"
},
{
"revision": "77e7f328dacc981fca681ee4ae94d669",
"url": "/stati... |
var ROWS = 1000000;
var fs = require('fs');
var random = require('geojson-random').point(ROWS, [0.0, 0.0, 180.0, 90.0]);
//db: geo_test ; table: city
//sudo -u postgres psql geo_test < query.sql
function genP(file) {
//Clear file
fs.writeFileSync(file, 'DELETE FROM city;\n');
var s = 'INSERT INTO city (geom, na... |
(function () {
'use strict';
angular
.module('drinks')
.run(menuConfig);
menuConfig.$inject = ['menuService'];
function menuConfig(menuService) {
menuService.addMenuItem('topbar', {
title: 'Drinks',
state: 'drinks',
type: 'dropdown',
roles: ['*'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.