text stringlengths 2 1.04M |
|---|
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/ |
$(document).ready(function(){
// $('.nav_link_toggle').hover(function(){
// $('.has_mega_menu').addClass('hs_mega_menu_opened');
// });
$('.nav_link_toggle').hover(function(){
// $('.has_mega_menu').addClass('hs_mega_menu_opened');
}, function(){
// $('.has_mega_menu').removeClass('hs_... |
const configData = require('../../configuration/configData.json');
module.exports.run = function(client, message, args, commandName) {
message.channel.send("The service team's paypal address is " + configData.PaypalURL);
}; |
const Sequelize = require('sequelize');
module.exports = class User extends Sequelize.Model {
static init(sequelize) {
return super.init(
{
email: {
type: Sequelize.STRING(40),
allowNull: false,
unique: true
},
nick: {
type: Sequelize.STRING(1... |
(function () {
var editor;
var configEditor;
var buildReportTable = function (errors) {
var table = $('<div class="error_report">');
$.each(errors, function (index, error) {
var row = $('<div></div>');
var lc = $('<span class="lineNumber"></span>'
... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.SelectList.
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/core/delegate/I... |
const PLAYER_TICK_INTERVAL_SECONDS = 3;
const PLAYER_TICK_INTERVAL = PLAYER_TICK_INTERVAL_SECONDS * 1000;
const AUTH_TIMEOUT = 15 * 1000;
const MAX_TITLE_LENGTH = 50;
const NO_OP = function(){};
var _ = require('underscore');
var uuid = require('uuid');
var io;
var rooms = [];
var generateAuthToken = require('../uti... |
/*Get background position */
import {randomBackgroundType} from "../modules/utils/random.js";
function getAnchoring(theme) {
if (theme.definition.overrides && theme.definition.overrides.theme &&
theme.definition.overrides.theme.properties &&
theme.definition.overrides.theme.properties.ntp_background_alignmen... |
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "@/store/store";
import upperFirst from "lodash/upperFirst";
import camelCase from "lodash/camelCase";
import "nprogress/nprogress.css";
import Vuelidate from "vuelidate";
import DateFilter from "./filters/date";
Vue... |
import React from 'react';
import { FormattedMessage } from '../../util/reactIntl';
import { InlineTextButton } from '../../components';
import css from './ListingPage.module.css';
const getCertificateInfo = (certificateOptions, key) => {
return certificateOptions.find(c => c.key === key);
};
const SectionHeading ... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "jira_local"); |
const Event = require('../models/event')
Event.find()
.then((documents) => {
console.log('\nfind 所有的文档: \n', documents)
}).catch((err) => {
console.log(err);
});
Event.find({ title: 'Node.js 开发者大会'})
.then((documents) => {
console.log('\nfind 指定标题的文档: \n', documents)
}).catch((err) => {
cons... |
const { Command, KongError } = require('@Kong/structures')
const { TimeUtils } = require('@Kong/utils')
class DailyCommand extends Command {
constructor (client) {
super(client, {
name: 'daily'
})
}
async run (ctx) {
const { economy } = this.client.controllers
const user = await this.clien... |
/*!
* jQuery UI Effects 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
//>>label: Effects Core
//>>group: Effects
// jscs:disable maximumLineLength
//>>description: Extends the internal jQuery effects. Includes... |
/* eslint no-bitwise: ["error", { "allow": ["<<", ">>", "&"] }] */
export default function(seed = 123456789) {
let mW = seed;
let mZ = 987654321;
const mask = 0xffffffff;
return () => {
mZ = (36969 * (mZ & 65535) + (mZ >> 16)) & mask;
mW = (18000 * (mW & 65535) + (mW >> 16)) & mask;
let result = (... |
/**
* This rollup plugin get the main entry file name (with hashes)
* and assign it to a global variable
* @param {Object} param
* @param {string} param.name - Name of the main entry file
* @param {string} param.globalKey - Name of the global variable
*/
exports.bundleName = function bundleName({
name,
global... |
/**
* 日期处理模块
* @module $ui/utils/date
* @author 陈华春
*/
/**
* 日期格式转换函数
* @param {String|Date} dateStr 日期时间对象或字符串
* @param {String} [format] 输出格式,yyyy-MM-dd hh:mm:ss
* @param {Object} [options] 时间偏移对象,可选 {y,M,d,h,m,s}
* @param {Number} options.y 年偏移量,+增加, -减少
* @param {Number} options.M 月偏移量,+增加, -减少
* @pa... |
import typescript from 'rollup-plugin-typescript2';
const srcFilePath = './src/lib/index.ts';
const distFilePathPrefix = './dist/lib/index.';
const rollupParms = { tsconfig: 'ts-lib-config.json' };
export default [
{
input: srcFilePath,
output: {
file: distFilePathPrefix + 'esm.js',
format: 'es... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
|
import { createIcon } from "@chakra-ui/icon"
import { Flex, Text } from "@chakra-ui/layout"
import { chakra } from "@chakra-ui/system"
import useSWR from "swr"
import fetcher from "../lib/fetcher"
import NextChakraLink from "./Link"
import Image from './Image'
import { Spacer } from '@chakra-ui/react'
const SpotifyIcon... |
var A, B;
(A || (A = {})).Point = function() {
return {
x: 0,
y: 0
};
}, (function(A1) {
(A1.Point || (A1.Point = {})).Origin = {
x: 0,
y: 0
};
})(A || (A = {})), A.Point, A.Point(), A.Point.Origin, (function(B1) {
var Point = function() {
return {
... |
/*!
* Bootstrap toast.js v4.5.3 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof modu... |
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-jquerymanifest');
grunt.loadNpmTa... |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../javascript/javascript"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../javascript/javascript"], mod);
else // Plain b... |
const VALID_ASSET_TYPES = ['image', 'file']
const VALID_INSERT_LOCATIONS = ['before', 'after', 'replace']
exports.dataset = (name) => {
if (!/^(~[a-z0-9]{1}[-\w]{0,25}|[a-z0-9]{1}[-\w]{0,19})$/.test(name)) {
throw new Error(
'Datasets can only contain lowercase characters, numbers, underscores and dashes, ... |
"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.15.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... |
import _ from 'underscore'
class SessionMap extends Map {
constructor (props) {
super(props)
}
get length () {
return this.size
}
/**
* 可以对对象处理
* @param {String} key key值,已'.'分割比如'a.b.c'
* @param {[type]} value 值
* @return {[type]} [description]
*
* @example
* var a = n... |
const Constants = {
/*
* This is the list of possible WEBM file sections by their IDs.
* Possible types: Container, Binary, Uint, Int, String, Float, Date
*/
SECTIONS: {
0xa45dfa3: { name: 'EBML', type: 'Container' },
0x286: { name: 'EBMLVersion', type: 'Uint' },
0x2f7: { na... |
'use strict';
const fs = require('fs');
const path = require('path');
/**
* Explores recursively a directory and returns all the filepaths and folderpaths in the callback.
*
* @see http://stackoverflow.com/a/5827895/4241030
* @param {String} dir
* @param {Function} done
*/
async function fileWalker(dir) {
r... |
'use strict'
/**
任务名称:2634/工作流前端迁移到施工系统作为流程管理模块
开发人员:李建敏
日期:2020-3月-17日
任务类型:2、复制修改代码 (移动位置)
**/
var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject,
is = require('bpmn-js/lib/util/ModelUtil').is
var entryFactory = require('../../../factory/EntryFactory')
var callable = require('./i... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[63],{
/***/ "./node_modules/@ionic/core/dist/esm/es5/build/3hf0d5sl.sc.entry.js":
/*!**************************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/es5/build/3hf0d5sl.sc.entry.js ***!
\***********... |
//# sourceMappingURL=cms.js.map |
/**
* Created by pete on 22/07/2016.
*/
jQuery(document).ready(function ($) {
/*
* When the submit button is pressed,
*/
function dragonfly_codes_post(data, callback) {
console.log('dragonfly_codes_post ' + JSON.stringify(data));
$.ajax({
type: 'post',
dataT... |
var bind = function bind(fn, thisArg) {
return function wrap() {
var args = new Array(arguments.length);
for (var i = 0; i < args.length; i++) {
args[i] = arguments[i];
}
return fn.apply(thisArg, args);
};
};
/*global toString:true*/
// utils is a library of generic helper functions non-spec... |
exports.command = {
name: "spod",
autoload: true,
unloadable: true,
min_rank: 2,
display: "Shows top users per total time or login count",
help: "Shows top users per total time. Using -l will show the top login counts.",
usage: ".spod [-l]",
weight: 0,
// Function to execute the command
execute: function(soc... |
import request from '@/utils/request'
const qs = require('qs')
/**
* 获取首页推荐
*/
export function recommend(city) {
return request({
url: '/program/recommend?city=' + city,
method: 'get'
})
}
/**
* 轮播图
*/
export function getSowingMapUrl(city) {
return request({
url: '/program/getSowingMapUrl?city='... |
import {calculateScore} from './calculate-score'
test('it should calculate for correct guess', () => {
const bid = 0
const win = 0
const expected = 10
const actual = calculateScore(bid, win)
expect(actual).toEqual(expected)
})
test('it should calculate for incorrect guess', () => {
const bid = 1
const w... |
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.ha... |
/**
* Lists in Word are just paragraphs styled as list items that follow one another,
* with specific properties overriding their depth and style. This turns them
* into properly nested structures.
*/
import extractProperties from '../lib/extract-properties';
import xpath from '../lib/xpath';
import { SA_NS, W_NS ... |
export default class ExchangeAccountMfaCtrl {
/* @ngInject */
constructor(
$q,
$scope,
$state,
$translate,
wucExchange,
exchangeAccount,
messaging,
navigation,
) {
this.$q = $q;
this.$scope = $scope;
this.$state = $state;
this.$translate = $translate;
this.wucEx... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return undefined; };
var argument2 = false;
var argument3 = "f";
var argument4 = function() {
callbackArguments.push(arguments)
return -59.4506566636247; };
var argument5 = false;
var argument6 = null;
var argument7 = funct... |
/*! abcjs_basic v5.0.0 Copyright © 2009-2018 Paul Rosen and Gregory Dyke (http://abcjs.net) */
/*! For license information please see abcjs_basic_5.0.0-min.js.LICENSE */ |
//# sourceMappingURL=15.510f64f45fe3cfc88a08.js.map |
// `apostrophe-pieces` provides a "base class" you can extend to create new content
// types for your project. Just use the `addFields` option to create a schema and
// you'll get a user interface for managing your content for free. Add in the
// `apostrophe-pieces-pages` module to display an index page and permalink p... |
import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import SelectionEditorWidget from 'paraviewweb/src/React/Widgets/SelectionEditorWidget';
import SelectionBuilder from 'paraviewweb/src/Common/Misc/SelectionBuilder';
import LegendProvider from 'paraviewweb/src/InfoViz/Core/LegendProv... |
// @flow
import React, { PureComponent, type Node } from 'react';
import Group, { Heading, HeadingText, HeadingAfter } from '../styled/Group';
type Props = {
children?: any,
elemAfter?: Node | string,
heading?: string,
};
type State = {
ariaLabel?: string,
};
class DroplistGroup extends PureComponent<Props, ... |
'use strict';
describe('Books E2E Tests:', function () {
describe('Test Books page', function () {
it('Should report missing credentials', function () {
browser.get('http://localhost:3001/books');
expect(element.all(by.repeater('book in books')).count()).toEqual(0);
});
});
}); |
'use strict'
module.exports = function (dep) {
const configDirPath = function () {
const { join, process } = dep
return join(process.cwd(), '/config')
}
const configPath = function () {
const { join } = dep
return join(configDirPath(), '/config.yml')
}
const formatName = (text = '') => {
... |
const Merge = require('webpack-merge');
const CommonConfig = require('./webpack.common.js');
const path = require('path');
module.exports = Merge(CommonConfig, {
devtool: 'eval-source-map',
entry: ['./example/index.jsx'],
resolve: {
alias: {
wavesurfer: require.resolve('wavesurfer.js')
}
},
out... |
//Factory simples
function criarPessoa() {
return {
nome: 'Ingrid',
sobrenome: 'Ramos'
}
}
console.log(criarPessoa())
//Factory personalizada
function criarProduto(nome, preco) {
return {
nome,
preco,
desconto: 0.1,
}
}
console.log(criarProduto('Notebook', 35... |
(function () {
'use strict';
angular
.module('app')
.controller('Home.IndexController', Controller);
function Controller(UserService) {
var vm = this;
vm.user = null;
let usingSessionStorage = JSON.parse(localStorage.getItem("user"));
console.log... |
/**
* Copyright 2019 The AMP HTML Authors. 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 require... |
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
module.exports = {
entry: "./src/index.js",
output: {
path: path.join(__dirname, "/dist"),
filen... |
export function addHome(data) {
return {type : "ADD_HOME", data: data}
}
export function addAllHomes(data) {
return {type : "ADD_ALL_HOMES", data: data}
} |
//event listener for match and non-match buttons
document.getElementById('match-button').addEventListener('click', handleMatchButton);
document.getElementById('non-match-button').addEventListener('click', handleNonMatchButton); |
"use strict";
var __importDefault =
(this && this.__importDefault) ||
function(mod) {
return mod && mod.__esModule ? mod : { default: mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const reducerHelper_1 = require("../../utils/reducerHelper");
const immutability_helper_1 = __importDef... |
import {
MODEL_AGENT,
MODEL_ACTION,
MODEL_POST_FORMAT
} from '../../../util/constants';
module.exports = async function ({ actionData, CSO }) {
const { globalService } = await this.server.services();
let postFormatPayloadToUse, usedPostFormatAction;
if ((actionData && actionData.usePostFormat) || CSO.age... |
$(document).ready(function() {
$('.cd-filter-trigger').on('click', function () {
triggerFilter(true);
});
$('.cd-filter .cd-close').on('click', function () {
triggerFilter(false);
});
function triggerFilter($bool) {
var elementsToTrigger = $([$('.cd-filter-trigger'), $('.cd-... |
import styled from 'styled-components';
export default styled.div`
display: ${props => props.isLoading ? 'block' : 'none'};
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color : rgba(0,0,0,0.5);
z-Index: 1025;
cursor: pointer;
` |
import React, {Component} from 'react';
import './App.css';
import Fab from '@material-ui/core/Fab';
import PlayArrowIcon from '@material-ui/icons/PlayArrow';
import CloseIcon from '@material-ui/icons/Close';
import StopIcon from '@material-ui/icons/Stop';
import {withStyles} from '@material-ui/core/styles';
import db ... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const request_1 = __importDefault(require("request"));
function getEtherscanApiUrl(network) {
let ho... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import fetch from 'dva/fetch';
import { notification } from 'antd';
import router from 'umi/router';
import hash from 'hash.js';
import { isAntdPro } from './utils';
import {getToken} from '@/utils/token';
import { debug } from 'util';
const codeMessage = {
200: '服务器成功返回请求的数据。',
201: '新建或修改数据成功。',
202: '一个请求已经进... |
const express = require("express");
const router = express.Router();
const Repository = require("./repository");
const repo = new Repository();
[{
description: "Foo",
isCompleted: true,
id: 1
},
{
description: "Bar",
isCompleted: false,
id: 2
},
{
description: "Buz",
isCompleted: false,... |
// ==UserScript==
// @name GitHub HTML Preview
// @version 0.1.0
// @description A userscript that adds preview links to HTML files
// @license MIT
// @author Rob Garrison
// @namespace https://github.com/Mottie
// @include https://github.com/*
// @run-at document-idle
// @grant non... |
import { combineReducers } from 'redux';
import { sampleReducer, REDUCER_PREFIX as SAMPLE } from './sample/sample';
export const reducers = combineReducers({
[SAMPLE]: sampleReducer,
}); |
g_db.quests[16895]={id:16895,name:"^aa32ffDarkness Shard (10) ",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:0,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on... |
import Vue from "vue";
Vue.config.productionTip = false;
// require all test files (files that ends with .spec.ts)
const testsContext = require.context("./specs", true, /\.spec$/);
testsContext.keys().forEach(testsContext);
// require all src files except main.ts for coverage.
// you can also change this to match o... |
export default function guid() {
let s = []
let hexDigits = '0123456789abcdef'
for (var i = 0; i < 36; i++) {
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
}
s[14] = '4' // bits 12-15 of the time_hi_and_version field to 0010
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1) // bits 6-7 o... |
import React, { Component } from "react";
import { MDBContainer } from "mdbreact";
import "mdbreact/dist/css/mdb.css";
import { Link } from "react-router-dom";
import SchoolPicker, {schoolLinkDict} from "../../components/SchoolPicker/SchoolPicker";
export default class RegisterWithSchool extends Component {
compone... |
module.exports = {
entry: './client.js',
output: {
filename: 'bundle.js',
path: 'public'
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
... |
"use strict";
var handleLogin = function handleLogin(e) {
e.preventDefault();
$("#domoMessage").animate({ width: 'hide' }, 350);
if ($("#user").val() == '' || $("#pass").val() == '') {
handleError("RAWR~ Username or password is empty");
return false;
}
console.log($("input[name=_... |
import React from 'react'
export default () => {
return <div>'this is module 1'</div>
} |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Etapa Schema
*/
var EtapaSchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Etapa name',
trim: true
},
created: {
type: Date,
default: Date.now
},
user: {
... |
/**
* 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 strict-local
* @format
*/
'use strict';
const ErrorUtils = require('ErrorUtils');
const RelayInMemoryRecordSource = req... |
module.exports = {
deps: [
'20140105151200-depTest-assets'
],
up: function(migration, DataTypes, done) {
migration.addColumn('userAssets', 'test2', DataTypes.STRING).complete(done);
},
down: function(migration, DataTypes, done) {
migration.removeColumn('userAssets', 'test2').complete(done);
}
} |
exports.handler = (event, context, callback) => {
try {
const mailgunBaseUrl = "https://api.mailgun.net/v3";
const apiKey = process.env.MAILGUIN_API_KEY;
const domain = process.env.MAILGUIN_DOMAIN;
const from = process.env.MAILGUIN_FROM;
const to = process.env.MAILGUIN_TO;
... |
const given = require('../../steps/given');
const when = require('../../steps/when');
const chance = require('chance').Chance();
const path = require('path');
describe('Mutation.editMyProfile.request template', () => {
it("Should use [newProfile] field in expression values", () => {
const templatePath = path.res... |
// create an async function which gets the search results for an input string
async function getSearchResults(search, cb) {
// use puppeteer module for emulating a browser environment
const puppeteer = require('puppeteer');
// wrapper async function
const myAsync = async () => {
let browser = aw... |
/*****************************************************************************
* Open MCT Web, Copyright (c) 2014-2015, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT Web is licensed under the Apache License, ... |
import React from 'react';
const style = {
display: 'flex',
flexDirection: 'row',
flexWrap: 'nowrap',
alignContent: 'center',
justifyContent: 'center',
alignItems:'center',
padding: 4
};
// TODO : Add another item for each exchanges links (Homepage, Twitter, Support, etc.)
const St... |
import didBirdCollideWith from './didBirdCollideWith'
export default function playerDied() {
const land = document.getElementById("land");
if (didBirdCollideWith(land)) return true; // player dies if bird hits the ground
const pipes = Array.from(document.getElementsByClassName("pipe"));
if (pipes.length === 0)... |
const legs = require('./legs');
const passengers = require('./passengers');
const pricingSolutionXml = require('./pricing-solution-xml');
const paramsIsObject = require('./params-is-object');
const fop = require('./fop');
const fopCreditCard = require('./fop-credit-card');
const pnr = require('./pnr');
const pcc = requ... |
describe("correct behavior", () => {
test("basic functionality", () => {
const plainDateTime = new Temporal.PlainDateTime(2021, 7, 30, 1, 4, 32, 111);
expect(plainDateTime.millisecond).toBe(111);
});
});
test("errors", () => {
test("this value must be a Temporal.PlainDateTime object", () =>... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, triggerEvent, triggerKeyEvent, click, focus } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import { run } from '@ember/runloop';
import { clickTrigger, typeInSearch } from 'ember-power-s... |
import CoreLayout from '../layouts/CoreLayout'
import Home from './Home'
import LoginRoute from './Login'
import SignupRoute from './Signup'
import ProjectsRoute from './Projects'
import AccountRoute from './Account'
import NotFoundRoute from './NotFound'
import BartenderMainRoute from './bartenderMain'
import adminMai... |
(function($) {
$(function() {
var jcarousel = $('.jcarousel');
jcarousel
.on('jcarousel:reload jcarousel:create', function () {
var carousel = $(this),
width = carousel.innerWidth();
if (width >= 600) {
width = wid... |
H5PEditor.ImpressPresentationEditor = H5PEditor.ImpressPresentationEditor || {};
H5PEditor.ImpressPresentationEditor.TransformMenu = function ($, JoubelUI) {
function TransformMenu(IPEditor, IP) {
var $transformButtonBar = $('<div>', {
'class': 'h5p-buttonbar-sub-menu'
});
/**
* Button for ... |
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*" // Match any network id
}
},
// compilers: {
// solc: {
... |
/** @type {import('../../../views/projects-list').ProjectListWording} */
const wording = {
title: "Services aux entreprises",
cta: [
{
text: "Nous contacter",
href: "mailto:contact@fullweb.dev",
primary: true,
},
{
text: "Organiser un rendez-vous",
onclick: () => {
... |
import typescript from 'rollup-plugin-typescript2'
import pkg from './package.json'
export default {
input: 'src/index.ts',
output: [
{
file: pkg.main,
format: 'cjs',
},
{
file: pkg.module,
format: 'es',
},
],
external: [
...Object.keys(pkg.dependencies || {}),
.... |
//Choose a name for the station
stationName = "revolution";
//Add it to the array of stations
stationsArray[stationsArray.length] = stationName;
//Define an array for tracks
this[stationName+"_tracks"] = new Array();
//TRACKS
this[stationName+'_tracks'][this[stationName+'_tracks'].length] = "Brother Ali - Uncle Sa... |
import React from 'react';
import { useHistory } from 'react-router-dom'
// @material-ui/core
import { withStyles, makeStyles } from '@material-ui/core/styles';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-ui/core/MenuItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
impor... |
import React, {useState} from "react";
import {Button, Col, Form, Row} from "react-bootstrap";
import { gql,useMutation } from "@apollo/client";
import {Link} from "react-router-dom";
const REGISTER_USER = gql`
mutation register($username: String! $email: String! $password: String! $confirmPassword: String!){
... |
module.exports = {
description: 'switch statements should be correctly tree-shaken',
options: {
name: 'myBundle'
}
}; |
exports.escapedAnchor = function (anchor) {
if (typeof anchor !== 'string') return null;
return anchor.replace('+', '__').replace('.', '_');
}; |
// tankokai.com/mt | Demo - Article Lists | Author Media Flipped | v0.0.0
var Nav1 =
m("header.bg-black-90.w-100.ph3.pv3.pv4-ns.ph4-m.ph5-l",
m("nav.f6.fw6.ttu.tracked", [
m("a.link.dim.white.dib.h2.w2.br-100.mr3.[href='https://tankokai.com/mt/']",
m("svg[data-icon='facebook'][viewBox='0 0 32 32']", { st... |
import React, { useState, useEffect } from 'react';
import { TextInput, TouchableOpacity, TouchableWithoutFeedback, Keyboard, Text, View, KeyboardAvoidingView } from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import { useMutation } from '@apollo/client';
import { Messages } from '... |
initSidebarItems({"type":[["Engine","MCRT sampling engine function type."]]}); |
function snowflakeToUTCDateTime(snowflake) {
return timestampToUTCDateTime(BigInt(snowflake) / 4194304000n + 1420070400n);
}
function timestampToUTCDateTime(timestamp) {
const s = BigInt(timestamp);
let date = s / 86400n + 146816528n;
let year = (date / 146097n - 1000n) * 400n;
date = date % 146097n - 1n;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.