text stringlengths 2 1.04M |
|---|
const $obj = Symbol('obj')
class ConfetaText {
constructor (text, options = {}) {
let parseFn = options.parseFn || JSON.parse
this[$obj] = parseFn(text)
}
get (segments) {
let value = this[$obj]
for (const segment of segments) {
value = value[segment]
if (!value) {
return
... |
var temp = {};
$('.ntsimg.cl>.img_l >a> img').each(
function (i,j) {
temp[i]={};
temp[i]['img']=$(this).attr('src');
}
);
$('.ntsimg.cl> .img_r > .atime').each(
function (i,j) {
temp[i]['time']=$(this).text();
}
);
$('.ntsimg.cl> .img_r > .ntc_body').each(
function (i,j) {
... |
import styled from 'styled-components'
export const Container = styled.div`
grid-column: 100%;
display: grid;
padding-top: 50px;
`
export const ContentWrapper = styled.div`
grid-template-columns: 5% 90% 5%;
display:grid;
`
export const TopHeading = styled.div`
grid-column: 2/3;
display:block;
border-top: 1px solid #19... |
"use strict";
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _tem... |
import React from 'react';
import PropTypes from 'prop-types';
import './locales';
const Text = ({ i18n }) => (
<div>{i18n.warAndPeace}</div>
);
Text.propTypes = {
i18n: PropTypes.object.isRequired,
};
export default Text; |
function my_function983(){
//55873022185647488324093816001840SBYbaoOnoDTQyJbopdBHqKeYjsVPpWRU
}
function my_function347(){
//23502056337109251032099932621657fWtdnLZpJIjKtQkIWrCfoKUzAEvGmuYJ
}
function my_function538(){
//43543247850309795600904812067839fPqqrreLfZLQZapoAGfTOWazipSZXHel
}
function my_function734(){
/... |
import React, { Component } from 'react';
import { Container, Header, Content, Card, CardItem, Text, Body, Left, Right } from 'native-base';
import APP_JSON from '../app.json';
const APP_VERSION = APP_JSON.expo.version;
export default class AboutHoppingPot extends Component {
static navigationOptions = {
title:... |
/*
* 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 ... |
var searchData=
[
['destroygraphicseventargs',['DestroyGraphicsEventArgs',['../class_game_overlay_1_1_windows_1_1_destroy_graphics_event_args.html',1,'GameOverlay::Windows']]],
['drawgraphicseventargs',['DrawGraphicsEventArgs',['../class_game_overlay_1_1_windows_1_1_draw_graphics_event_args.html',1,'GameOverlay::Wi... |
const { Pool } = require('pg');
const moment = require('moment');
const pool = new Pool({
user: 'chancenguyen',
password: '',
// database: 'steam_reviews_test',
host: 'localhost',
});
;(async () => {
const client = await pool.connect();
await client.query(
`DROP DATABASE IF EXISTS steam_reviews_test;
... |
(function (root, factory) {
if (typeof exports === 'object') {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define(factory);
} else {
root._mu.Events = factory();
}
})(this, function () {
// Events
// -----------------
// Thanks to:
// - https://githu... |
import React from "react";
import { Col, Row } from "react-bootstrap";
import {RiReactjsFill} from "react-icons/ri";
import {RiFlutterFill} from "react-icons/ri";
import {FaJava} from "react-icons/fa";
import {DiJavascript1} from "react-icons/di";
import {AiFillHtml5} from "react-icons/ai";
import {FaCss3} from "react-... |
const package = require('../package.json')
console.log(`you're using the version ${package.version}`) |
import Axios from 'axios';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
const getUrl = 'http://34.194.133.152:4000/recipe/popular';
class ListRecipe extends Component {
state = {
recipe : []
}
getPopularRecipe = () => {
Axios
.get(getUrl)
... |
import mockIds from '../../../Stubs/resources/mock_ids.json'
const interLibraryLoanFrontendBaseUrl = "https://ill.test.bibs.aws.unit.no"
context('End to end testing, interlibrary loan', () => {
beforeEach(() => {
cy.visit(`${interLibraryLoanFrontendBaseUrl}/?patronid=${mockIds.libraries.ncip_only_library}&recor... |
Handlebars.registerHelper('t', function (key) {
if (Spree.translations[key]) {
return Spree.translations[key]
} else {
console.error('No translation found for ' + key + '. Does it exist within spree/admin/shared/_translations.html.erb?')
}
})
Handlebars.registerHelper('edit_product_url', function (product... |
/*! For license information please see framework-4972e6b06090229e64dc.js.LICENSE.txt */
//# sourceMappingURL=framework-4972e6b06090229e64dc.js.map |
/* global heimdall */
/* globals najax */
/**
@module ember-data
*/
import $ from 'jquery';
import { Promise as EmberPromise } from 'rsvp';
import { get, computed } from '@ember/object';
import { getOwner } from '@ember/application';
import { run } from '@ember/runloop';
import Adapter from '../adapter';
import {
... |
(function(root, factory) {
/* ======= Global Monx ======= */
(typeof module === "object" && module.exports) ? module.exports = factory() : root.Monx = factory();
}(this, function() {
//=require ../dist/monx.js
return Monx;
})); |
import _curry3 from './internal/_curry3.js';
import assocPath from './assocPath.js';
/**
* Makes a shallow clone of an object, setting or overriding the specified
* property with the given value. Note that this copies and flattens prototype
* properties onto the new object as well. All non-primitive properties are
... |
import Vue from "vue";
import label from "../../components/label/label";
Vue.component("wx-label", label); |
import ordersTypes from './orders.types';
const INITIAL_STATE = {
orderHistory: [],
orderDetails: {},
};
const ordersReducer = (state=INITIAL_STATE, action) => {
switch(action.type) {
case ordersTypes.SET_USER_ORDER_HISOTRY:
return {
...state,
orderHistory: action.payload
};
... |
/*!
* jaba
*
* Compiled: Mon Jan 25 2021 06:27:45 GMT-0800 (PST)
* Target : web (umd)
* Profile : modern
* Version : 7d9aa3c
*
*
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("esper"));
e... |
/**
* skylark-ace - A version of ace v1.4.3 that ported to running on skylarkjs.
* @author Hudaokeji Co.,Ltd
* @version v0.9.0
* @link www.skylarkjs.org
* @license MIT
*/
define(function(require,exports,module){"use strict";exports.snippetText=require("../requirejs/text!./markdown.snippets"),exports.scope="markdo... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
... |
'use strict';
angular.module('controller')
.controller('forgetPswdCtrl',[
'$scope',
'$state',
'$http',
'$q',
function($scope,$state,$http,$q){
console.log("This is forgetPswdCtrl");
$scope.ForgetPswd=function(){
console.log($scope.userName);
console.log($scope.password);
var deferred=$q.defer()
var... |
dbPassword = 'mongodb+srv://Your_Username:'+ encodeURIComponent('Your_Password') + '@Your_Server.mongodb.net/test?retryWrites=true';
module.exports = {
mongoURI: dbPassword
}; |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_hooks_1 = require("@testing-library/react-hooks");
var useResolutionSwitch_1 = require("./useResolutionSwitch");
test('should get flag depends on window outerSize besides the default outerWith ', function () {
var result = react_... |
var GENEMAP = GENEMAP || {};
// draws the chromosome labels on the map in the correct position
GENEMAP.ChromosomeLabel = function (userConfig) {
var defaultConfig = {
border: false,
layout: {
width: 100,
height: 20,
x: 0,
y: 0,
},
sizeLayout: {
width: 100,
height: ... |
export * from '@styled-icons/boxicons-solid/BoltCircle'; |
import test from 'supertape';
import prefixer from './prefixer.js';
test('prefixer: prefix without a slash', (t) => {
t.equal(prefixer('hello'), '/hello', 'should add slash');
t.end();
});
test('prefixer: root', (t) => {
t.equal(prefixer('/'), '', 'should add slash');
t.end();
});
test('prefixer: wi... |
'use strict'
const db = require('../server/db/db')
const {User, Product, Order} = require('../server/db/models/index')
const users = [
{
firstName: 'Shirley',
lastName: 'Berry',
isAdmin: true,
email: 'strawberry@gmail.com',
password: '1234'
},
{
firstName: 'Jon',
lastName: 'Doe',
... |
function main() {
const v5 = [13.37,Symbol];
const v6 = v5 - 13.37;
let v7 = 2741319795;
const v12 = [v7,1337,1337];
const v13 = [v12,13.37,"number",Set];
for (const v14 of v13) {
v14[16] = 13.37;
}
const v15 = new Uint32Array(v12,arguments,v6,"number");
}
%NeverOptimizeFunction(main);
main(); |
// var jsondata = 'http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC&tag=loser';
// // $('.gif').html(obj.data.fixed_width_downsampled_url);
// $("div.gif").attr("src", jsondata[0].fixed_width_downsampled_url);
// var obj = $.parseJSON( 'http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC&tag=loser' );
... |
console.log("ravi");
{
console.log(1+2);
} |
//
// Welcome/index.js
//
export { default } from './Welcome' |
import React, { useState } from 'react';
import { Button, ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
const Example = (props) => {
const [dropdownOpen, setOpen] = useState(false);
const toggle = () => setOpen(!dropdownOpen);
return (
<ButtonDropdown isOpen={dropdownOpen}... |
"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.Target = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "currentCol... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const path = require(`path`);
const { createFilePath } = require(`gatsby-source-filesystem`);
const JS_PATTERN = /\.jsx?$/;
exports.onCreateNode = ({ node, getNode, actions }) => {
const { createNodeField } = actions;
const parentNode = getNode(node.parent);
if (
node.internal.type === `MarkdownRemark` &&
... |
/*jslint browser: true, devel: true, white: true, eqeq: true, plusplus: true, sloppy: true, vars: true*/
/**
Will show an alert with the name of the element passed to the function
@param test {string} Passed to the function, usually is an element's name or value
*/
function clickTest(test){
alert(test+" was click... |
angular.module('gettext').run(['gettextCatalog', function (gettextCatalog) {
/* jshint -W100 */
/* jshint +W100 */
}]); |
var MainView = Backbone.View.extend({
/* I am rendering a function which will provide my view template with my
model data and will update this.el with new HTML. render is also a noop
*/
render: function(){
this.$el.html(this.template());
return this;
}
});
export default MainView; |
$(document).ready(function () {
$('#subjectSearchForm').on('submit', function (e) {
e.preventDefault();
search = document.getElementById('searchBar').value;
$.ajax({
type: "GET",
url: "/enroll/"+search,
success: function (response) {
var sh... |
import dayjs from "../../../lib/dayjs";
import { createUseStyles } from "react-jss";
import { getStatusText } from "../lib/getStatusText";
import PlayerHeadshot from "../../playerHeadshot";
import TradeStore from "../stores/tradeStore";
const useStyles = createUseStyles({
row: {},
td: {
paddingTop: '10px',
... |
// source: yorkie.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT E... |
/*!
=========================================================
* Argon Dashboard - v1.0.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard
* Copyright 2018 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https://github.com/... |
"use strict";
var rating_component_1 = require('./rating/rating.component');
exports.RatingComponent = rating_component_1.RatingComponent;
//# sourceMappingURL=rating.js.map |
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var React = require('react');
var ThemeManager... |
/*
* Author: Abdullah A Almsaeed
* Date: 4 Jan 2014
* Description:
* This is a demo file used only for the main dashboard (index.html)
**/
$(function () {
"use strict";
//Make the dashboard widgets sortable Using jquery UI
$(".connectedSortable").sortable({
placeholder: "sort-highlight",
conn... |
import React from 'react';
import { connect } from 'react-redux';
import Actions from '../state/Actions';
import ArtworkDetails from '../components/ArtworkDetails';
@connect((data, props) => ArtworkDetailsScreen.getDataProps(data, props))
export default class ArtworkDetailsScreen extends React.Component {
static ro... |
import test from 'tape-promise/tape';
import {Geometry} from '@luma.gl/engine';
const TEST_CASES = [
{
title: 'no attributes',
props: undefined,
shouldThrow: true
},
{
title: 'simple positions',
props: {
attributes: {
positions: new Float32Array([0, 0, 0, 1, 0, 0, 1, 1, 0])
... |
import Bullet from '../entities/bullet';
const invaderAi = (entityManager) => {
/**
* Update entity patrol path
* @param {object} entity
*/
function updatePatrol(entity) {
if (!entity.hasOwnProperty('patrolX')) return;
const PATROL_MAX = 50;
// If the invader is outside the bounds of their pa... |
(function()
{
var ImageFunction = Firecrow.N_Interpreter.ImageFunction = function(globalObject, codeConstruct)
{
this.initObject(globalObject);
this.addProperty("src", this.globalObject.internalExecutor.createInternalPrimitiveObject(codeConstruct, ""));
this.isInternalFunction = true;
... |
const Header = (user, username) => (
`<header><h3><a href="${user.html_url}" target="_blank" rel="noopener nofollow">@${username}</a> on GitHub<img src="https://github.githubassets.com/images/icons/emoji/octocat.png?v8" alt="Octocat"/></h3><h5><span><b>${user.public_repos}</b>Public Repos</span><span>|</span><sp... |
import React, { Component } from 'react';
class Something extends Component {
constructor(props) {
super(props);
this.state = {
summary: ''
};
}
render() {
return (
<div className="review-summary">
<h2>{(this.state.summary === '' ? 'Cluster Text Summary' : this.state.summary)... |
/**
* @param {string} s
* @return {number}
*/
const minCut = xs => {
const N = xs.length
if (N <= 1)
return 0
// pd[i][j] = 1 if and only if xs[i..j] is a palindrome
const pd = new Array(N)
for (let i = 0; i < N; ++i)
pd[i] = new Int8Array(N)
for (let l = 1; l <= N; ++l) {
for (let i = 0, j =... |
/*
* Inline Form Validation Engine 2.5, jQuery plugin
*
* Copyright(c) 2010, Cedric Dugas
* http://www.position-absolute.com
*
* 2.0 Rewrite by Olivier Refalo
* http://www.crionics.com
*
* Form validation engine allowing custom regex rules to be added.
* Licensed under the MIT License
*/
(function($) {
"... |
import {getDefaultProjectEnums} from "../enums/default-project.enum";
import {LocalStorageService} from "../services/localStorage-service";
import {ProjectService} from "../services/project-service";
import {isOffline} from "../components/check-connection";
const localStorageService = new LocalStorageService();
const ... |
$(document).ready(function () {
$('#toggle').click(function () {
$('#p1').show();
});
$('#toggle').click(function () {
$('#toggle').hide();
});
$('#p1').click(function () {
$('#toggle').show();
});
$('#p1').click(function () {
$('#p1').hide();
});
$(... |
//# sourceMappingURL=runtime-main.e6e1f371.js.map |
export * from '@styled-icons/material/Filter8'; |
// @flow
export const space = [0, 5, 10, 15, 20, 30, 40, 50, 70]
export const fontSizes = [8, 9, 10, 12, 13, 16, 18, 22, 32]
export const radii = [0, 4]
export const shadows = ['0 4px 8px 0 rgba(0, 0, 0, 0.03)']
export const fontFamilies = {
'Open Sans': {
Light: {
weight: 300,
style: 'normal',
... |
/*
* © Copyright 2016 IBM Corp.
*
* 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 agre... |
var defaultSites = {
"360Dx": {
domain: "360dx.com",
group_rule: "###_gr_usa_genomeweb_domains"
},
"Aachener Nachrichten": {
domain: "aachener-nachrichten.de",
allow_cookies: 1,
block_regex: /cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|analytics|subscriptions)-.+\.js/
},
"Aachener Zeitung... |
goog.provide('os.ui.query.CombinatorCtrl');
goog.provide('os.ui.query.combinatorDirective');
goog.require('os');
goog.require('os.command.CommandProcessor');
goog.require('os.command.SequenceCommand');
goog.require('os.implements');
goog.require('os.layer.ILayer');
goog.require('os.ui.Module');
goog.require('os.ui.add... |
var ExtGridcolumnComponent_1;
import { __decorate, __param } from "tslib";
//import EWCGridcolumn from '../dist/ext-gridcolumn.component.js';
//inputs: (new EWCGridcolumn()).properties,
//import EWCGridcolumn from '@sencha/ext-web-components-classic/dist/ext-gridcolumn.component.js';
import { EWCGridcolumn } from '@sen... |
import { makeExtendSchemaPlugin, gql } from "graphile-utils";
import cryptoRandomString from "crypto-random-string";
import crypto from "crypto";
import CryptoJS from "crypto-js";
import fetch from "node-fetch";
import { pool } from "./pgDb.js";
const hashSecret = process.env.HASH_SECRET;
if (!hashSecret || hashSecret... |
/*
* #%L
* GraphWalker Dashboard
* %%
* Copyright (C) 2005 - 2014 GraphWalker
* %%
* 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 th... |
(function(){
"use strict";
/**
* 1.封装时间处理,包含时间转化,时间格式化,时间加减,时间求差
* 2.封装数值处理,包含数值格式化,数值精准计算
*/
/**时间拓展----开始*/
function numToMonth(m,flag){
function numToStr(i){
switch (i) {
case 1:return "一";
case 2:return "二";
case 3:re... |
'use strict';
(function(exports) {
/**
* Handles importing of blobs into the system app.
* Currently supports the 'import-app' activity, which
* installs a blob on the device if developer mode is enabled.
*/
function Import() {}
Import.prototype = {
/**
* Starts listening to activities.
... |
import * as types from '../constants/actionTypes';
import {loadProvincesApi} from "../apis/provinceApis";
export function loadAllProvinces() {
return function (dispatch) {
loadProvincesApi()
.then((res) => {
dispatch({
type: types.LOAD_PROVINCES_GLOBAL,
... |
/*!
* # Semantic UI 2.2.3 - Tab
* http://github.com/semantic-org/semantic-ui/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
"use strict";
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self !... |
import '../scss/reset.scss';
import '../scss/main.scss';
import Canvas from './canvas_render.js';
import Div from './div_render.js';
import swal from 'sweetalert2'
import champ_img from "../images/champ.png";
import draw_img from "../images/draw.png";
import welcome_img from "../images/welcome.png";
import background f... |
'use strict';
const {isOpeningParenToken} = require('eslint-utils');
const isShadowed = require('./utils/is-shadowed.js');
const isStaticRequire = require('./utils/is-static-require.js');
const assertToken = require('./utils/assert-token.js');
const {referenceIdentifierSelector} = require('./selectors/index.js');
const... |
'use strict';
var apiBase = "http://ec2-52-14-137-171.us-east-2.compute.amazonaws.com:3000/api"
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.view1',
'myApp.view2',
'myApp.version'
]).
config(['$locationProvider', '$routeProvider', function($loc... |
var test = require("tap").test
, LRU = require("../")
test("basic", function (t) {
var cache = new LRU({max: 10})
cache.set("key", "value")
t.equal(cache.get("key"), "value")
t.equal(cache.get("nada"), undefined)
t.equal(cache.length, 1)
t.equal(cache.max, 10)
t.end()
})
test("least recently set", fun... |
(function() {
'use strict';
angular.module('VINYLTAP.config', [
'VINYLTAP.config.routes',
'VINYLTAP.config.run'
]);
})(); |
console.error('called onload') |
class JSONTransformer {
static mimeTypes () {
return ['application/json']
}
parse (content) {
return JSON.parse(content)
}
}
module.exports = JSONTransformer |
//# sourceMappingURL=common.cjs.production.min.js.map |
'use strict';
angular.module(
'concept2',
[
'ngRoute',
'ngResource',
'ngCookies',
'uiGmapgoogle-maps',
'ui.mask',
'ngFileUpload',
'vcRecaptcha',
'concept2.services',
'concept2.login',
'concept2.home',
'concept2.produtos',
... |
'use strict';
const fs = require('fs');
require('dotenv').config();
const packageName = require('../package.json').name;
const JWT_KEY = fs.readFileSync('./jwtRS256.key');
const JWT_KEY_PUB = fs.readFileSync('./jwtRS256.key.pub');
const {
APP_PORT,
AWS_KEY_ID,
AWS_KEY_ACCESS_KEY,
AWS_REGION,
AWS_BUCKET_NAM... |
import FunctionManager from "../function-manager";
import ServiceLocator from "../service-locator/locator";
import LineCache from "./line-cache";
export default class LineService {
/**
*
* @param {ServiceLocator} locator
*/
constructor(locator) {
this.functionManager = locator.resolve... |
const sharedConfig = require('../../jest.config');
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
...sharedConfig,
}; |
function CustomAlert(){
this.render = function(dialog){
var winW = window.innerWidth;
var winH = window.innerHeight;
var dialogoverlay = document.getElementById('dialogoverlay');
var dialogbox = document.getElementById('dialogbox');
dialogoverlay.style.display = "block";
... |
setup({allow_uncaught_exception : true});
// Creates a new Document (via <iframe>) and add an inline import map.
function parse(importMap, importMapBaseURL) {
return new Promise(resolve => {
const importMapString = JSON.stringify(importMap);
const iframe = document.createElement('iframe');
window.addEve... |
//
// flashlight.js
//
// Script Type: Entity
//
// Created by Sam Gateau on 9/9/15.
// Additions by James B. Pollack @imgntn on 9/21/2015
// Copyright 2015 High Fidelity, Inc.
//
// This is a toy script that can be added to the Flashlight model entity:
// Script.getExternalPath(Script.ExternalPaths.HF_Public, "... |
const { MessageEmbed, GuildMember } = require('discord.js');
const { stripIndents } = require('common-tags');
const { readJSONSync } = require('fs-extra');
const Bot = require('../../../Bot');
const { unhoistOne } = require('../../handlers/functions');
const { jaidenServerID, mainChannel } = require('../../../config.js... |
import React, { PureComponent } from 'react';
import { List, Icon, Tag } from 'antd';
import { connect } from 'dva';
import ArticleListContent from '@/components/ArticleListContent';
import styles from './Articles.less';
@connect(({ list }) => ({
list,
}))
class Center extends PureComponent {
render() {
const ... |
var level = require('level');
var multilevel = require('multilevel');
var net = require('net');
function MultiLevelStore(host, port) {
var stream = net.connect(port, host);
var db = multilevel.client();
stream.pipe(db.createRpcStream()).pipe(stream);
this.db = db;
this.async = true;
}
MultiLevelStore.proto... |
import React, {useState} from 'react';
import Paper from '@material-ui/core/Paper';
import Table from '@material-ui/core/Table';
import TableContainer from '@material-ui/core/TableContainer';
import TableHeader from "./TableHeader";
import TableContent from "./TableContent";
import TablePageController from "./TablePage... |
import randomId from 'random-id';
import storage from './utilitiesStorage';
import ext from './utilitiesCrossBrowser';
import moment from 'moment';
import { getConfig, debugAO } from '../config';
/*
This is the Fisher-Yates-Durstenfeld shuffle algorithm
*/
export function shuffleArray(inputArray) {
var outputArray... |
function testcase()
{
var accessed = false;
var newObj = Object.create({
}, {
prop : {
enumerable : undefined
}
});
for(var property in newObj)
{
if (property === "prop")
{
accessed = true;
}
}
return ! accessed;
}
{
var __r... |
import React from 'react';
import {ListItem} from 'react-native-elements';
import PropTypes from 'prop-types';
import {styles} from '../styles';
import TouchableScale from 'react-native-touchable-scale';
import { withNavigation } from 'react-navigation';
class Squawk extends React.Component {
render() {
re... |
/* Sets time in clock div and calls itself every second */
/**
* Clock plugin
* Copyright (c) 2010 John R D'Orazio (donjohn.fmmi@gmail.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Turns a jQuery dom element i... |
import React from "react";
const context = React.createContext();
export default context; |
/*
* 实体属性定义
* @author 后天 2017.9.28
**/
var Entity;
(function (Entity) {
var enPropEntity;
(function (enPropEntity) {
enPropEntity[enPropEntity["PROP_ENTITY_ID"] = 0] = "PROP_ENTITY_ID";
enPropEntity[enPropEntity["PROP_ENTITY_POSX"] = 1] = "PROP_ENTITY_POSX";
enPropEntity[enPropEntity["PR... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* 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 sou... |
/**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { useStaticQuery, graphql } from 'gatsby';
function SEO({ descr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.