text stringlengths 2 1.04M |
|---|
/******************ShearPhoto1.4 免费,开源,兼容目前所有浏览器,纯原生JS和PHP编写 2015年8月7日 明哥先生*******/
ShearPhoto.MINGGE(function() {
var publicRelat= document.getElementById("relat"); //"relat"对像
var publicRelatImg=publicRelat.getElementsByTagName("img"); //"relat"下的两张图片对像
var Shear = new ShearPhoto;
... |
import React, { Component } from 'react';
import { Form } from 'semantic-ui-react';
function InputTextField({
name, placeholder, required, _handleChange,
}) {
return (
<div style={{ marginTop: '10px' }}>
<Form.Input
type="text"
name={name}
label={name}
required={required}
... |
module.exports = createServer
// requires
var Sequelize = require('sequelize')
var express = require('express')
var bodyParser = require('body-parser')
var https = require('https')
var fs = require('fs')
var wc = require('../')
var createApp = require('./create-app')
/**
* server function
... |
const router = require('express').Router()
const bcrypt = require('bcrypt')
const jwt = require('jsonwebtoken')
const config = require('config')
//import Photo Model
const User = require('../models/User')
//Post user/register
//@access public
//@desc register new user
router.post('/register', (req, res) => {
cons... |
const path = require("path");
const VueLoaderPlugin = require("vue-loader/lib/plugin"); //vue載入器插件
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); //css抽取
const HtmlWebpackPlugin = require("html-webpack-plugin"); //提取跟注入
const OptimizeCssAssetsWebpackPlugin = require("optimize-css-assets-webpack-plugin... |
'use strict'
// Local dependencies
const paths = require('./../paths.js')
const flatPaths = require('./../utils/flattened-paths.js')(paths)
module.exports = function (req, res, next) {
req.actionName = flatPaths[`${req.route.path}_${req.method.toLowerCase()}`]
next()
} |
import styled from '@emotion/styled'
export const MarkdownContent = styled.div`
h1,
h2 {
color: var(--primaryColor);
}
p,
h2,
h3,
h4 {
margin-bottom: 1rem;
}
a {
color: var(--primaryColor);
text-decoration: underline;
}
`
export const MarkdownTitle = styled.h1`
color: var(--pri... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const exec = require('child_process').exec;
const webpack = require('webpack');
const path = require('path');
const tsTransformer = require('@formatjs/ts-transformer');
const PLUGIN_ID = require('../plugi... |
define({root:{pieLabelDNS:"DNS",pieLabelSSL:"SSL/TLS",pieLabelConnect:"Connect",pieLabelBlocked:"Blocked",pieLabelSend:"Send",pieLabelWait:"Wait",pieLabelReceive:"Receive",pieLabelHTMLText:"HTML/Text",pieLabelJavaScript:"JavaScript",pieLabelCSS:"CSS",pieLabelImage:"Image",pieLabelFlash:"Flash",pieLabelOthers:"Others",p... |
const stripAnsi = require('strip-ansi');
const formatWebpackMessages = require('./formatWebpackMessages');
let wsProtocol = 'ws';
if (window.location.protocol === 'https:') {
wsProtocol = 'wss';
}
const wsUrl = `${wsProtocol}://${window.location.hostname}:${window.location.port}/sockjs-node/websocket`;
// Connect to... |
angular.module('my-components').component('mySelect', {
templateUrl: 'src/components/my-select/my-select.component.html',
bindings: {
error: '=',
form: '<',
label: '@',
name: '@',
model: '=',
data: '<',
required: '<',
// multiple: '<'
},
controller: function(
$element,
$a... |
var path = require('path');
var url = require('url');
var closure = require('openlayers/node_modules/closure-util');
var nomnom = require('nomnom');
var gaze = require('gaze');
var exec = require('child_process').exec;
var log = closure.log;
var options = nomnom.options({
port: {
abbr: 'p',
'default': 3000... |
/**
* 小肥牛扫码点餐项目API子系统
*/
const PORT = 8090;
const express = require('express');
//启动主服务器
var app = express();
app.listen(PORT,()=>{
console.log('Server Listening '+PORT+' ...');
}) |
import Users from 'meteor/vulcan:users';
Users.addField([
{
fieldName: 'address',
fieldSchema: {
type: Object,
optional: true,
canRead: ['guests'],
relation: 'hasOne',
searchable: true
},
},
]); |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.34/esri/copyright.txt for details.
//>>built
define("esri/layers/rasterLib/tile/nls/RasterWorker_pt",{"dojo/cldr/nls/number":{scientificFormat:"#E0","currencySpacing-afterCurrency-currencyMatch":"[:^S:]",infin... |
import React, { useEffect, useState } from "react";
import { api } from "../../api";
import ProductCard from "../ProductCard";
import Slider from "../Slider";
import "./index.css";
const Home = () => {
const [products, setProducts] = useState();
useEffect(() => {
api.getProducts().then((res) => {
... |
/* Courtesy http://html5tutorial.com/how-to-draw-n-grade-bezier-curve-with-canvas-api/
* due to substantial use of original code:
*/
/*
* The MIT License (MIT)
*
* Copyright (c) 2012 Scriptoid
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentat... |
import React from 'react';
import ReactDOM from 'react-dom';
import ClientSideLatency from './ClientSideLatency';
import renderer from 'react-test-renderer';
Date.now = jest.fn(() => 1487076708000)
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<ClientSideLat... |
switch (prompt("What is the weather like?")) {
case "rainy":
console.log("Remember to bring an umbrella.");
break;
case "sunny":
console.log("Dress lightly.");
case "cloudy":
console.log("Go outside");
break;
default:
console.log("Unknown weather type");
break;
} |
var async = require('async'),
fs = require('graceful-fs'),
_ = require('lodash');
git = require('./git');
module.exports = function(args, callback){
var config = hexo.config.backup,
log = hexo.log,
extend = hexo.extend,
backupers = extend.deployer.list();
if (!config){
var help = '';
he... |
const passport = require('passport');
const qs = require('../lib/query-string');
passport.use('github', require('../lib/passport').github);
module.exports = (req, res) => {
req.query = qs(req);
res.redirect = url => {
res.writeHead(302, { location: url });
res.end();
};
passport.authenticate('github'... |
import Ember from 'ember';
import {request as ajax} from 'ic-ajax';
import ValidationEngine from 'ghost/mixins/validation-engine';
export default Ember.Controller.extend(ValidationEngine, {
size: 90,
blogTitle: null,
name: null,
email: '',
validEmail: '',
password: null,
image: null,
bl... |
const toUri = require('multiaddr-to-uri')
const { ok, toIterable } = require('../../lib/fetch')
module.exports = (fetch, config) => {
return (cid, options) => (async function * () {
options = options || {}
const url = `${toUri(config.apiAddr)}/api/client/cat?arg=${encodeURIComponent(cid)}`
const res = a... |
import { __decorate } from "tslib";
import { Injectable } from '@angular/core';
import { ProductReviewsAdapter } from './product-reviews.adapter';
import * as i0 from "@angular/core";
import * as i1 from "./product-reviews.adapter";
let ProductReviewsConnector = class ProductReviewsConnector {
constructor(adapter) ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M4 20h16v-8H4v8zm6-7.27L16 16l-6 3.26v-6.53z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M4 6h16v2H4zm2-4h12v2H6zm14 8H4c-1.1 0-2 .9-2 2v8c... |
// QRCODE reader Copyright 2011 Lazar Laszlo
// http://www.webqr.com
var gCtx = null;
var gCanvas = null;
var c=0;
var stype=0;
var gUM=false;
var webkit=false;
var moz=false;
var v=null;
var webcamStream = null;
var nave =null;
var active = true;
var imghtml='<div id="qrfile"><canvas id="out-canvas" width="320" h... |
export const defaultStoreFinderConfig = {
googleMaps: {
apiUrl: 'https://maps.googleapis.com/maps/api/js',
apiKey: '',
scale: 5,
selectedMarkerScale: 17,
radius: 50000,
},
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1zdG9yZS1... |
import React from "react";
const Recipe = props => (
<div className="col-md-4" style={{ marginBottom: "2rem" }}>
<div className="recipes__box">
<img src={props.image} alt={props.title} className="recipe__box-img" />
<div className="recipe__text">
<h5 className="recipes__title">
{pro... |
import math from 'mathjs';
export default class CostFunction {
calculate(X, y, theta)
{
let m = y.dimensions().rows;
let h = X.multiply(theta);
let diff = h.subtract(y);
let sqrErrors = diff.elementMultiply(diff);
return 1 / (2 * m) * sqrErrors.sum();
}
} |
/**
*
* grunt lint Lint all source javascript
* grunt clean Clean dist folder
* grunt build Build dist javascript
* grunt test Test dist javascript
* grunt default Lint, Build then Test
*
*/
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
... |
sap.ui.define([
"sap/ui/demo/cardExplorer/controller/BaseController",
'sap/ui/model/json/JSONModel',
"../model/IntegrateNavigationModel",
"sap/ui/Device"
], function (
BaseController,
JSONModel,
IntegrateNavigationModel,
Device
) {
"use strict";
return BaseController.extend("sap.ui.demo.cardExplorer.controll... |
'use strict';
/**
* Module dependencies.
*/
let express = require('express')
let compress = require('compression')
let methodOverride = require('method-override')
let config = require('./config')
let router = express.Router() // was missing ()
let prom = require('prom-client');
module.exports = function () {
// In... |
const redis = require('./redis_client');
const keyGenerator = require('./redis_key_generator');
// Minimum amount of capacity that a site should have to be
// considered as having 'excess capacity'.
const capacityThreshold = 0.2;
/**
* Takes a flat key/value pairs object representing a Redis hash, and
* returns a n... |
/**
* Temporary solution for german string formatting.
* Should be replaced by proper localization.
* @param {*} value
*/
export default function(value) {
const result = value
.toFixed(2)
.replace('.', ',') // replace decimal point separator
.replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1 '); // apply groupin... |
var nodemon = require('gulp-nodemon')
module.exports = function () {
return nodemon({
script: './main.js'
})
} |
// Copyright (C) 2013 Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... |
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// 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 requ... |
function Tiles() {
this.tiles = $(".section-3 .tile-container");
this.onHover();
}
Tiles.prototype = {
constructor: Tiles,
replaceText: function(text) {
const textContainer = $(".section-3 .tile-change");
textContainer.text(text);
},
onHover: function() {
const tiles = this.tiles;
const replaceText = ... |
const express = require('express');
const cors = require('cors');
const userRoutes = require('./routes/userRoutes');
const strainRoutes = require('./routes/strainRoutes');
const server = express();
server.use(express.json());
server.use(cors());
server.use('/api/users', userRoutes);
server.use('/api/strains', strain... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// WARNING: This file was auto-generated, any change will be overridden in next release. Please use configs/es6.conf.js then run "npm run convert". //
//////////////////... |
/**
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/**
* @provides javelin-behavior-remarkup-preview
* @requires javelin-behavior
* javelin-dom
* javelin-util
* phabricator-shaped-request
*/
JX.behavior('remarkup-preview', function(config) {
var preview = JX.$(config.previewID);
var control = JX.$(config.controlID);
var call... |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React, { useEffect, useRef, useState } from 'react';
import cx from 'classnames';
import {
Close... |
// ==UserScript==
// @author dylanarmstrong
// @description Fix for chessboard images not working on Safari
// @grant none
// @match https://*.wikipedia.org/*
// @name wikipedia-chess
// @namespace https://github.com/dylanarmstrong/userscripts/
// @supportURL https://github.com/dylanar... |
module.exports={viewBox:'0 0 256 512',d:'M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z'} |
import { useDispatch, useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import { Box } from '@material-ui/core';
import Book from '../components/Book';
import { changeFilter, removeBook } from '../actions';
import CategoryFilter from '../components/CategoryFilter';
const BooksList = () => {
const... |
import React from 'react'
import PropTypes from 'prop-types'
import ReactMarkdown from 'react-markdown'
import { connect } from 'react-redux'
import Layout from '../layout'
import { Loader } from '../../components'
import styles from './styles.css'
class DetailPage extends React.Component {
static propTypes = {
... |
import styled from "@emotion/styled/macro";
import Logo from "./Logo";
import MenuIcon from "./MenuIcon";
const Root = styled.nav`
top: 0;
position: fixed;
z-index: 9901;
display: flex;
flex-direction: column;
overflow-y: scroll;
height: -webkit-fill-available;
touch-action: none;
pointer-events: non... |
// @flow
import type {
InternalQueryAnyFunctionType,
} from '../types';
import {
createQueryId,
} from '../utilities';
import query from './query';
/**
* Makes a query and expects any number of results.
*/
const any: InternalQueryAnyFunctionType = async (log, connection, clientConfiguration, rawSql, values, inh... |
/**
* Handles the styles document. This is the go to class for parsing the styles
* xml page.
*/
goog.provide('jsopenxml.styles.StyleSheet');
//----------------------------------------------------------------------------//
//--- Automatically generated to provide intellisense for visual studio, -----//
//--- please... |
import fp from 'fastify-plugin'
import { Readable } from 'readable-stream'
// In some cases you might need a custom plugin only in a specific
// part of yoru application. As we saw before, every plugin that needs
// or could be shared with the entire application should live inside
// the top level `/plugins` directory... |
import axios from 'axios';
export const axiosWithAuth = () => {
const token = localStorage.getItem('token')
return axios.create({
baseURL: 'https://realwillbrooks-bookr.herokuapp.com/',
headers: {
Authorization: `Bearer ${token}`
}
})
} |
/**
* Created by danie on 12/01/2017.
*/
angular
.module('myApp.directives')
.directive('modal', function(){
return {
template:
'<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" ' +
'aria-labelledby="myLargeModalLabel" aria-hidden... |
import { FrontPanel } from "./front-panel"
//
// Some constants for locations of knobs and connectors, etc.
//
const CANVAS_WIDTH = 1697;
const CANVAS_HEIGHT = 730;
const CABLE_WIDTH = 6;
const CELL_RADIUS = 12;
const CONNECTORS = [
{idx: 0, col: 0, row: 0, x: 1457, y: 97, name: "TRIGGER", input: true},
{idx: 1, c... |
/* eslint-disable no-console */
import webpack from 'webpack'
import webpackConfig from '../webpack.config.prod'
import chalk from 'chalk'
process.env.NODE_ENV = 'production'
console.log(chalk.blue('Generating minified bundle for production This will be a moment...'))
webpack(webpackConfig).run( (err, stats) => {
i... |
'use strict'
class TelegramRoute {
/**
* @param {BaseCommand|BaseCommand[]} commands
* @param {TelegramBaseController} controller
*/
constructor(commands, controller) {
this._commands = Array.isArray(commands) ? commands : [commands]
this._controller = controller
}
/**
... |
'use strict'
// modules
var express = require('express')
var json = require('express-json')
var bodyParser = require('body-parser')
var multer = require('multer')
// files
var conf = require('../config/gulp.config')
var routes = require('./routes')
var config = require('./routes/config')
var contents = require('./ro... |
import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/Layout'
import SEO from '../components/SEO'
import skiLiftChairs from '../images/ski-lift-chairs.jpeg'
import mountainRange from '../images/mountain-range.jpeg'
import forrestAerialShot from '../images/forrest-aerial-shot.jpeg'
... |
import React from 'react';
import {ScrollView} from 'react-native';
import {useDispatch, useSelector} from 'react-redux';
import {Appbar} from '../../components/Appbar';
import {List} from '../../components/List';
import {ScreenContainer} from '../../components/Common';
import SwitchSetting from '../../components/Swi... |
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, Raphaël Benitte.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import PropTypes from 'prop-types'
export const axisPropTypes = {
ticksPosition: PropType... |
function checkToken(token, data, dataOffset) {
if (dataOffset + token.length > data.length) {
return false;
}
let endIndex = dataOffset;
for (let i = 0; i < token.length; i++) {
if (token[i] !== data[endIndex++]) {
return false;
}
}
return true;
}
function stringToUint8Array(str) {
c... |
const isRelative = (path) => path.startsWith('./')
const normalizeRelativePath = (path) =>
[process.env.PUBLIC_URL, path.replace(/^\.\//, '')].join('/')
const isScriptLoaded = (src) =>
document.querySelector('script[src="' + src + '"]') ? true : false
export const loadExternalScript = (src) => {
if (isRel... |
(function() {
'use strict';
angular
.module('kueJobs')
.controller('KueJobsController', KueJobsController);
KueJobsController.$inject = [];
function KueJobsController() {
var vm = this;
vm.selectedJobIds = [];
vm.onclose = onclose;
vm.ontoggle = ontoggle;
activate();
functio... |
describe('Permissioned (superuser) user tests', { retries: { runMode: 2, openMode: 0 } }, () => {
before(() => {
cy.login('bfranklin', 'test')
})
after(() => {
cy.logout()
})
beforeEach(() => {
Cypress.Cookies.preserveOnce('sessionid', 'csrftoken')
})
it('Logs in successfully', () => {
... |
const { hostname } = require("os");
const url = require("url");
const myUrl = new URL("http://mywebsite.com/hello.html?id=100&status=active");
// Serialized URL
console.log(myUrl.href);
console.log(myUrl.toString());
// Host (root domain)
console.log(myUrl.host);
// Hostname (does not get port)
console.log(myUrl.ho... |
module.exports = {
singleQuote: true,
semi: true
} |
/*
* @title Styles
* @description A task to compile Sass to CSS.
*/
// Dependencies
import { src, dest, series } from 'gulp';
import gulpif from 'gulp-if';
import plumber from 'gulp-plumber';
import sass from 'gulp-sass';
import sassGlob from 'gulp-sass-glob';
import sourcemaps from 'gulp-sourcemaps';
import postcs... |
jstestdriver.console.warn("widgets/media.js untested!"); |
var margin = {top: 50, right: 200, bottom: 100, left: 50},
margin2 = { top: 430, right: 20, bottom: 20, left: 40 }, width = 1160 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom,
height2 = 500 - margin2.top - margin2.bottom;
function resize() {
/* Find the new window dimensions */
v... |
import React from 'react'
import ReactDOM from 'react-dom'
import { App } from './components/App'
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
) |
import api from "@/api/index.js";
//delete请求接口
export function deleteData(url, params) {
return new Promise(function(resolve, reject) {
api.delete(
url,
null,
params,
(successRes) => {
resolve(successRes);
},
(failureRes) => {
reject(failureRes);
}
);... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'format', 'fr', {
label: 'Format',
panelTitle: 'Format de paragraphe',
tag_address: 'Adresse',
tag_div: 'Normal (DIV)',
tag_h1: 'Titre 1',
tag_h... |
function init() {
SXE.initElementDialog('abbr');
if (SXE.currentAction == "update") {
SXE.showRemoveButton();
}
}
function insertAbbr() {
SXE.insertElement('abbr');
tinyMCEPopup.close();
}
function removeAbbr() {
SXE.removeElement('abbr');
tinyMCEPopup.close();
}
tinyMCEPopup.onInit.add(init); |
const { THEMENAME } = require("../env.config");
const fs = require("fs-extra");
const readline = require("readline");
const fileHound = require("filehound");
module.exports = {
addMainCss,
getEnv,
getFilesByExtension,
getScreenshot
};
async function addMainCss() {
const ENV = getEnv();
const rl = readlin... |
/**
* 系统路由配置
*
* @author wengwh
*/
(function () {
'use strict';
angular.module('adminApp').config(
function ($stateProvider, $urlRouterProvider) {
$stateProvider.state('login', {
url: '/login',
templateUrl: 'views/login.html',
controller : 'LoginController'
}).sta... |
/* quick.js
test durability
this file should always run quickly
other tests can be slow
*/
testname = "a_quick";
load("jstests/_tst.js");
function checkNoJournalFiles(path, pass) {
var files = listFiles(path);
if (files.some(function (f) { return f.name.indexOf("prealloc") < 0; })) {
if (pass... |
// Copyright (c) 2016, Sione Taumoepeau and contributors
// For license information, please see license.txt
/* eslint-disable */
frappe.query_reports["Cargo Warehouse Movement"] = {
"filters": [
{
"fieldname":"from_date",
"label": __("From Date"),
"fieldtype": "Date",
"default": frappe.datetime.get_toda... |
require("source-map-support").install();
exports.id = 7;
exports.modules = {
/***/ "./node_modules/css-loader/index.js?{\"importLoaders\":1,\"sourceMap\":true,\"modules\":true,\"localIdentName\":\"[name]-[local]-[hash:base64:5]\",\"minimize\":false,\"discardComments\":{\"removeAll\":true}}!./node_modules/postcss-loade... |
/**
* jQuery
* @author jQuery Foundation and other contributors
* @see https://code.jquery.com/jquery/
* @license MIT (jquery.org/license)
* @version 3.2.1
*/
/**
* jQuery Migrate
* @author jQuery Foundation and other contributors
* @see https://code.jquery.com/jquery/
... |
import { colors } from '@material-ui/core';
const white = '#FFFFFF';
const black = '#000000';
export default {
black,
white,
primary: {
contrastText: white,
dark: colors.indigo[900],
main: colors.indigo[500],
light: colors.indigo[100]
},
secondary: {
contrastText: white,
dark: colors... |
import Vue from 'vue'
import VueRouter from 'vue-router'
const Home = () => import('views/home/Home')
const Cart = () => import('views/cart/Cart')
const Category = () => import('views/category/Category')
const Profile = () => import('views/profile/Profile')
const Detail = () => import('views/detail/Detail')
//安装插件
Vu... |
var cartData;
$(function(){
$.getContent(apiBaseUrl+'/cart/list',{"token":token,"check":1},'cartList');
var data = {"flag":0,'perpage':4,'limit':0};
$.getContent(apiBaseUrl+'/product/list',data,'productlist');
$(".finish_a").click(function(){
if (token.length == 0) {
// return false;
};
var pids = isbuy... |
NOVAHawk.angular.app.controller('cloudVolumeFormController', ['$http', '$scope', 'cloudVolumeFormId', 'miqService', function($http, $scope, cloudVolumeFormId, miqService) {
$scope.cloudVolumeModel = { name: '', cloud_tenant_id: '' };
$scope.formId = cloudVolumeFormId;
$scope.afterGet = false;
$scope.modelCopy =... |
/*!
* vue-router v3.0.4
* (c) 2019 Evan You
* @license MIT
*/
/* */
function assert (condition, message) {
if (!condition) {
throw new Error(("[vue-router] " + message))
}
}
function warn (condition, message) {
if (process.env.NODE_ENV !== 'production' && !condition) {
typeof console !== 'undef... |
/*
* ExtensionStats
* http://github.com/ingorichter/BracketsExtensionTweetBot
*
* Copyright (c) 2014 Ingo Richter
* Licensed under the MIT license.
*/
// jslint vars: true, plusplus: true, devel: true, node: true, nomen: true, indent: 4, maxerr: 50
'use strict';
var BRACKETS_REGISTRY_JSON, DEFAULT_NUMBER_OF_DAYS,... |
import React, { useEffect, useCallback } from "react";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import {
itemChange,
removeFromShop,
addToShop,
setTargetItem
} from "../actions/index";
import ItemCardList from "../components/ItemCardList";
import InventoryForms from "../compone... |
import {render} from '../..';
// Fake process.stdout
class Stream {
constructor({columns}) {
this.output = '';
this.columns = columns || 100;
}
write(str) {
this.output = str;
}
get() {
return this.output;
}
}
export default (node, {columns} = {}) => {
const stream = new Stream({columns});
render(n... |
import { toRadians } from '../../../math'
// https://math.stackexchange.com/questions/22064/calculating-a-point-that-lies-on-an-ellipse-given-an-angle?newreg
const getPointOnLabelEllipse = ({ angle, radialWidth, radialHeight, pieCenter }) => {
const labelAngleRads = toRadians(angle)
const slope = Math.tan(labelAng... |
/**
* Swiper Vue 6.8.3
* Most modern mobile touch slider and framework with hardware accelerated transitions
* https://swiperjs.com
*
* Copyright 2014-2021 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: August 20, 2021
*/
import { Swiper } from './esm/vue/swiper';
import { SwiperSli... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
mycallback( {"CONTRIBUTOR OCCUPATION": "", "CONTRIBUTION AMOUNT (F3L Bundled)": "3.90", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "86 Sterling Place, Apt. 1", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE M... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const AssetResolutionCache = require('./AssetResolutionCache');
const DependencyGraphHelpers... |
/*
* jsPlumb
*
* Title:jsPlumb 1.4.0
*
* Provides a way to visually connect elements on an HTML page, using either SVG, Canvas
* elements, or VML.
*
* This file contains the SVG renderers.
*
* Copyright (c) 2010 - 2012 Simon Porritt (http://jsplumb.org)
*
* http://jsplumb.org
* http://github.com/spor... |
function diff_algorithm(raw_input, split_eng_word = true) {
let input = raw_input.sort((a,b) => b.length - a.length);;
if (input.length == 0 || input[0].length == 0) return [];
let rtn = [];
let buf_eng = /[A-Za-z]/.test(input[0][0]);
let index = new Array(input.length).fill(0);
let batch_match_count = 0;... |
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-elem-obj-val-null.case
// - src/dstr-binding/error/for-of-var.template
/*---
description: Nested object destructuring with a null v... |
'use strict'
module.exports = process.atomBinding('native_image') |
import React, { PureComponent } from 'react';
import Link from 'umi/link';
import RightContent from '../GlobalHeader/RightContent';
import BaseMenu from '../SiderMenu/BaseMenu';
import { getFlatMenuKeys } from '../SiderMenu/SiderMenuUtils';
import styles from './index.less';
import { title } from '../../defaultSettings... |
/**
* Created by jboy on 20.12.2014.
*/
//$(document).ready(function() {
$("#submitRegister").on('click', function() {
$('#registerForm').validator();
})
if($("#authError").val() != null) {
$("#loginError").on("show", function() { // wire up the OK button to dismiss the modal when shown... |
import {Meteor} from 'meteor/meteor';
import {check} from 'meteor/check';
import {Tones} from "/imports/api/Tones.js";
import {PersonalInfo} from "/imports/api/PersonalInfo.js";
import {MusicRecommendations} from "../imports/api/musicRecommendations";
import {Email} from 'meteor/email'
import {PlaylistLikes} from "../i... |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/GZ2nwxhQUTU
function setup() {
createCanvas(300, 200);
console.log('running');
var button = select('#submit');
button.mousePressed(submitWord);
var buttonA = select('#analyze');
buttonA.mousePressed(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.