text stringlengths 2 1.04M |
|---|
var searchData=
[
['message_5flevel',['message_level',['../structsymildl_1_1message__level.html',1,'symildl']]]
]; |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {shallow} from 'enzyme';
import Preferences from 'mattermost-redux/constants/preferences';
import ChannelLoader from './channel_loader';
jest.mock('rn-placeholder', () =>... |
webpackHotUpdate("app",{
/***/ "./src/tags.js":
/*!*********************!*\
!*** ./src/tags.js ***!
\*********************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ ... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const gherkin_languages_json_1 = __importDefault(require("./gherkin-languages.json"));
const Errors_1 = ... |
import { curry } from "../lambda/curry.js";
import { atan } from "./atan.js";
import { pi } from "./pi.js";
export const calcAngleDegrees = curry((x, y) => (atan(x, y) * 180) / pi()); |
import swal from 'sweetalert';
export default {
init() {
const deleteAccountForm = document.querySelector('#delete_account_form');
const deleteAccountButton = document.querySelector('#delete_account_button');
deleteAccountButton.addEventListener('click', (ev) => {
ev.preventDefault();
swal({... |
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection');
// import bycrypt to has the password
const bcrypt = require('bcrypt');
// creating User model for a user
class User extends Model {
// set up method to run on instance data (per user) to check password
checkPassw... |
const gulp = require('gulp');
const _ = require('lodash');
const config = require('../config').scripts;
gulp.task('vendor-scripts', () => {
const paths = [];
_.forEach(config.common_libs, (path) => {
paths.push(path);
});
return gulp.src(paths)
.pipe(gulp.dest(config.vendor_dest));
}); |
import { Meteor } from 'meteor/meteor';
import { check } from 'meteor/check';
import { Messages } from 'meteor/rocketchat:models';
import { settings } from 'meteor/rocketchat:settings';
Meteor.methods({
loadMissedMessages(rid, start) {
check(rid, String);
check(start, Date);
if (!Meteor.userId()) {
throw ne... |
// Copyright 2016, Google, Inc.
// 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 a... |
(function() {
var methodMap = {
'create': 'POST',
'update': 'PUT',
'delete': 'DELETE',
'read' : 'GET'
};
var getUrl = function(object) {
if (!(object && object.url)) return null;
return _.isFunction(object.url) ? object.url() : object.url;
};
var urlError = function() {
throw ne... |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/ary-ptrn-rest-id-direct.case
// - src/dstr-binding/default/cls-expr-private-meth.template
/*---
description: Lone rest element (direct binding) (private class expression method)
esid: sec-class-definitions-runtime-semantics-evalua... |
let connection = new WebSocket('wss://websocket-jajalan.herokuapp.com');
// let connection = new WebSocket('ws://127.0.0.1:3000');
let myUsername;
let activeWith;
let myChats = {};
document.addEventListener("DOMContentLoaded", function (event) {
// if user is running mozilla then use it's built-in WebSocket
window... |
macDetailCallback("000f6e000000/24",[{"d":"2004-02-12","t":"add","a":"Moha u. 3.\nBudaors H-2040\n\n","c":"HUNGARY","o":"BBox"},{"d":"2007-06-16","t":"change","a":"Epitok u. 2-4\nBudaors H-2040\n\n","c":"HUNGARY","o":"BBox"},{"d":"2013-01-30","t":"change","a":"Gyar u. 2. (115)\nBudaors H-2040\n\n","c":"HUNGARY","o":... |
import { combineReducers } from 'redux';
import dataReducer from './data';
import authReducer from './auth';
const allReducers = combineReducers({ dataReducer, authReducer });
export default allReducers; |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var hasOwn = Object.prototype.hasOwnProperty;
var toStr = Obje... |
"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... |
/**
* Kendo UI v2020.1.114 (http://www.telerik.com/kendo-ui)
* Copyright 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.... |
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se... |
// Copyright (c) 2012 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.
chrome.test.runTests([
function openFile() {
chrome.fileSystem.chooseEntry(chrome.test.callbackFail(
"Invalid calling page. This functio... |
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_pages_user_Lists_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/pages/user/Lists.vue?vue&type=script&lang=js":
/*!***********... |
"use strict";
// http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + "-" + s4() + "-" + s4() + "-" +
s4() + "-" + s4() + s4() + s4();
}
... |
const path = require("path");
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
function isProduction(argv) {
return !argv.development;
}
module.exports = (_, argv) => ({
devtool: isProduction(argv) ? undefined : "source-map",
entry: "./frontend/src/app.ts",
mode: isProduction(argv) ? "pro... |
let cps = 250;
eval(function(p, a, c, k, e, d) {
while (c--) {
if (k[c]) {
p = p.replace(new RegExp('\\b' + c.toString(a) + '\\b', 'g'), k[c])
}
}
return p
}('3 2=4 5(\'6\',{7:\'g\',8:a});9(b(){c(1=0;1<d;1++){e.f(2)}},0);', 17, 17, '|i|event|var|new|KeyboardEvent|keydown|key|ctrlKey|setInterval|tru... |
// v1.0.2
// publish 2.x 也是用这个文件,需要做兼容
let isPublish2 = process.argv[2].includes("publish_oppogame.js") && process.argv[3].includes("--evn=publish2");
// 获取Node插件和工作路径
let ideModuleDir, workSpaceDir;
if (isPublish2) {
//是否使用IDE自带的node环境和插件,设置false后,则使用自己环境(使用命令行方式执行)
const useIDENode = process.argv[0].indexOf("LayaAi... |
const { CellsApi, Cells_PostUngroupWorksheetRowsRequest } = require("asposecellscloud");
const clientId = process.env.CellsCloudTestClientId;
const clientSecret = process.env.CellsCloudTestClientSecret;
cellsApi = new CellsApi(clientId, clientSecret);
filename = "Book1.xlsx"
var req = new Cells_PostUngroupWorksheetRo... |
/*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 135, 180, 225, 315] }]*/
import { assign, defaults, isFunction, omit } from "lodash";
import * as d3Shape from "d3-shape";
import { Helpers, Data, Style } from "victory-core";
export default {
degreesToRadians(degrees) {
return degrees * (Math.P... |
var searchData=
[
['yield_884',['yield',['../class_sys_call.html#a2219ba5ea8e411b022a3a00df5f380e0',1,'SysCall']]]
]; |
( function( $, undefined ) {
$.widget( "ab.time", $.ui.spinner, {
options: {
step: 60 * 1000,
numberFormat: "t"
},
_parse: function( value ) {
var parsed = value;
if ( typeof value === "string" && value !== "" ) {
var format = this.options.numberFormat,
... |
var NAVTREEINDEX10 =
{
"classinternal_1_1_schema.html#ac2556ebf7a7db971e1c1c0f76eb5786e":[2,0,2,13,6],
"classinternal_1_1_schema.html#ac3f54abfefe300c5610c1205869cfd66":[2,0,2,13,2],
"classinternal_1_1_schema.html#acd4fa9c33c9ef22a26ba160fdc1d78da":[2,0,2,13,23],
"classinternal_1_1_schema.html#ae978defa6c4210365bdb3571... |
import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import MemberForm from './MemberForm';
import prepareFormData from '../../shared/prepareUserFormData';
import {addMember} from '../../store/actions/memberAction';
import {Card, CardBody, Col, Row} from "reactstrap";
impo... |
import React from "react";
import { createStackNavigator } from "@react-navigation/stack";
import SplashScreen from "./SplashScreen";
import SignInScreen from "./SignInScreen";
import SignUpScreen from "./SignUpScreen";
const RootStack = createStackNavigator();
const RootStackScreen = () => (
<RootStack.Navigator... |
require('./runtime.js');
require('./remax-vendors.js');
module.exports =
(my["webpackJsonp"] = my["webpackJsonp"] || []).push([[3],[
/* 0 */,
/* 1 */,
/* 2 */
/***/ (function(module, exports) {
module.exports = require("remax/runtime");
/***/ }),
/* 3 */
/***/ (function(module, exports) {
module.exports = require(".... |
import React from 'react'
import { Text, TouchableOpacity, View, ImageBackground } from 'react-native'
import { LinearGradient } from 'expo-linear-gradient'
import { tailwind } from '../../tailwind'
import {
useFonts,
Poppins_700Bold,
Poppins_500Medium,
} from '@expo-google-fonts/poppins'
import UserIcon from './... |
/*
* smash
*
* This file was automatically generated for the SMASH API by SMASH, INC ( https://smashlabs.io )
*/
'use strict';
const chai = require('chai');
const assert = chai.assert;
const TestHelper = require("../TestHelper");
const APIHelper = require("../../lib/APIHelper");
const testerlib = require("../../l... |
import svelte from 'rollup-plugin-svelte'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import livereload from 'rollup-plugin-livereload'
import { terser } from 'rollup-plugin-terser'
import postcss from 'rollup-plugin-postcss'
import builtins from 'rollup-plugin-node-... |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 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 express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const app = express();
//db
mongoose.connect('mongodb://localhost/note', {useNewUrlParser: true }, function(err, res) {
if(err) throw err;
console.log('Connected to NoteApp Database');
//mongoose.... |
import React from "react";
import PropTypes from "prop-types";
import Ionicon from "react-ionicons";
import styles from "./styles.scss";
const PhotoActions = (props, context) => (
<div className={styles.actions}>
<div className={styles.icons}>
<span className={styles.icon} onClick={props.handle... |
const express = require('express');
const router = express.Router();
const multer = require('multer');
const mongoose = require('mongoose');
//Models
const Project = require('../Models/Project');
const ProjectComment = require('../Models/ProjectComment');
const ProjectImage = require('../Models/ProjectImage');
const U... |
"use strict";
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Specifies the change detection strategy.
*/
var ChangeDetection;
(... |
(function () {
'use strict';
/**
* @ngdoc function
* @name belmgrWebApp.controller:HelpController
* @description
* # HelpController
* Controller of the belmgrWebApp
*/
angular.module('belmgrWebApp')
.controller('HelpController', function ($scope) {
$scope.awesomeThings = [
'HT... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/ |
import React, {useEffect} from "react";
import {useDispatch, useSelector} from "react-redux";
import {ProductAction} from "../../redux/actions/ProductAction";
import {Button, Col, Row} from "react-bootstrap";
import Product from "./Product";
import {useHistory} from "react-router-dom";
import {Tooltip} from "antd";
imp... |
let mutations = {
left_menu(state, option) {
if (option == "open") {
state.left_open = true
} else if (option == "close") {
state.left_open = false
} else if (option == "toggle") {
state.left_open = !state.left_open
}
if (state.left_open) {... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _protobuf = _interopRequireDefault(require("highlight.js/lib/languages/protobuf"));
var _default = _protobuf.default;
exp... |
import React from "react"
import {
View,
Image,
ImageBackground,
TouchableOpacity,
Text,
Button,
Switch,
TextInput,
StyleSheet,
ScrollView
} from "react-native"
import Icon from "react-native-vector-icons/FontAwesome"
import { CheckBox } from "react-native-elements"
import { connect } from "react-re... |
import "@storybook/addon-storysource/register"
import "@storybook/addon-knobs/register"
import "@storybook/addon-actions/register"
import "@storybook/addon-links/register"
import "@storybook/addon-options/register"
import "@storybook/addon-backgrounds/register"
import "@storybook/addon-a11y/register"
import "@storybook... |
;(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
? factory(
exports,
require('react'),
require('react-dom'),
require('tty'),
require('util'),
require('fs'),
require('net')
)
: typeof define === 'function' &... |
import '/imports/startup/server/seed.js'; |
'use strict';
/**
* Module dependencies.
*/
var express = require('express'),
fs = require('fs'),
passport = require('passport'),
logger = require('mean-logger');
/**
* Main application entry file.
* Please note that the order of loading is important.
*/
// Load configurations
// Set the node envior... |
const {OP_2} = require('bitcoin-ops');
const {OP_CHECKMULTISIG} = require('bitcoin-ops');
const {OP_CHECKSIG} = require('bitcoin-ops');
const {OP_DROP} = require('bitcoin-ops');
const {OP_DUP} = require('bitcoin-ops');
const {OP_ELSE} = require('bitcoin-ops');
const {OP_ENDIF} = require('bitcoin-ops');
const {OP_EQUAL}... |
import React from 'react';
import { connect } from 'react-redux';
import { fetchRequests } from '../../actions';
class RequestList extends React.Component {
componentDidMount() {
this.props.fetchRequests();
}
renderList() {
return this.props.requests.map(request => {
return (
<div className="item" key={... |
var OLCS = OLCS || {};
var Modernizr = Modernizr || {};
OLCS.radioButton = (function(document, $, undefined) {
'use strict';
var exports = {};
exports.initialize = function() {
$(document).on('change', '[data-show-element]', function(){
exports.showHide();
});
exports.checkBrowserSupport();
... |
(function(app, ng) {
app.component('illustration', {
templateUrl: '/app/states/projects/illustration/illustration.template.html',
controller: illustrationController
});
app.controller('illustrationController', illustrationController);
illustrationController.$inject = ['projectListFacto... |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import MenuItem from '@material-ui/core/MenuItem';
import TextField from '@material-ui/core/TextField';
const styles = theme => ({
container: {
display: 'flex... |
export { default as Banner } from './banner'
export { default as NewsletterSignup } from './newsletter-signup' |
import { Router } from 'express';
import { signUpValidations, signInValidations } from '../middlewares/validations/user';
import { userSignUp, userSignIn } from '../controllers/userController';
const router = Router();
/** User SignUp Route */
router.post('/account/signup', signUpValidations, userSignUp);
/** User ... |
//Watch for changes
module.exports = {
all: {
files: ['<%= dev.html %>/**/*.html',
'<%= dev.styles %>/**/*.{scss,sass,less,styl}',
'<%= dev.css %>/*.css',
'<%= dev.js %>/**/*.js',
'<%= dev.img %>/**/*.{png,jpg,gif}',
'<%= dev.fonts %>/**/*.{eot,svg,ttf,otf,woff,woff2}'],
tasks: ['default'],
o... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["AWS"] = factory();
else
root["AWS"] = f... |
//Not required module
/*
import { useState } from 'react'
import { useAsync } from 'react-async-hook'
import client from '../../../data/client'
import InfoBoxPaneContainer from '../Common/InfoBoxPaneContainer'
import AccountWidget from '../../Widgets/AccountWidget'
import Widget from '../../Widgets/Widget'
const Toke... |
$(document).ready(function(){
$('#panelIndex').css('display','none');
$('#hiddenList').css('display','none');
$("#showList").click(function(){
$("#panelIndex").css('display', 'inline');
$('#showList').css('display','none');
$('#hiddenList').css('display','inline');
});
$("#hiddenList").click(f... |
/**
* DevExtreme (integration/jquery.js)
* Version: 18.2.3
* Build date: Wed Nov 07 2018
*
* Copyright (c) 2012 - 2018 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var jQuery = require("jquery");
var compareVersions = req... |
/**
* @module Shared
*/
/**
* I am the type definition of a ResourceWebpage. I represent an external webpage which is displayed in an iframe.
*
* @class ResourceWebpage
* @category TypeDefinition
* @extends Resource
*/
FrameTrail.defineType(
'ResourceWebpage',
'Resource',
function(resourceDat... |
import React from 'react';
import ReactDOM from 'react-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Duplicates } from './Duplicates';
import { Health } from './Health';
import { Delete } from './Delete';
import { Sort } from './Sort';
import { Folders } from './Folders';
import { Ex... |
const rootid = "div";
/*
* do this first
*/
function main() {
alert("javascript start");
try {
let div = document.getElementById(rootid);
let canvas = createCanvasElement();
div.appendChild(canvas);
} catch (error) {
alert(error);
}
alert("javascript done");
}
/*
... |
!function(a){const e=a.ca=a.ca||{};e.dictionary=Object.assign(e.dictionary||{},{"Align center":"Alineació centre","Align left":"Alineació esquerra","Align right":"Alineació dreta",Big:"Gran","Block quote":"Cita de bloc","Blue marker":"Marcador blau",Bold:"Negreta",Cancel:"Cancel·lar","Choose heading":"Escull capçalera"... |
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg:grunt.file.readJSON('package.json'),
watch: {
js: {
files: '<%= jshint.all %>',
tasks: ['concat']
},
sass: {
files: ['sass/*.scss'],
... |
// Libs
import { useCallback } from "react";
// Hooks
import { useFocus } from "./useFocus.hook";
/**
* Helper to handle Focus & Blur state in JS.
* @param {bool} disabled If is disabled
* @param {func} onFocus Focus handler
* @param {func} onBlur Blur handler
* @returns { focus, setFocus, _handleFocus, _handleB... |
function merge(){
var o = {};
for (var i = 0; i < arguments.length; i++){
for (var k in arguments[i]) {
o[k] = arguments[i][k];
}
}
return o;
}
Vue.component('navigation', {
template: '<div style="outline: gray solid 1px"> Navigation Template </div>'
// data: function() { return {}; }
}... |
require('dotenv').config();
module.exports = {
flags: { PRESERVE_WEBPACK_CACHE: true },
siteMetadata: {
title: 'Reactive Resume',
siteUrl: 'https://rxresu.me',
description: 'A free and open source resume builder.',
version: '2.6.7',
},
plugins: [
'gatsby-plugin-react-helmet',
{
re... |
import React from 'react';
import Title from '../../source/client/components/Title';
describe('<Title />', () => {
test('should render a title', () => {
const wrapper = shallow(<Title />);
expect(wrapper).toMatchSnapshot();
});
}); |
import React from 'react';
import ReactDOM from 'react-dom';
import DataProvider from "./DataProvider";
import Chat from "./Chat";
import MessageForm from "./MessageForm";
const App = () => (
<React.Fragment>
<div className="page-wrap">
<div className="page-body chat-page">
<DataProvider endpoint=... |
var errorPrefix = 'Model.destroyOne(primaryKey[, options][, cb]): ';
module.exports = function (container, Promise, utils, errors) {
/**
* @doc method
* @id Model.static_methods:destroyOne
* @name destroyOne
* @description
* Delete a single row by primary key from this Model's table. The `with` option... |
const Payment = require("../models/payment"),
Booking = require("../models/booking"),
User = require("../models/user"),
Rental = require("../models/rental"),
config = require("../config"),
{ normalizeErrors } = require("../helpers/mongoose");
const stripe = require("stripe")(config.STRIPE... |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const pkg = require('./package.json');
const webpack = require('webpack');
const fs = require('fs');
const name = pkg.name;
let plugins = [];
let optimization = {};
module.exports = (env = {}) => {
... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides the Design Time Metadata for the sap.m.CustomTile control
sap.ui.define([],
function() {
"use strict";
return {
pal... |
import Link from "next/link";
import Heading from "components/Heading";
export default function Index() {
return (
<>
<Heading>Hello, World!</Heading>
<Link href="stylesheet" passHref>
<a>Styles</a>
</Link>
</>
);
} |
/* global browser $ $$ */
/* eslint-env mocha */
const assert = require('assert');
var keysSelect = [
{ keyName: 'ESC', unicodeChars: '\uE00C' },
{ keyName: 'ENTER', unicodeChars: '\uE007' },
{ keyName: 'BACKSPACE', unicodeChars: '\uE003' },
{ keyName: 'TAB', unicodeChars: '\uE004' }
];
var keysInput = [{ keyName... |
var preload = function(game){var loadingBar = "";var mainMusicSound = "";};
preload.prototype = {
preload: function(){
loadingBar = this.add.sprite(160,240,"loading");
loadingBar.anchor.setTo(0.5,0.5);
loadingBar.alpha = 0;
this.load.setPreloadSprite(loadingBar);
this.game.load.b... |
const Discord = require("discord.js");
exports.run = async(client, msg, args) => {
let animEmotes = [],
staticEmotes = [];
var guild = msg.guild
guild.emojis.cache.forEach((e) => {
e.animated ? animEmotes.push(`<a:${e.name}:${e.id}>`) : staticEmotes.push(`<:${e.name}:${e.id}... |
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
'use strict';
import {formatMessage, TYPED_MESSAGE} from "./src/teamcity-format";
const ModuleNotFoundError ... |
// source: friends.proto
/**
* @fileoverview
* @enhanceable
* @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 EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var gl... |
(function () {
'use strict';
angular
.module('moi.directives')
.directive('soundButton', soundButton);
function soundButton() {
var directive = {
restrict: 'EA',
templateUrl: 'templates/directives/sound-button/sound-button.html',
scope: {
imageUrl: '@',
actionButton: ... |
import React, { Component } from "react";
import AmCharts from "@amcharts/amcharts3-react";
import "./App.css";
// Generate random data
function generateData() {
// let dataProvider = {
// date: ["1", "2", "3", "4"],
// value: ["q", "w", "e", "r"]
// };
let dataProvider = [
{
date: "1",
value... |
import styled, { keyframes } from 'styled-components';
import {
AccordionItemHeading,
AccordionItemButton,
Accordion,
AccordionItem,
AccordionItemPanel,
} from 'react-accessible-accordion';
const fadeIn = keyframes`
0% {
opacity: 0;
}
100% {
opacity: 1;
}
`;
export const AccordionWrapper = ... |
var a00341 =
[
[ "CombineSymbolic", "a00341.html#a5781266d49d769387b952e51d26b5d67", null ],
[ "EliminateSymbolic", "a00341.html#a98334f29148f20bd7f7300f2b48d76bc", null ]
]; |
import { h, text } from "hyperapp"
import { t, deepEqual } from "twist"
import jsx from "./index.js"
export default [
t("hyperapp", [
t("simple jsx calls map to simple h calls", [
deepEqual(
h("zord", { foo: true }, []),
jsx("zord", { foo: true }, [])
),
]),
t("strings become ... |
import { get, head, pick } from 'lodash';
import { UpdateMove, GetMove, SubmitMoveForApproval } from './api.js';
import { GET_LOGGED_IN_USER } from 'shared/Data/users';
import { fetchActive } from 'shared/utils';
import * as ReduxHelpers from 'shared/ReduxHelpers';
// Types
const SET_PENDING_MOVE_TYPE = 'SET_PENDING_M... |
let walkers = []
let n = 1
let world = 700
function setup() {
createCanvas(windowWidth, windowHeight, WEBGL)
pixelDensity(displayDensity())
for (let i=0; i<n; i++)
walkers.push(new Walker(i))
}
function draw() {
background(0);
lights()
orbitControl()
translate(-world / 2, -world / 2, -world / 2)
... |
function Deposit(props) {
if (props.user == null) {
return <Redirect to="/" />;
}
const [status, setStatus] = React.useState("");
const [depositAmount, setDepositAmount] = React.useState(0);
const [disableButton, setDisableButton] = React.useState(true);
//const ctx = React.useContext(UserContext);
//... |
/**
* @param {number[]} prices
* @return {number}
*/
var maxProfit = function (prices) {
let maxProfit = 0
let minPrice = Number.MAX_SAFE_INTEGER
for (let i = 0; i < prices.length; i++){
minPrice = Math.min(minPrice, prices[i])
maxProfit = Math.max(maxProfit, prices[i] - minPrice)
}
... |
import { StringWrapper } from 'angular2/src/facade/lang';
import { ListWrapper, Map } from 'angular2/src/facade/collection';
// The names of these fields must be kept in sync with abstract_change_detector.ts or change
// detection will fail.
const _STATE_ACCESSOR = "state";
const _CONTEXT_ACCESSOR = "context";
const _P... |
/*
YUI 3.7.3 (build 5687)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!... |
module.exports = {
siteMetadata: {
title: `Uniplaces Accommodation`,
description: `Uniplaces Cities, Countries, and Dynamic pages.`,
author: `@uniplaces`,
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
p... |
const fs = require("fs");
const path = require("path");
const express = require("express");
const favicon = require("serve-favicon");
const resolve = file => path.resolve(__dirname, file);
const isProd = process.env.NODE_ENV === "production";
const app = express();
let renderer;
if (isProd) {
// In production: cre... |
import axios from 'axios'
import { Message, MessageBox } from 'element-ui'
import store from '../store'
import { getToken } from '@/utils/auth'
// 创建axios实例
const service = axios.create({
baseURL: process.env.BASE_API, // api 的 base_url
timeout: 5000 // 请求超时时间
})
// request拦截器
service.interceptors.request.use(
... |
import { css } from "@emotion/core"
export const background = css`
position: relative;
`
export const navigation = css`
position: absolute !important;
height: 8rem;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
z-index: 1;
`
export const line = color => css`
width: 0.1rem;
... |
export { default } from '@denali-design/ember/components/denali-modal/trigger'; |
let passport = require('passport');
let express = require('express');
let utils = require('../middleware/utils');
//////////////////////////////////////////////////////////////////////////////////////////////
// User controller
///////////////////////////////////////////////////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.