text stringlengths 2 1.04M |
|---|
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
/**
* gulpfile.js
*/
"use strict";
const gulp = require("gulp");
const bom = require("gulp-bom");
const less = require('gulp-less');
const hash = require("gulp-static-hash");
const cssmin = require("gulp-clean-css");
const uglify = require("gulp-uglify");
const htmlmin = require("gulp-htmlmin");
const imagemin = re... |
var compressjs = require('compressjs')
var algorithm = compressjs.Lzp3
var data = new Buffer('Example data', 'utf8')
var compressed = algorithm.compressFile(data)
var decompressed = algorithm.decompressFile(compressed)
// convert from array back to string
var data2 = new Buffer(decompressed).toString('utf8') |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: Operator x ^ y returns ToNumber(x) ^ ToNumber(y)
es5id: 11.10.2_A3_T2.2
description: >
Type(x) is different from Type(y) and both types vary between
Number (primitive ... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* 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 a... |
const fs = require('fs')
const path = require('path')
const jsdoc2md = require('jsdoc-to-markdown')
/**
*/
module.exports = exports = async function docs () {
await _genAllDocs()
}
/**
*/
async function _genAllDocs () {
let alldocs = `# documentation
## projects
`
const baseDir = path.resolve(path.join(__di... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var StepForwardFill = {
name: 'step-forward',
theme: 'fill',
icon: {
tag: 'svg',
attrs: { viewBox: '0 0 1024 1024', focusable: false },
children: [
{
tag: 'path',
... |
/*-
* ============LICENSE_START=======================================================
* ONAP Policy Engine
* ================================================================================
* Copyright (C) 2017, 2019 AT&T Intellectual Property. All rights reserved.
* ==============================================... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
#!/usr/bin/env node
const {program} = require('commander');
program
.requiredOption('-k, --keys <keys>', 'Number of keys to generate buttons for');
program.parse(process.argv);
const options = program.opts();
let result = {buttons: []};
for (let i = 0; i < options.keys; i++) {
result.buttons.push({
keyIndex: i... |
CodeMirror.defineMode("sparql", function(config) {
var indentUnit = config.indentUnit;
var curPunc;
function wordRegexp(words) {
return new RegExp("^(?:" + words.join("|") + ")$", "i");
}
var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri",
... |
var baseURL = window.location.hostname.indexOf('github.') !== -1 ? '//cdn.rawgit.com/Alex-D/Trumbowyg/v2.8.1/' : '../../../';
var styleLoadingContainer = document.querySelector('.loading-head');
var scriptLoadingContainer = document.querySelector('.loading-body');
function loadStyle(stylePath, comment) {
'use stri... |
/* jshint node:true */
var path = require('path');
var saucelabsBrowsers = require(path.resolve('test', 'saucelabs-browsers.js'));
var sourceFiles = [
'Gruntfile.js',
'src/*.js',
'src/**/*.js',
'test/**/test.*.js'
];
module.exports = exports = function(grunt) {
'use strict';
var BANNER = '/*!... |
const express = require('express');
const authMiddleware = require('../middlewares/auth');
const Livros = require('../models/Livros');
const Notas = require('../models/Notas');
const User = require('../models/User');
const router = express.Router();
router.use(authMiddleware);
router.get('/user', async (req, res)... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
/*!
* ${copyright}
*/
// Provides the render manager sap.ui.core.RenderManager
sap.ui.define([
'./LabelEnablement',
'sap/ui/base/Object',
'sap/ui/performance/trace/Interaction',
'sap/base/util/uid',
"sap/ui/util/ActivityDetection",
"sap/ui/thirdparty/jquery",
"sap/base/security/encodeXML",
"sap/base/security... |
const { createRemoteFileNode } = require(`gatsby-source-filesystem`);
const axios = require('axios');
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
});
exports.sourceNodes = async ({
actions,
createNodeId,
createContentDigest,
getCache,
}) => {
const { createNode } = actions;
const php... |
import React, { Component } from "react";
import {
StyleSheet,
ImageBackground ,
KeyboardAvoidingView,
View,
Dimensions,
Image,
Modal,
TouchableOpacity,
Linking,
NetInfo,
AsyncStorage,
ToastAndroid,
BackHandler,
Alert
} from "react-native";
import { Container, Sp... |
import { StyledComponent, register } from '../component.js';
import { State } from '../../services/state.js'
class BusDepartures extends StyledComponent {
html () {
const { searchExecuted, stop, departures } = State
if (!searchExecuted) {
return ''
}
return `
<main class="bus-departures... |
import React, {Fragment, Component} from 'react';
import SplideComponent from "./SplideComponent";
import {Checkbox, Input, Select} from 'semantic-ui-react'
import './style.css'
class SliderContainer extends Component {
state = {
type: 'slide',
autoplay: true,
interval: 2000,
width: '50%',
perPage: 1
}
se... |
const { Client } = require('discord.js');
const client = new Client({ intents: ['GUILDS', 'GUILD_MESSAGES', 'DIRECT_MESSAGES'] });
const config = require('../../config');
// client.owners = '415135882006495242';
client.login(process.env.token);
async function AdminSend(content) {
const admin = await client.users.... |
import React from 'react'
const DEFAULT_SIZE = 24
export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, ...style }}
{ ...props }
>
<path d... |
/* global musje */
(function (musje) {
'use strict';
/**
* Construct head of the score.
* @class
* @param {Object} head
*/
musje.ScoreHead = function (head) {
musje.extend(this, head);
};
musje.defineProperties(musje.ScoreHead.prototype,
/** @lends musje.ScoreHead# */
{
/**
* T... |
sap.ui.define(['sap/ui/core/Core', 'sap/ui/core/library'], function(Core, coreLib) {
sap.ui.getCore().initLibrary({
name: 'testlibs.scenario6.lib1',
dependencies: [
],
noLibraryCSS: true
});
return testlibs.scenario6.lib1;
}); |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../I... |
function main() {
const v1 = [13.37,13.37];
// v1 = .object(ofGroup: Array, withProperties: ["constructor", "__proto__", "length"], withMethods: ["toString", "indexOf", "unshift", "shift", "concat", "sort", "reduceRight", "flatMap", "forEach", "entries", "every", "values", "push", "find", "fill", "toLocaleString", "joi... |
module.exports = function check(str, bracketsConfig) {
// your solution
let bracketsArray = str.split("");
let brConfig = bracketsConfig;
for(let i = 0; i < bracketsArray.length; i++) {
for(let j = 0; j < brConfig.length; j++) {
if(bracketsArray[i] === brConfig[j][0] && bracketsArray[i + 1] === b... |
import { text, select, boolean } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import React, { useState } from 'react';
import InputComponent from './InputComponent';
export default {
title: 'Input Component',
component: InputComponent,
argTypes: { onChange: { action: 'changed... |
/*global $, phantom*/
/*jshint unused:false*/
var fs = require('fs'),
system = require('system'),
page = require('webpage').create(),
index = 'http://localhost:8080/blog-static/index.html';
page.onError = function (msg, trace) {
console.log(msg);
trace.forEach(function(item) {
console.log(' ', ite... |
import {
canUseDom,
defaultParams,
get,
getMedia,
store,
updateStyles
} from "../index.js"
/**
Update styles if running in a browser environment and remove
the temporary self-selector group from the store singleton.
@typedef {import ("..").Params} Params
@param {Params} params
- This project's ... |
const test = require('ava');
const path = require('path');
const boa = require('../../');
test('Object-oriented filesystem paths', t => {
const { len, list } = boa.builtins();
const { Path, PurePath } = boa.import('pathlib');
{
const currl = list(Path('.').iterdir());
t.is(len(currl) > 0, true);
}
{
... |
var Sequelize = require('sequelize');
var sequelize = require('../../lib/sequelize');
var User = sequelize.define('users', {
id: {
type: Sequelize.INTEGER,
autoIncrement: true,
primaryKey: true
},
name: Sequelize.STRING,
email: Sequelize.STRING,
password: Sequelize.STRING
});
// sequelize.sync().then... |
// THIS FILE IS AUTO GENERATED
import { GenIcon } from '../lib';
export function AiTwotoneEdit (props) {
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 1024 1024"},"child":[{"tag":"path","attr":{"d":"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z"}},{"tag":"path","attr":{"d":"M880 836H144c-17.7 0-32 14.3-... |
new Vue({
el: '#app',
vuetify: new Vuetify(),
data: (vm) => ({
clearUrl: true,
tab: null,
items: [
'ข้อมูลเอกสาร', 'แบบไฟล์เอกสาร'
],
spinProfile: false,
imgFile: null,
url: null,
date: new Date().toISOString().substr(0, 10),
... |
function addNewStyles (event) {
this.style.cssText = this.options.newStyles
}
function addOldStyles (event) {
this.style.cssText = this.options.oldStyles
}
export { addNewStyles, addOldStyles } |
(function() {
angular
.module('pomodime')
.constant('TASK_TIMER_TIME', 1500);
})(); |
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.InfernoPlugin=n():(t.relm=t.relm||{},t.relm.InfernoPlugin=n())}(this,function(){return webpackJsonprelm__name_([0,16],{102:function(t,n,e){var r=e(110),... |
import React, {useEffect, useState} from 'react';
import RecipeList from '../../components/Recipe/RecipeList';
import RecipeMenu from '../../components/Recipe/RecipeMenu';
import Semicircle from '../../img/img1.png';
const RecipesByIngredient = () => {
var ingredients = [
{name: 'potatoes', quantity: 4},
{name: '... |
const { Router } = require('express')
const db = require('../models')
const { paginate } = require('../helpers/utils')
const AccountHelper = require('../helpers/account')
const logger = require('../helpers/logger')
const { check, validationResult, query } = require('express-validator/check')
const accountName = require... |
const username = 'new_usersname'
const email = 'new.username@tracim.fr'
const correct_pwd = '123456'
const errShortPwd = '123'
const errLongPwd = '123'.repeat(200)
const errUsername = 'err_username'
const errEmail = 'err.username@tracim.fr'
describe('content :: account', () => {
before(() => {
cy.resetDB()
... |
module.exports = {
devServer: {
proxy: 'http://laravel.test'
},
// output built static files to Laravel's public dir.
// note the "build" script in package.json needs to be modified as well.
outputDir: '../../../public',
publicPath: process.env.NODE_ENV === 'production'
? '/chr... |
import Item from '../../../../Item';
import ThemeDecorator from '../../../../ThemeDecorator';
import React from 'react';
import spotlight from '@enact/spotlight';
// NOTE: Forcing pointer mode off so we can be sure that regardless of webOS pointer mode the app
// runs the same way
spotlight.setPointerMode(false);
co... |
import 'array-foreach-async'
import { getUrsUserData } from './getUrsUserData'
import { getEchoProfileData } from './getEchoProfileData'
import { getEchoPreferencesData } from './getEchoPreferencesData'
import { getDbConnection } from '../util/database/getDbConnection'
/**
* Log an error from the lambda specific to t... |
'use strict';
var express = require("express");
var router = express.Router();
module.exports = router;
router.route("/")
.get(function(request, response){
response.end("it works!");
})
.post(function(request, response){})
.put(function(request, response){})
.delete(function(request, response){})
.al... |
//Code created by Anthony Wilson
//Protected by the GNU General Public License V3
// Project Started:
//24 July 2020
//20-7-24
// 1.0 Release:
//13 September 2020
//20-9-13
// 1.1 Release:
//17 October 2020
//20-10-17
"use strict";
// (Maj Version).(Min Version).(Patch).(Build)-(Release)
const version = "1.2.0.... |
exports.session_configurations = {
secret: process.env.session_secret,
resave: true,
saveUninitialized: true
} |
'use strict';
var Promise = require('./promise')['default'];
var isFunction = require('./utils').isFunction;
var isMaybeThenable = require('./utils').isMaybeThenable;
/**
`RSVP.filter` is similar to JavaScript's native `filter` method, except that it
waits for all promises to become fulfilled before running the `fil... |
import { css } from 'styled-components'
const transitionStyle = css`
.ribbon {
position: absolute;
width: 150px;
height: 150px;
font-size: 12px;
overflow: hidden;
z-index: 1;
&::before,
&::after {
display: block;
position: absolute;
content: '';
border: 5px so... |
const { GetToolsByTagUseCase } = require('../../../src/domain/tools')
const { ToolsRepository } = require('../../../src/infra/db/mongodb')
const { MissingDependenceError, MissingParamError } = require('../../../src/utils/errors')
const { mockGetToolsByTag } = require('./mocks')
const createDependencies = () => {
To... |
import gql from 'graphql-tag'
const GUEST_SIGNUP = gql`
mutation Guest_Signup {
Guest_Signup
}
`
const LOGOUT = gql`
mutation Logout {
Logout
}
`
const SIGNUP = gql`
mutation signup($token: String!) {
signup(token: $token)
}
`
const TOGGLE_LOGGED_IN = gql`
mutation ToggleLoggedIn($Status: ... |
import React from 'react';
const SvgDth = props => (
<svg width={props.width || 64} height={props.height || 64} {...props}>
<g fill="none">
<circle cx={16} cy={16} r={16} fill="#3C80F1" />
<g fill="#FFF">
<path d="M16.084 4c-5.47.004-9.904 4.436-9.91 9.905.005.534.065 1.066.178 1.588a.154.154... |
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'e2ee545b-783f-4634-a277-e35f55c90660';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscrip... |
//-------------------------------------------------------------------------------------
var gnCacheMaxSecs;
var garrsURLPatterns; // MDN's filter format, e.g. "*://code.jquery.com/*"
var garrsExcludeURLPrefixes; // "start of URL" format, e.g. "https://code.jquery.com/"
var garrsResourceTypes;
//-------... |
import request from '@/utils/request';
import {MES_USER,MES_EQUIPMENT} from '@/common';
// 表格
export function fetchList(data) {
return request({
url: MES_EQUIPMENT + 'equipment/plan/getOneMonthPlan',
method: 'post',
data
})
}
// 导出
export function derivationst(data) {
return request({
url: MES... |
// use localStorage to store the authority info, which might be sent from server in actual project.
export function getAuthority() {
return localStorage.getItem('saml-token') || 'no-login';
}
export function setAuthority(authority) {
return localStorage.setItem('saml-token', authority);
} |
// Include gulp
var gulp = require('gulp');
// Include our plugins
var jshint = require('gulp-jshint');
var bootlint = require('gulp-bootlint');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var bootlint = require('gulp-bootlint');
var html5lint = require('gulp-html5-lint');
var checkPages... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-init-iter-no-close.case
// - src/dstr-binding/default/let-stmt.template
/*---
description: Iterator is not closed when exhausted by pattern evaluation (`let` statement)
esid: sec-let-and-const-declarations-runtime-semantics-ev... |
const Sequelize = require('sequelize');
const db = require('./_db');
// 第二個參數是物件,定義有哪些欄位
// gender 依照 IEC 5218 的標準 https://en.wikipedia.org/wiki/ISO/IEC_5218
const User = db.define('User', {
email: {
type: Sequelize.STRING
},
password: {
type: Sequelize.STRING
},
nickname: {
... |
import { get_articles } from './_get_articles';
export async function get(event) {
return get_articles(event, 'favorited');
} |
const faunadb = require('faunadb');
const q = faunadb.query;
const serverClient = new faunadb.Client({ secret: '<Your Fauna Server Secrect>' }); // In production do not hardcode this value.
// Registers a new User in FaunaDB
const registerUser = (email) => {
return serverClient.query(
q.Create(
... |
const express = require('express');
const teachers = require('./teachers');
const routes = express.Router();
routes.get('/', function(req, res) {
return res.redirect('/teachers');
});
routes.get('/teachers', function(req, res) {
return res.render('teachers/index');
});
routes.get('/teachers/create', function(r... |
/**
* Parses the object into css, scoped, blocks
* @param {Object} obj
* @param {String} paren
* @param {String} wrapper
*/
export const parse = (obj, paren, wrapper) => {
let current = "";
let blocks = "";
let outer = "";
// If we're dealing with keyframes just flatten them
if (/^@k/.t... |
let express = require('express');
let app = express();
let bodyParser = require('body-parser');
let port = process.env.PORT || 5000;
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.post('/thirdParty/persistVote', function(req,res) {
if(!req.body.vote) {
res.send('vote invalid');
... |
/* globals require,describe,it,setTimeout,clearTimeout */
"use strict"; // enables proper tail calls (PTC) in Node 6 harmony
// mocha tests
let lifta = require('lifta-syntax');
let expect = require('chai').expect;
let mock = require('mock-require');
// mock a logger
let logger = {
error: () => {},
debug: () => {}... |
var webpack = require('karma-webpack')
var webpackConfig = require('./webpack.config.js')
module.exports=function(config) {
config.set({
browsers: ['PhantomJS'],
files: [
'src/**/*.spec.js'
],
frameworks: [ 'jasmine' ],
preprocessors: {
'src/**/*.spec.js': ['webpack']
},
webpa... |
import mongoose from 'mongoose'
import bcrypt from 'bcryptjs'
const userSchema = mongoose.Schema({
name: {
type: String,
required: true
},
email: {
type: String,
unique: true
},
password: {
type: String,
required: true
},
cropSelection: {
... |
/* shift - Remover elemento no início do array */
const arr = [1, 2, 3, 4];
arr.shift() /* remove o primeiro elemento do array */
console.log(arr) |
import { NotImplementedError } from "../Errors/NotImplementedError";
import { ModelDecorator } from "../Model/ModelDecorator";
function __throwNotImplemented() {
return Promise.reject(new NotImplementedError("Must be implemented for a specific repository implementation."));
}
export const Repository = {
PROTOTY... |
"!="
"[e]()})),l=o[e]=u?t(f):a[e];n&&(o[n]=l),r(r.P+r.F*u,"String",o)},f=s.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=s},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(2),o=n(10),i=n(9),a=n(6)("species");e.exports=function(e){var t=r[e];i&&... |
import React from 'react'
import styled from 'styled-components'
import intl from 'react-intl-universal'
export default ({}) => (
<FeaturesHero>
<Heading>
{intl.get('feature title')}
</Heading>
</FeaturesHero>
)
const FeaturesHero = styled.div`
padding-top: 87px;
padding-bottom: 58px;
overflow:... |
import {Map} from "../../../../utils/Map.js";
import {stats} from "../../../../stats.js"
import {Program} from "../../../../webgl/Program.js";
import {InstancingOcclusionShaderSource} from "./instancingOcclusionShaderSource.js";
const ids = new Map({});
/**
* @private
*/
const InstancingOcclusionRenderer = function... |
import React, { useState } from 'react'
/**
* Tabs切换标签
* @param {*} param0
* @returns
*/
const Tabs = ({ children }) => {
if (!children) {
return <></>
}
let count = children.length
children.forEach(e => {
if (!e) {
count--
}
})
if (count === 1) {
return <section className='shad... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import React from 'react';
import { shallow } from 'enzyme';
import { Shard }... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Polymer({
is: 'history-list',
behaviors: [HistoryListBehavior],
properties: {
// The search term for the current query. Set when the query ret... |
function updateRate()
{
var rateval = document.getElementById("rate").value;
document.getElementById("rate_val").innerText=rateval;
}
function validateAmount(){
var principal = document.getElementById("principal").value;
if ( principal=="" || parseFloat(principal) <= 0) {
alert("You can not en... |
import Vue from 'vue'
export const NAME_SELECTOR = 'NAME_SELECTOR'
export const COMPONENT_SELECTOR = 'COMPONENT_SELECTOR'
export const REF_SELECTOR = 'REF_SELECTOR'
export const DOM_SELECTOR = 'DOM_SELECTOR'
export const VUE_VERSION = Number(`${Vue.version.split('.')[0]}.${Vue.version.split('.')[1]}`)
export const FUN... |
/* eslint-env jest */
/* eslint-disable
react/jsx-filename-extension,
import/no-extraneous-dependencies
*/
import React from 'react'
import { mount } from 'enzyme'
import TailSpin from './index'
const testColor = (component, color) => {
expect(component.find('circle').props().fill).toEqual(color)
}
describe('... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.Steem = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentColo... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var EwsLogging_1 = require("../Core/EwsLogging")... |
import { DIFFICULTY_ZEROES } from '../CONSTANTS/index.js';
const isValid = (chain) => {
// Chains with 0 or 1 block are by default valid
if(chain.length <= 1)
return true;
let prevBlock = chain[0];
let currBlock, currProof, prevProof, hash;
for(let i = 1; i<chain.length; i++){
... |
const path = require('path');
const test = require('ava');
const {outputFile, remove} = require('fs-extra');
const {stub} = require('sinon');
const prepare = require('../lib/prepare');
const {gitRepo, gitGetCommits, gitCommitedFiles, gitAdd, gitCommits, gitPush} = require('./helpers/git-utils');
test.beforeEach(t => {... |
const Discord = require('discord.js')
exports.run = async (client, message, args) => {
if (!message.member.hasPermission("MANAGE_ROLES"))
return message.channel.send(":ok: Anladın sen Bu mesaj kendini imha eder")
let guild = message.guild;
let role = message.guild.roles.create({
name: 'Çakdırma Yönetic... |
"use strict";
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
return mod && mod.__esModule ? mod : {
"default": mod
};
};
Object.defineProperty(exports, "__esModule", {
value: true
});
const axios_1 = __importDefault(require("axios"));
const api = axios_1.default.create({
ba... |
import Blender from '../src/util/Blender'
import Color from '../src/util/Color'
test('Blend - normal', () => {
const back = Color.parse('#255050');
const source = Color.parse('#2550ff');
var rgb = Blender.normal(back, source);
expect(rgb).toEqual({ r : 0x25, g : 0x50, b: 0xff, a : 1 });
rgb ... |
var dropdown=document.querySelectorAll('.dropdown');var dropdownArray=Array.prototype.slice.call(dropdown,0);dropdownArray.forEach(function(el){var button=el.querySelector('a[data-toggle="dropdown"]'),menu=el.querySelector('.dropdown-menu'),arrow=button.querySelector('i.icon-arrow');button.onclick=function(event){if(!m... |
import english from './english.json';
export default {
...english,
}; |
module.exports = {
components: 'src/components/**/[A-Z]*.js'
} |
import React, { useContext } from "react";
import { Link } from "react-router-dom";
import { Context } from "../SearchContext";
function SearchQueryResults(props) {
const { searchResults } = useContext(Context);
const articlesList = searchResults.map((article) => {
return (
<div
key={article.ite... |
'use strict'
var multicastdns = require('multicast-dns')
var dnsEqual = require('dns-equal')
var flatten = require('array-flatten')
var deepEqual = require('deep-equal')
module.exports = Server
function Server (opts, error) {
this.mdns = multicastdns(opts)
this.mdns.setMaxListeners(0)
this.registry = {}
this... |
var storage = require('./storage');
exports.getWorkspaces = function(user, callback) {
return storage.listFiles([user, "workspaces"], callback);
}
exports.getModel = function(user, modelName, callback) {
return storage.getFile([user, "workspaces" ,modelName], "model.json", callback);
}
exports.saveModel = functi... |
const {expect} = require('chai');
const {handler} = require('../bulkdata');
describe('Bulkdata', async () => {
describe('handler', async () => {
it('Should return a token-specification statement', async () => {
const response = await handler();
expect(response).to.have.property('token_endpoint');
... |
module.exports = {
client: {
service: {
name: 'SpaceX',
url: 'https://api.spacex.land/graphql/',
},
},
} |
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var IndexedSe... |
/*!
* jQuery Form Plugin
* version: 4.2.2
* Requires jQuery v1.7.2 or later
* Project repository: https://github.com/jquery-form/form
* Copyright 2017 Kevin Morris
* Copyright 2006 M. Alsup
* Dual licensed under the LGPL-2.1+ or MIT licenses
* https://github.com/jquery-form/form#license
* This library is free ... |
import React from "react";
class Course extends React.Component {
constructor(props){
super(props);
this.state ={
id:null,
}
}
render() {
return (
<>
<tr>
<td>Dakota Rice</td>
<td>Niger</td>
<td>Oud-Turnhout</td>
<td cl... |
$(function() {
altair_form_adv.date_range();
fechaActual = new Date().toISOString().slice(0, 10);
console.log(fechaActual);
/* Funcion busca que despliega resultados de busqueda*/
$('#btn_search').on('click', function (event) {
var modalBlocked = UIkit.modal.blockUI('<div class=\'uk-text-c... |
const StringType = 'string';
const NumberType = 'number';
const NumberRangeType = 'range';
const ListType = 'list';
const BooleanType = 'boolean';
const ColorType = 'color';
const Pointer2dType = 'pointer2d';
const Pointer3dType = 'pointer3d';
export {
StringType, NumberType, NumberRangeType, ListType,
Boolean... |
import React, {Component} from 'react';
import {DEFAULT_SCALE} from './constants.js';
export default class Colorscale extends Component {
render() {
const scale = this.props.colorscale ? this.props.colorscale : DEFAULT_SCALE;
return (
<div style={{width: '100%'}} className="colorscale-container">
... |
/**
* using CommonJS...
* Determin ENV
* load the common
* merge in the ENV file config
* run the loadPresets
*/
/**
* to {String} undefined Destination File Path
* map {String|Object} false Enable/Disable Source Maps
* from {String} undefined Source File Path
* parser {String|Function} false Custom... |
'use strict'
const chai = require('chai')
const { exec } = require('mz/child_process')
const fs = require('fs-extra')
const path = require('path')
const installer = require('..')
const access = require('./helpers/access')
const dependencies = require('./helpers/dependencies')
const describeInstaller = require('./hel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.