text stringlengths 2 1.04M |
|---|
/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
while(l<j.length){k.push('<tr>');for(var m=0;m<i;m++,l++){if(j[l])k.push('<td class="cke_dark_background" style="cursor: default"><a href="javascript: void(0);" style="curso... |
define(['jquery', 'console', 'evaluate', 'globalFuncs'], function ($, regexConsole, evaluate, data) {
'use strict';
var exports = {},
currentLesson = localStorage.getItem('currentLesson') || 1;
if (currentLesson !== 1) {
$('.lesson1').hide();
evaluate.init();
startLesson(currentLesson);
}
// Called aft... |
/**
* Prepends content to each element of the list.
* If content is a string parses the specified text as HTML
* and inserts the resulting nodes.
*
* @param {string|node} value String or Node to be inserted
*
* @example
* cheat sheet
* <!-- before -->
* <element>
* <!-- prepend -->
* {{elements content}}
* <!-- ... |
const path = require('path')
const glob = require('globby')
const fs = require('fs-extra')
const { distance } = require('fastest-levenshtein')
const crypto = require('crypto')
const moment = require('moment')
const chokidar = require('chokidar')
const pathToRegexp = require('path-to-regexp')
const { validateTypeName } ... |
// Define dangerous file extensions, and their corresponding warning messages
var fileExtensions = {
'zip': 'These files can contain malicious content',
'exe': 'Executable files that can contain malware',
'dll': 'Libraries of code that may be trying to replace system files',
'com': 'Old DOS programs tha... |
/**
* @copyright Copyright (c) 2020 Maxim Khorin <maksimovichu@gmail.com>
*/
'use strict';
const Base = require('areto/base/Base');
module.exports = class FriendStatusExpression extends Base {
async resolve (member) {
const userMemberId = await member.class.find({user: member.user.getId()}).id();
... |
import ApplicationLogo from '@/components/ApplicationLogo'
import Dropdown from '@/components/Dropdown'
import Link from 'next/link'
import NavLink from '@/components/NavLink'
import ResponsiveNavLink, {
ResponsiveNavButton,
} from '@/components/ResponsiveNavLink'
import DropdownLink, { DropdownButton } from '@/com... |
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send('respond with a resource');
res.redirect('/home');
});
module.exports = router; |
/* eslint-disable no-param-reassign */
import { getEventRedirector } from './utils';
function registerSwiper(Vue) {
Vue.registerElement('hi-swiper', {
component: {
name: 'ViewPager',
processEventData(event, nativeEventName, nativeEventParams) {
switch (nativeEventName) {
case 'onPa... |
/**
* knxultimate-api - a KNX protocol stack in pure Javascript based on knx.js (originally written by Elias Karakoulakis)
* (C) 2020-2022 Supergiovane
*/
const knxLog = require('./../KnxLog');
//
// DPT16: ASCII string (max 14 chars)
//
// Write to BUS
exports.formatAPDU = function (value) {
if (typeof value != '... |
import React from "react";
import renderer from "react-test-renderer";
import Node from "../../src/components/node/Node";
describe("Node Component", () => {
let that = {};
beforeEach(() => {
that.clickCallback = jest.fn();
that.mouseOverCallback = jest.fn();
that.mouseOutCallback = je... |
/**
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* Sectors - Gahunga
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/
module.exports = {
"Buramba": [
"Buramba",
"Gafatangwe",
"Gasenyi",
"Kagoma",
"Karuheshyi",
"Murambi",
"Musanzu"
],
"Gisizi": [
"Gi... |
require('songbird')
let archiver = require('archiver')
let fs = require('fs')
async function get(req, res) {
if (req.requestedDirectory && req.zipFolder) {
archiver('zip').bulk([ { expand: true, cwd: req.filePath, src: '**' }])
.on('error', err => res.status(500).send())
... |
import React from "react"
import Title from "../Title"
import services from "../../constants/services"
import styles from "../../css/services.module.css"
function Services(props) {
return (
<section className={styles.services}>
<Title title="our" subtitle="services" />
<div className={styles.center}>
... |
var namespace_francois_sauce_1_1_scripts_1_1_f_s_u_i_1_1_progress_bar =
[
[ "ProgressBar", "class_francois_sauce_1_1_scripts_1_1_f_s_u_i_1_1_progress_bar_1_1_progress_bar.html", "class_francois_sauce_1_1_scripts_1_1_f_s_u_i_1_1_progress_bar_1_1_progress_bar" ],
[ "ProgressBarFiller", "class_francois_sauce_1_1_s... |
//# sourceMappingURL=app.3f2b1498cc75334d5620.js.map |
import {Grid} from '@material-ui/core';
import React from 'react';
export default function Navbar(props) {
const {changeCard, activeItem} = props;
return(
<ul className="nav nav-pills mb-4">
<li className="nav-item">
<button className={ activeItem === 'storeCard' ? 'nav-li... |
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
class CheckoutForm extends React.Component {
constructor() {
super();
this.state = {
firstName: '',
lastName: '',
address: '',
phoneNumber: '',
email: '',
year: '',
... |
import { DeviceGetByRoomStatus } from '../utils/consts';
import update from 'immutability-helper';
function createActions(store) {
const actions = {
async getDevicesByRoom(state) {
store.setState({
DeviceGetStatus: DeviceGetByRoomStatus.Getting
});
try {
const rooms = await stat... |
/**
* @license Angular v6.0.1
* (c) 2010-2018 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common')) :
typeof... |
var getConf=
{
"state": true,
"pos": 0,
"type": ["socketio"]
}
module.exports.getConf = getConf |
import React from 'react';
import styled from 'styled-components';
import { Icon } from '../icons';
export const FlagIcon = styled(props => (
<Icon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z" key='path0' />
</Icon>
))``; |
const expect = require("chai").expect;
const request = require("request");
describe("Test sums two numbers", () => {
//const url = "http://localhost:5050/add/2/3";
it("returns status code 200 when calling api", (done) => {
request(url, (err, response, body) => {
//if the response.statusC... |
/**
* @jest-environment jsdom
*/
/* eslint-disable max-statements */
import React from 'react';
import backend from 'fetch-mock';
import { shallow } from 'enzyme';
import Immutable from 'immutable';
import moment from 'moment';
import api from 'app/utils/api';
import { RequestParams } from 'app/utils/RequestParams';... |
const path = require('path')
const withPWA = require('next-pwa')
module.exports = withPWA({
pwa: {
//disable: process.env.NODE_ENV === 'development',
// dest: 'public',
register: true,
sw: '/sw.js'
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
... |
import { Clipboard } from 'icons/Clipboard'
import { Facebook } from 'icons/Facebook'
import { Linkedin } from 'icons/Linkedin'
import { Twitter } from 'icons/Twitter'
import React from 'react'
import { markdownStyles } from '../../styles/markdown'
import { theme } from '../../styles/theme'
import { copyToClipboard } f... |
import React from "react"
import { Link } from "gatsby"
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
import ContextProvider from '../provider/ContextProvider'
const Layout = props => {
const { children } = props
const title = "Perfect Mess Paints"
const [toggleNav, setToggleNav] =... |
/*!
* jQuery insertAtCaret 1.1.5
* http://www.karalamalar.net/
*
* Copyright (c) 2013 İzzet Emre Erkan
* Licensed under GPLv2 or later.
* http://www.gnu.org/licenses/gpl-2.0.txt
*
* Contributors:
* [@kittsville](https://github.com/kittsville)
* [@Nils-Berghs](https://github.com/Nils-Berghs)
*
*/
var jQuery ... |
import 'bootstrap';
export class App {
configureRouter(config, router) {
config.title = 'LDAN';
config.map([
{ route: ['', 'dashboard'], name: 'dashboard', moduleId: './view-models/dashboard', nav: true, title:'Dashboard', settings: {menu: 'root', iconClass: 'fa-dashboard'} },
{ route: ['charts'], name: 'ch... |
/**
* Auto-generated action file for "Crucible" API.
*
* Generated at: 2019-05-07T14:40:09.219Z
* Mass generator version: 1.1.0
*
* flowground :- Telekom iPaaS / crucible-local-connector
* Copyright © 2019, Deutsche Telekom AG
* contact: flowground@telekom.de
*
* All files of this connector are licensed under... |
const COLORS = {
confirmed: '#ff0000',
recovered: '#008000',
deaths: '#373c43',
}
const CASE_STATUS = {
confirmed: 'confirmed',
recovered: 'recovered',
deaths: 'deaths',
}
let body = document.querySelector('body')
let countries_list
let all_time_chart, days_chart, recover_rate_chart
window.... |
module.exports = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vc2VydmVyLmV4YW1wbGUuY29tIiwic3ViIjoiMjQ4Mjg5NzYxMDAxIiwiYXVkIjoiczZCaGRSa3F0MyIsIm5vbmNlIjoibi0wUzZfV3pBMk1qIiwiZXhwIjoxODMwMjk3NjAwLCJpYXQiOjEzMTEyODA5NzAsIm5hbWUiOiJKYW5lIERvZSIsImdpdmVuX25hbWUiOiJKYW5lIiwiZmFtaWx5X25hbWUiOiJEb2UiLCJnZW5kZXIiO... |
/**
* A collection of objects from Gansoi.
* @constructor
* @param {!string} identifier THe name of the member used to identify an
* object.
*/
g.Collection = function(identifier) {
var self = this;
self.dataset = new timeline.DataSet([], {
fieldId: identifier
});
// This is for ea... |
import React from 'react'
import PropTypes from 'prop-types'
import './dropdown.sass'
const FormSimpleDropdown = ({
field,
options,
label,
className,
selectClassName,
errorClassName,
form: {
touched,
errors
},
...rest
}) => {
const isError = touched[field.name] && errors[field.name]
ret... |
const rabbitmqSettings = {
username: 'admin',
password: 'admin',
host: 'frontend.ascuy.me',
port: 15675,
keepalive: 20,
path: 'ws'
}
async function connect(options) {
try {
const client = await RsupMQTT.connect(options)
client.subscribe('teamName/topic').on(message => console.log(message.string))... |
import Activate from './Activate'
export default Activate |
const {spawn} = require('child_process');
const path = require('path');
const fs = require('fs');
const fse = require('fs-extra');
const figlet = require('figlet');
const chalk = require('chalk');
const ora = require('ora');
const boxen = require('boxen');
async function modifyPackageJson(rootDirectory) {
return ... |
describe('<ReactStickyHeader />', () => {
it('should render with hero', () => {
});
describe('header only', () => {
it('should render with header only', () => {
});
it('should not set any event listeners', () => {
});
});
it('should add classname', () => {
});
it('should calculate ... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"
}), 'ChatBubbleOutlined'); |
dojo.provide("dojox.wire.CompositeWire");
dojo.require("dojox.wire._base");
dojo.require("dojox.wire.Wire");
dojo.declare("dojox.wire.CompositeWire", dojox.wire.Wire, {
// summary:
// A Wire for composite values in object or array
// description:
// This class has multiple child Wires for object properties or a... |
YUI.add("lang/datatype-date-format_es-ES",function(e){e.Intl.add("datatype-date-format","es-ES",{a:["dom","lun","mar","mi\u00e9","jue","vie","s\u00e1b"],A:["domingo","lunes","martes","mi\u00e9rcoles","jueves","viernes","s\u00e1bado"],b:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],B:["enero"... |
/*
* Copyright 2013 Amadeus s.a.s.
* 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 i... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* 二维码扫描
*/
import React, {Component} from 'react';
import {
Text,
StyleSheet,
Dimensions,
Image,
View
} from 'react-native';
import NavigationBar from '../component/NavigationBar'
import ViewUtils from '../util/ViewUtils'
... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import history from '../../history';
import NewNewsletterForm from './newsletterNewForm';
class NewNewsletter extends Component {
onSubmit = fields => {
const { title, body, image }... |
import axios from '../../axios'
/*
* 专栏模块
*/
// 专栏列表
export const list = (data) => {
return axios({
url: '/column/search',
data
})
}
// 专栏上下架
export const publish = (data) => {
return axios({
url: '/column/publish',
data
})
}
// 专栏添加
export const insert = (data) => {
return axios({
url:... |
"use strict";
const mongoose = require("mongoose");
const bcrypt = require("bcrypt");
const jwt = require("jsonwebtoken");
const SECRET = "toejam";
//const acl = require("../middleware/acl");
const users = new mongoose.Schema(
{
username: { type: String, required: true, unique: true },
password: { type: Stri... |
// Custom JavaScript File
// Place any custom scripts in here |
/*
* jQuery Easing Scroll - http://moto-mono.net/easingScroll/
*
* jQuery required.
* jQuery Easing Plugin extends this Plugin.
*
* Copyright 2009 (c) nori (norimania@gmail.com)
* http://moto-mono.net
* Licensed Under the MIT.
*
* $Date: 2009-05-13
*/
jQuery.fn.easingScroll=function(b){var d=$.extend({easing... |
import React from 'react'
import WebView from 'react-native-web-webview'
import _get from 'lodash/get'
const WebViewScreen = props => {
const { source, title, ...rest } = props
return <WebView source={{ uri: source }} style={{ flex: 1 }} {...rest} />
}
export default WebViewScreen
export const createWebViewScre... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const BaseCache_1 = __importDefault(require("./BaseCache"));
/**
* Cache responsible for caching users
* @extends BaseCache
*/
class UserCache extends BaseCache_1.d... |
import { utils } from '@chilangomax/react-data-grid';
const { getMixedTypeValueRetriever, isImmutableCollection } = utils;
const comparer = (a, b) => {
if (a === null || a === undefined) {
return 1;
} else if (b === null || b === undefined) {
return -1;
} else if (a > b) {
return 1;
} else if (a < ... |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_views_Import_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/ts-loader/index.js??clonedRuleSet-6!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/views/Import.v... |
var searchData=
[
['v',['V',['../a00057.html#a9b93d86de9abfad29601c91264b2f081',1,'gtsam::DSFVector']]],
['values',['Values',['../a00047.html#af60ddbcb414927280bf1aa4dcd9cd0a9',1,'gtsam::DiscreteConditional::Values()'],['../a00048.html#a8c9e7ef549b1573b6ec9783c1916b9fe',1,'gtsam::DiscreteFactor::Values()'],['../a00... |
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
... |
// Código para gerar os dados e exibir o gráfico
// Por Pedro Pereira & Juliano Garcia, IME-USP
/*Control variables:
* updateInterval (miliseconds to update the data)
* dataLength (initial number of tries displayed in the graph)
*/
// Auxiliar functions to convert colors
function rgbToHex(R,G,B) {return toHex(R)+t... |
const writeReport = require('../lib/lighthouse-reporter');
describe('Reporter', () => {
jest.setTimeout(20000); // Allows more time to run all tests
it('should launch Chrome and generate a report', async () => {
const result = await writeReport('http://example.com/');
expect(result).toEqual(
expect.... |
/* global google, nycTranslateInstance */
/**
* @module nyc/lang/Goog
*/
import $ from 'jquery'
import Translate from 'nyc/lang/Translate'
/*
* @private
* @constant {string}
*/
const ATTRS_TO_TRANSLATE = ['alt', 'placeholder']
/**
* @desc Class for language translation using the Google Translate Gadget
* @pu... |
console.log((0.1 + 0.2)===0.3);
const x = 0.1 + 0.2;
console.log(x);
console.log(x === 0.3);
//false
console.log(Math.abs(0.1 + 0.2 - 0.3) < Number.EPSILON); |
/* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import Page from './Page';
storiesOf(' Documentation', module).add('Browser Support', () => (
<Page title="Browser Support" subTitle="All supported browsers">
<p>Components is supported in the following brow... |
import React from "react";
import {
Text,
View,
StyleSheet,
TouchableHighlight,
Alert,
ActivityIndicator,
Button,
TextInput,
FlatList,
Image,
TouchableOpacity
} from "react-native";
import { RkCard } from "react-native-ui-kitten";
import PropTypes from "prop-types";
import { searchContributors } ... |
/*eslint no-console: 0, no-unused-vars: 0, no-use-before-define: 0, no-redeclare: 0*/
/*************** Language Resource Loader *************/
jQuery.sap.require("jquery.sap.resources");
var sLocale = sap.ui.getCore().getConfiguration().getLanguage();
var oBundle = jQuery.sap.resources({
url: "./i18n/messagebund... |
// Iterators + For..Of
var fibonacci = {
[Symbol.iterator]: function*() {
var pre = 0, cur = 1;
for (;;) {
var temp = pre;
pre = cur;
cur += temp;
yield cur;
}
}
}
for (var n of fibonacci) {
// truncate the sequence at 1000
if (n > 1000)
break;
console.log(n);
}
// Cl... |
import 'ui/file_manager';
import { FileManagerItem } from 'ui/file_manager/file_provider/file_provider';
import RemoteFileProvider from 'ui/file_manager/file_provider/remote';
import ajaxMock from '../../../helpers/ajaxMock.js';
import { createSampleFileItems } from '../../../helpers/fileManagerHelpers.js';
import { w... |
{
"": {
"domain": "ckan",
"lang": "ko_KR",
"plural-forms": "nplurals=1; plural=0"
},
"An Error Occurred": [
null,
"오류 발생"
],
"Are you sure you want to perform this action?": [
null,
"이 작업의 수행을 원합니까?"
],
"Cancel": [
null,
"취소"
],
"Confirm": [
null,
"승인"
],
... |
// https://javascript.info/property-accessors
// https://www.developerdrive.com/javascript-getters-setters/
// mosh: https://www.youtube.com/watch?v=bl98dm7vJt0
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functio... |
const {route, ui, utils, api} = require("../../../js/core");
route.add('/goback/profile/password', function (tpl) {
ui.content(tpl);
ui.focusNav(3)
$('#form-profile-password').on('submit', function(e){
e.preventDefault()
let data = utils.formFields($(this).serializeArray())
if (!da... |
(function(undefined) {
if (!("Intl"in self&&"DateTimeFormat"in self.Intl&&"formatToParts"in self.Intl.DateTimeFormat&&self.Intl.DateTimeFormat.supportedLocalesOf("kam").length
)) {
// Intl.DateTimeFormat.~locale.kam
/* @generated */
// prettier-ignore
if (Intl.DateTimeFormat && typeof Intl.DateTimeFormat.__addLoc... |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ngtemplates: {
app: {
src: ["views/*.html", "views/directives/*.html"],
dest: "build/templates.js",
options: {
module: "app... |
'use strict';
const path = require('path');
const config = require('../config');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const packageConfig = require('../package.json');
const sass = require('sass');
exports.assetsPath = function(_path) {
const assetsSubDirectory = process.env.NODE_ENV === ... |
/*!
=========================================================
* Argon Design System React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-design-system-react
* Copyright 2020 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT ... |
/**
* @Author: Kevin
* @Date: 2016-06-11T22:07:59-04:00
* @Last modified by: Kevin
* @Last modified time: 2016-06-11T22:15:09-04:00
*/
'use strict';
// Setting up route
angular.module('projects').config(['$stateProvider',
function($stateProvider) {
// Projects state routing
var access = roleManager.acc... |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('decisionMatrixApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = ... |
window.JingleChart = JChart = {
version: '0.1',
animationOptions: {
linear: function (t) {
return t;
},
easeInQuad: function (t) {
return t * t;
},
easeOutQuad: function (t) {
return -1 * t * (t - 2);
},
easeInOutQuad: f... |
export {};
//# sourceMappingURL=qmonthlysynclog.js.map |
import styled, { css } from 'styled-components';
import { media } from '@design/media';
const textStyleMixin = (size, family, letterSpacing, lineHeight) => {
return css`
font-size: ${size}px;
font-family: ${family};
letter-spacing: ${letterSpacing}px;
line-height: ${lineHeight}px;
... |
/*
* Copyright (c) 2013-2020 Vanessa Freudenberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
/**
* Tools to interract with scenes.
* @memberof GDAPI
* @namespace
*/
GDAPI.SceneTools = {}
/**
* Add an object to the Scene and take care of registration.
* @param {gdjs.RuntimeObject} runtimeObject - The object to add to the scene.
*/
GDAPI.SceneTools.addObjectToScene = function (runtimeObject) {
if(!GD... |
'use strict'
/*
* Create the `abs` function that takes one number argument
* and returns its absolute value.
* You are not allowed to use `Math.abs`, make your own.
* see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/abs
*
* @notions Functions, Ternary
*/
// Your code :... |
export default function Shake( props ) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 311.57 515.61"
width="225"
{ ...props }
>
<defs>
<linearGradient
id="prefix__a"
x1={ 161.71 }
y1={ 299.73 }
x2={ 146.71 }
y2={ 47.74 }
gradientUnits="userSpaceOnUs... |
'use strict'
module.exports = clike
clike.displayName = 'clike'
clike.aliases = []
function clike(Prism) {
Prism.languages.clike = {
comment: [
{
pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
lookbehind: true,
greedy: true
},
{
pattern: /(^|[^\\:])\/\/.*/,
... |
var _ = require('lodash'),
assert = require('assert'),
update = require('../../lib/resources/beanstalkElastigroup/update'),
elasticgroup = require('../../lib/resources/beanstalkElastigroup'),
lambda = require('../../'),
nock = require('nock'),
sinon = req... |
var chai = require('chai');
var chalk = require('chalk');
var engine = require('./engine');
var debug = require('debug')('tests');
var types = require('conventional-commit-types').types;
var expect = chai.expect;
chai.should();
var defaultOptions = {
types,
maxLineWidth: 100,
maxHeaderWidth: 100
};
var type ... |
(function ( window ) {
/**
* logic controll for my blog
* such as modal, rss, etc.
*/
})( window ); |
import React from "react";
import PropTypes from "prop-types";
import { Link, graphql } from "gatsby";
import { getImage } from "gatsby-plugin-image";
import Layout from "../components/Layout";
import Features from "../components/Features";
import BlogRoll from "../components/BlogRoll";
import NFTRoll from "../compone... |
/*global defineSuite*/
defineSuite([
'Core/ShowGeometryInstanceAttribute',
'Core/ComponentDatatype'
], function(
ShowGeometryInstanceAttribute,
ComponentDatatype) {
"use strict";
/*global jasmine,describe,xdescribe,it,xit,expect,beforeEach,afterEach,beforeAll,afterAll,spyOn,r... |
'use strict';
const container = document.getElementById('select');
let image1 = document.getElementById('img1');
let image2 = document.getElementById('img2');
let image3 = document.getElementById('img3');
let itemArray = [];
let index = [];
let counter = 0;
let maxCount = 25;
function Item(name, views = 0, clicks... |
const notes = [{
title: 'my next trip',
body: 'I would like to go to spain'
}, {
title: 'Habits to work on',
body: 'Exercise, Eating better.'
}, {
title: 'Office modification',
body: 'Get a new seat'
}]
const findNote = function (notes, noteTitle) {
return notes.find(function (note, inde... |
define(function(require, exports, module){
'use strict';
var Selectors = require('undefined');
module.exports = {
run : function(){
describe('Selector', function() {
beforeEach(function () {
this.obj = new Selector();
});
afterEach(function (... |
/**
* 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... |
// miniprogram/pages/openapi/callback/callback.js
Page({
data: {
},
onLoad: function (options) {
},
onCustomerServiceButtonClick(e) {
},
}) |
var CACHE_NAME = 'aden-cache';
/*program di atas di gunakan untuk memberikan nama cache yang kita inginkan pada saat riqust ke service worker*/
var urlsToCache = [
'.',
'images/gibran1.jpg',
'images/gibran2.jpg',
'images/gibran3.jpg',
'images/gibran4.jpg',
'index.html',
'nav.html',
'pages/offline.html',... |
Ext.define('Admin.store.OrderStore', {
extend: 'Ext.data.Store',
storeId: 'OrderStore',
model: 'Admin.model.Sales'
}); |
/**
* @class Oskari.mapframework.bundle.coordinatetool.CoordinateToolBundleInstance
*
* Registers and starts the
* Oskari.mapframework.bundle.coordinatetool.plugin.CoordinatesPlugin plugin for main map.
*/
Oskari.clazz.define('Oskari.mapframework.bundle.coordinatetool.CoordinateToolBundleInstance',
/**
*... |
export const deleteKeg = id => ({
type: 'DELETE_KEG',
id
});
export const toggleForm = () => ({
type: 'TOGGLE_FORM'
});
export const addKeg = (keg) => {
const {name, brand, abv, price, pintsLeft, id} = keg;
return {
type: 'ADD_KEG',
name: name,
brand: brand,
abv: abv,
price: price,
p... |
/*!
* @lime-util/date v3.2.3
* Copyright 2021-2022, Gaoshiwei <575792372@qq.com>
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global... |
"use strict";
// Reload client for Chrome Apps & Extensions.
// The reload client has a compatibility with livereload.
// WARNING: only supports reload command.
var LIVERELOAD_HOST = "localhost:";
var LIVERELOAD_PORT = 35729;
var connection = new WebSocket("ws://" + LIVERELOAD_HOST + LIVERELOAD_PORT + "/livereload");... |
'use strict';
module.exports = function(Rolemapping) {
}; |
import React, { useState, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import { useLocalNodeState } from '../../../state/localNode';
import { MultiStepForm, Step } from '../MultiStepForm';
import { Circuit } from '../../../data/circuits';
import { createCallPayload, getCircuit, getNodes } f... |
'use strict';
var path = require('path');
var fs = require('fs');
var child_process = require('child_process');
var settings = require('./configSettings');
var IS_WINDOWS = /^win/.test(process.platform);
var PATH_VARIABLE_NAME = IS_WINDOWS ? 'Path' : 'PATH';
var PathValidity = new Map();
function validatePath(filePath)... |
var buffer = new Buffer('aasdw');
//buffer.writeFloatLE(Math.sin(5)*Math.sin(5), 0);
//console.log(buffer.readFloatLE(0));
console.log(buffer);
console.log(typeof buffer); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.