text stringlengths 2 1.04M |
|---|
Webface.localLang = {
"page-title": "蔡博文 - 得克萨斯A&M大学",
"author-name": "蔡博文",
"nav-about" : "介绍",
"nav-research" : "研究",
"nav-projects" : "项目",
"nav-contact" : "留言",
"contact-head":"留言",
"intro-p1":"我是美国<a href='http://www.tamu.edu' target='_blank'>得克萨斯A&M大学</a>的硕士生,目前在<a href='https://parasol.tamu.edu' ... |
eduGridDirectives.directive('eduGrid', function () {
return {
restrict: "A",
replace: true,
transclude: false,
scope: {
options: '='
},
templateUrl:'directives/edu-grid.tpl.html',
link: function ($scope,$filter) ... |
const path = require('path')
const buble = require('rollup-plugin-buble')
const replace = require('rollup-plugin-replace')
const version = process.env.VERSION || require('../package.json').version
const banner =
`/**
* vuex-mapstate-modelvalue-instrict- v${version}
* (c) ${new Date().getFullYear()} fsy0718
* @licens... |
// Font Awesome Free 5.15.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
// Auto-generated by modulifyFontAwesomeIcons.js, please do not modify directly.
export default 'M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.... |
const hasOwnProperty = Object.prototype.hasOwnProperty
/**
* Object containing a variety of formatting
* methods we can leverage to transform the
* object keys to the desired format.
*
* @type {Object}
*/
const formatters = require('change-case')
/**
* Check if we're tom return the original payload
* in t... |
import Ractive from 'lib/ractive';
import emitter from 'lib/emitter';
import showTooltip from 'widgets/modals/tooltip';
import geo from 'lib/geo';
import { showError, showSuccess } from 'widgets/modals/flash';
import showSetDetails from 'widgets/modals/set-details';
import qrcode from 'lib/qrcode';
import initEosSetup ... |
function calenderAPI() {
var Google = require('ti.googlesignin');
Google.initialize({
clientID : '609127387857-30ttn66m207onsi1kr3rqop8vgj061js.apps.googleusercontent.com'
});
var loggedIn = Google.hasAuthInKeychain();
var logOutMessage = 'Sign Out';
var logInMessage = 'Sign In with Google';
var win = ... |
import {h, render, Component, cloneElement} from 'preact';
import {addEvent, removeEvent, prefixCssProp} from './UXDom';
import UXEvent from './UXEvent';
class UXDrag extends Component {
state = {
x: this.props.x || 0,
y: this.props.y || 0,
isSVGElement: false
}
componentDidMount() {
this.setSt... |
/*!
FullCalendar v5.10.1
Docs & License: https://fullcalendar.io/
(c) 2021 Adam Shaw
*/
var FullCalendarInteraction = (function (exports, common) {
'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, co... |
/**
* The base implementation of `_.hasIn` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHasIn (object, key) {
return object != null &&... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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 SpritesmithPlugin = require("webpack-spritesmith");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
.BundleAnalyzerPlugin;
const webpack = require("webpack");
const StylelintPlugin = require("stylelint-webpack-plugin");
const path = require("path");
const fs = require("fs");
const resolve = dir... |
'use strict';
import Component from '/state/library/component.js';
import store from '/state/store/indexState.js';
export default class Status extends Component {
constructor() {
super({
store,
element: document.querySelector('.js-status'),
});
}
render() {
let suffix = store.state.items.length !== 1 ?... |
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// Respect "browser" f... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... |
// @flow
import type {
lf$Database,
lf$Transaction,
lf$Predicate,
} from 'lovefield';
import lf, {
op,
} from 'lovefield';
import type {
AddressRow,
KeyDerivationRow,
BlockRow,
EncryptionMetaRow,
KeyRow,
TransactionRow,
AddressMappingRow,
CertificateRow,
CertificateAddressRow,
CertificateP... |
const express = require('express');
const app = new express();
/*This tells the server to use the client
folder for all static resources*/
app.use(express.static('client'));
/*This tells the server to allow cross origin references*/
const cors_app = require('cors');
app.use(cors_app());
/*Uncomment the following li... |
/******/ (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... |
module.exports = {
parser: 'babel-eslint',
env: {
browser: true,
es6: true,
node: true
},
extends: ['eslint:recommended', 'plugin:react/recommended'],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true,
},
sourceType: 'module',
},
plugins: ['... |
exports.lowercaseKeys = function (obj) {
var newObj = {};
Object.keys(obj).forEach(function (key) {
newObj[key.toLowerCase()] = obj[key];
});
return newObj;
}; |
import React from 'react';
export const Logo = ({className, logoColor}) => {
return (
<svg className={`${className}`} height="51" viewBox="0 0 244 51" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M242.511 13.88C242.602 13.7436 242.693 13.6073 242.693 13.4255C242.693 13.1982 242.602... |
/**
* @module ./cost-graph.reel
* @requires montage/ui/component
*/
var Component = require("montage/ui/component").Component;
/**
* @class CostGraph
* @extends Component
*/
exports.CostGraph = Component.specialize(/** @lends CostGraph# */ {
constructor: {
value: function CostGraph() {
th... |
import BoundingSphere from "../Core/BoundingSphere.js";
import Cartesian3 from "../Core/Cartesian3.js";
import Cartesian4 from "../Core/Cartesian4.js";
import Cartographic from "../Core/Cartographic.js";
import defined from "../Core/defined.js";
import IndexDatatype from "../Core/IndexDatatype.js";
import IntersectionT... |
import path from 'path';
import validateOptions from 'schema-utils';
import log from 'webpack-log';
import schema from './options.json';
import preProcessPattern from './preProcessPattern';
import processPattern from './processPattern';
import postProcessPattern from './postProcessPattern';
class CopyPlugin {
cons... |
"use strict";
//# sourceMappingURL=lastfm-icon.d.js.map |
import React from 'react';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { unmount, testReact } from '../util/a11y/validate';
import Rating from '../../src/rating';
import '../../src/rating/style.js';
Enzyme.configure({ adapter: new Adapter() });
/* eslint-disable no-undef, react/... |
module.exports = {
Read: {
array: ['parametrizable', (compiler, array) => {
let code = ''
if (array.countType) {
code += 'const { value: count, size: countSize } = ' + compiler.callType(array.countType) + '\n'
} else if (array.count) {
code += 'const count = ' + array.count + '\n... |
import CALENDAR from './calendar.js'
class Calendar {
constructor({
date,
selected,
startDate,
endDate,
range
} = {}) {
// 当前日期
this.date = this.getDate(date) // 当前初入日期
// 打点信... |
import has from 'lodash/has';
import cloneDeepWith from 'lodash/cloneDeepWith';
import toArray from 'lodash/toArray';
import { mixed as locale } from './locale';
import Condition from './Condition';
import runValidations from './util/runValidations';
import prependDeep from './util/prependDeep';
import isSchema from '... |
'use strict';
/********************************************************************************************
* *
* Перед началом работы с таском, пожалуйста ознакомьтесь с туториалом: *
* https://developer.mo... |
import React from "react"
import styled from "styled-components"
import Divider from "./Divider"
const StyledGenres = styled.div`
display: flex;
align-items: center;
@media ${props => props.theme.bp.large} {
flex-direction: column;
align-items: flex-start;
}
@media ${props => prop... |
var $ = require("jquery"),
renderer = require("core/renderer"),
eventsEngine = require("events/core/events_engine"),
keyboardMock = require("../../helpers/keyboardMock.js");
QUnit.testStart(function() {
var markup =
'<style>\
.qunit-fixture-static {\
position: absolute !important;\
... |
import Promise from 'bluebird';
import mongoose from 'mongoose';
import httpStatus from 'http-status';
import APIError from '../helpers/APIError';
const MaximaSchema = new mongoose.Schema({
product: String,
img: String,
price: String,
unitprice: String,
'scrapy-mongodb': {
ts2: Date,
},... |
function my_function428(){
//54889295558909856720868513460141kgaMxfyIvhmvJaeSFtyxhxRxlyOVOktX
}
function my_function722(){
//31665894715856748723164711893886jGAWHHEVnNTGoOnxhoRgmanxqArhjFPw
}
function my_function778(){
//15168724723640815999851272806716nxnTRWrBFbaWEoyjRCIYvMzqdOQYjeFK
}
function my_function944(){
/... |
export const KEY = 'notifications';
export const LOAD = `app/${KEY}/LOAD`;
export const CREATE = `app/${KEY}/CREATE`;
export const REMOVE = `app/${KEY}/REMOVE `; |
import React from 'react'
import { graphql } from 'gatsby'
import { MDXRenderer } from 'gatsby-plugin-mdx'
import Layout from '../components/layout/layout'
import SEO from '../components/seo'
export default function PageTemplate({ data: { mdx } }) {
const { fields, frontmatter } = mdx
const { seo_title, seo_descript... |
const webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: "inline-sourcemap",
entry: "./scripts/app.js",
output: {
path: __dirname + "/build",
filename: "app.min.js"
},
module : {
loaders: [
{
test : /.js$/,
loader : 'babel-loader',
quer... |
var startButton = document.querySelector("#startbtn");
var resetButton = document.querySelector("#resetbtn");
var highScoreButton = document.querySelector(".highscores");
var timerEl = document.querySelector(".time");
var containerEL = document.querySelector('.container');
var bodyEL = document.querySelector('.main');
... |
const colors = require(`./colors`).default
module.exports = {
colors,
mobile: `(min-width: 400px)`,
Mobile: `@media (min-width: 400px)`,
phablet: `(min-width: 550px)`,
Phablet: `@media (min-width: 550px)`,
tablet: `(min-width: 750px)`,
Tablet: `@media (min-width: 750px)`,
desktop: `(min-width: 1000px)`... |
import React, {
Component
} from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
export default class Home extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.text}>Hello Home.js!</Text>
</View>
);
}
}
const styles = Styl... |
import * as tslib_1 from "tslib";
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { NoopAnimationPlayer } from '@angular/animations';
import { Injectable } fr... |
import React from 'react';
import styled from 'styled-components';
const StyledForm = styled.form`
max-width: 500px;
margin: 0 auto;
padding: 2rem;
border-radius: 5px;
label {
display: block;
padding: 1rem 0 0.25rem;
text-transform: uppercase;
font-size: 14px;
}
input,
textarea {
... |
/*!jQuery Knob*/
/**
* Downward compatible, touchable dial
*
* Version: 1.2.0 (15/07/2012)
* Requires: jQuery v1.7+
*
* Copyright (c) 2012 Anthony Terrien
* Under MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to vor, eskimoblood... |
const fs = require('fs');
const opn = require('opn');
const input = './models/problemsL.txt';
const output = './models.html';
const data = fs
.readFileSync(input)
.toString()
.split('\n')
.filter(x => x !== '')
.map(x => x.split(':: '))
.map(x => ([
x[0],
...x[1].split('; ')
... |
/*!
* headroom.js v0.9.4 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2018 Nick Williams - http://wicky.nillia.ms/headroom.js
* License: MIT
*/
(function(root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous ... |
/**
* You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2.
* Find all the next greater numbers for nums1's elements in the corresponding places of nums2.
*
* The Next Greater Number of a number x in nums1 is the first greater number to its right in nums2. If it ... |
import React, { Component } from 'react'
import ForCreatePage from '../../components/ForCreatePage'
import { ASSET_STATUSES } from '../../constants/'
import { taiSanThietBi } from '../../entities'
import apiRoutes from '../../routes/apis'
import { apiGet } from '../../utils'
class TaiSanThietBiForCreate extends Compon... |
const { createSelector } = require('reselect')
const rootSelector = require('./rootSelector')
const SET_LOCALE = 'georgianBudget/locale/SET_LOCALE'
const reducer = (state = 'ka', action) => {
switch (action.type) {
case SET_LOCALE:
return action.value
default:
return state
}
}
reducer.setLoca... |
/*!
DataTables Editor v1.4.2
©2012-2014 SpryMedia Ltd, all rights reserved.
License: editor.datatables.net/license
*/
(function(r,q,j){var x=function(d,u){function v(a){a=a.context[0];return a.oInit.editor||a._editor}function y(a,b,c,d){b||(b={});b.buttons===j&&(b.buttons="_basic");b.title===j&&(b.title=a.i18n[c].t... |
/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.editor.plugins.AutoUrlLink"]){
dojo._hasResource["dojox.editor.plugins.AutoUrlLink"]=true;
doj... |
var searchData=
[
['factory',['Factory',['../class_factory.html',1,'Factory'],['../class_factory.html#a32bc190034f66d7e495cbcc4a7dfad30',1,'Factory::Factory()']]],
['factory_2ecpp',['factory.cpp',['../factory_8cpp.html',1,'']]],
['factory_2eh',['factory.h',['../factory_8h.html',1,'']]],
['fromplayerid',['fromPl... |
import React, {Component} from 'react'
import {StyleSheet, View, Text, Switch} from 'react-native'
import MapView from 'react-native-amap3d'
import styles from '../styles'
export default class GesturesExample extends Component {
static navigationOptions = {
title: '手势交互',
}
state = {
zoomEnabled: true,
... |
import { useEffect } from 'react';
import { useLocation } from 'react-router-dom';
function Analytics() {
const location = useLocation();
const { pathname } = location;
useEffect(() => {
if (window.gtag) {
window.gtag('event', 'virtualPageView', {
event_category: 'gener... |
module.exports = {
interval: 1000,
port: process.env.PETPET_PORT || process.env.PORT || 9000,
graphiql: true
} |
define([
'bean',
'qwery',
'bonzo',
'common/utils/ajax',
'lodash/objects/assign',
'lodash/objects/clone'
], function(
bean,
qwery,
bonzo,
ajax,
assign,
clone
) {
/**
* TODO (jamesgorrie):
* * ERROR HANDLING!
* * Find a way to run the Component const... |
/*
* 版权所有 (c) 2021. 写Bug的小杜 <https://github.com/blog> 保留所有权利
*/
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plai... |
const {createPackageDoc, findDoc} = require("@webdoc/model");
const {parse} = require("../lib/parse");
const expect = require("chai").expect;
describe("@webdoc/parser.parse (Typescript)", function() {
it("should infer access, default value, and type for fields", async function() {
const docs = await parse([{
... |
window.addEventListener('load', function () {
var webview = document.getElementById('didiyun')
var loading = document.querySelector('.loading')
var loadstart = function() {
loading.style.display="flex";
}
var loadstop = function() {
loading.style.display="none";
}
webview.addEventListener("load... |
import cases from 'jest-in-case';
import { getHTML, shouldTransform } from '../CodeSandbox';
cases(
'url validation',
({ url, valid }) => {
expect(shouldTransform(url)).toBe(valid);
},
{
'non-CodeSandbox url': {
url: 'https://not-a-codesandbox-url.com',
valid: false,
},
"non-CodeSa... |
var commonTools = require('../base/commonTools');
var request = require('request');
require('../base/ExampleTestGlobeParameter');
module.exports = {
'leaflet_04_generateSpatialDataService': function (browser) {
var type = 'leaflet';
var exampleName = '04_generateSpatialDataService';
commonT... |
class LoginFormController {
constructor($auth, $state, toastr, User) {
'ngInject';
this.$auth = $auth;
this.$state = $state;
this.toastr = toastr;
this.User = User;
}
$onInit(){
this.email = '';
this.password = '';
}
login() {
let user = {
email: this.email,
password: thi... |
const Discord = require('discord.js');
const client = new Discord.Client();
const varx = require("./hid.js");
client.on('ready', () => {
console.log(`Ready to server in ${client.channels.size} channels on ${client.guilds.size} servers, for a total of ${client.users.size} users.`);
});
client.on('message', m => {
... |
var inflatePath = require('../'),
test = require('tape');
test('inflatePath Exists', function (t) {
t.plan(2);
t.ok(inflatePath, 'inflatePath Exists');
t.equal(typeof inflatePath, 'function', 'inflatePath is a function');
});
test('#/0/thingy', function (t) {
t.plan(1);
var value = 'totes va... |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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
*
... |
import React from "react";
import {
connect
} from "react-redux";
import {
Link
} from "react-router-dom";
import {
view as Contact
} from "../Contact/";
import FontAwesome from "react-fontawesome";
import {
Popover,
Col,
Row
} from "antd";
import {
FormattedMessage
} from "react-intl";
import carImg f... |
import React from 'react'
class ResultSearchProcurant extends React.Component{
constructor(props){
super(props);
this.state = {phone: this.props.procurantInfos.phoneUser}
this.handleContact = this.handleContact.bind(this);
}
handleContact(event) {
alert(this.state.phone);
... |
$('.count-slow').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});
$('.count-medium').each(function () {
$(this).prop('C... |
/*
* Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'showblocks', 'de-ch', {
toolbar: 'Blöcke anzeigen'
} ); |
import Vue from 'vue';
import SequenceLabeling from '../components/sequence_labeling.vue';
Vue.use(require('vue-shortkey'), {
prevent: ['input', 'textarea'],
});
new Vue({
el: '#mail-app',
components: { SequenceLabeling },
template: '<SequenceLabeling />',
}); |
const { expectSpec, expectAccepted, expectRejected, reportLine } = require("./helpers/SpecHelpers")
describe("observer", () => {
describe("satisfying", () => {
it("uses the satisfying function as expected", (done) => {
expectSpec("ClaimSpec", "satisfying", done, (observations) => {
expectAccepted(o... |
'use strict';
import axios from 'axios';
import dotenv from 'dotenv'; dotenv.config();
import constants from '../../lib/constants.js';
import Token from '../../models/auth/token.js';
import AuthServiceException from './exceptions/auth_service_exception.js';
class AuthService {
constructor() {
if(AuthServ... |
'use strict';
require('../common');
const assert = require('assert');
// Test buffers small enough to use the JS implementation
const buf = Buffer.from([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10]);
assert.strictEqual(buf, buf.swap16());
as... |
/*
* JQuery zTree core v3.5.17
* http://zTree.me/
*
* Copyright (c) 2010 Hunter.z
*
* Licensed same as jquery - MIT License
* http://www.opensource.org/licenses/mit-license.php
*
* email: hunter.z@263.net
* Date: 2015-02-15
*/
(function($){
var settings = {}, roots = {}, caches = {},
//default consts of co... |
module.exports = function Constructor () {
document.getElementById('constructor').innerHTML += 'test.constructor was loaded and constructed';
}; |
const express = require('express');
const pool = require('../modules/pool');
const router = express.Router();
const {
rejectUnauthenticated,
} = require('../modules/authentication-middleware');
router.get('/all', rejectUnauthenticated, (req, res) => {
// GET ROUTE - Gets all messages for currently logged-in user
... |
import styled from '@material-ui/styled-engine';
import { unstable_styleFunctionSx as styleFunctionSx } from '@material-ui/system';
import propsToClassKey from './propsToClassKey';
import defaultTheme from './defaultTheme';
function isEmpty(obj) {
return Object.keys(obj).length === 0;
}
const getStyleOverrides = (n... |
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.org/docs/gatsby-config/
*/
module.exports = {
/* Your site config here */
siteMetadata: {
title: "Full-Stack Bootcamp!",
author: "Minh Nguyen",
},
plugins: [
`gatsby-plugin-sass`,
{
resolve: `gatsby-source-... |
/*
* Copyright 2018 dialog LLC <info@dlg.im>
* @flow
*/
import React, { PureComponent } from 'react';
import classNames from 'classnames';
import { Text } from '@dlghq/react-l10n';
import Button from '../Button/Button';
import Modal from '../Modal/Modal';
import ModalHeader from '../Modal/ModalHeader';
import Modal... |
const db = require("../../config/db");
function find(filters, table) {
let query = `SELECT * FROM ${table}`;
if (filters) {
Object.keys(filters).map((key) => {
query += ` ${key}`;
Object.keys(filters[key]).map((field) => {
query = `${query} ${field} = '${filters[key][field]}'`;
});
... |
const { Schema, model } = require('mongoose');
const dateFormat = require('../utils/dateFormat');
const suggestionSchema = new Schema({
title: {
type: String,
minlength: 8,
maxlength: 60
},
description: {
type: String,
maxlength: 240
},
suggestedUser: {
... |
import { createColumn, ColumnDataType } from "tubular-common";
const columns = [
createColumn("ingredient_id", {
dataType: ColumnDataType.Numeric,
isKey: true,
label: "Id",
visible: false,
}),
createColumn("type", {
dataType: ColumnDataType.String,
label: "In... |
'use strict';
define(['configs/config-factory'], function (configFactory) {
return configFactory.create({
sorting: {}
});
}); |
'use strict';
let currentPageUrl;
let currentTabId;
let currentTabUrl;
let currentTabFavIconUrl;
browser.tabs.query({ currentWindow: true, active: true }).then(tabs => switchTab(tabs[0]));
browser.tabs.onActivated.addListener(switchTab);
function switchTab(tab) {
console.log('Switching to tab', tab);
const... |
import PostersLayout from 'src/layouts/PostersLayout'
import NewPoster from 'src/components/NewPoster'
const NewPosterPage = () => {
return (
<PostersLayout>
<NewPoster />
</PostersLayout>
)
}
export default NewPosterPage |
/**
* Dependencies
*/
const {JWT} = require('@trust/jose')
const Credential = require('./Credential')
/**
* Errors
*/
const {
BadRequestError,
ForbiddenError,
// InternalServerError,
UnauthorizedError
} = require('./errors')
/**
* AuthenticatedRequest
*/
class AuthenticatedRequest {
/**
* construc... |
import { BackgroundImage } from "../../editor/css-property/BackgroundImage";
import { STRING_TO_CSS, CSS_TO_STRING } from "../../util/functions/func";
import { URLImageResource } from "../../editor/image-resource/URLImageResource";
import _refreshSelection from "./_refreshSelection";
export default {
command: 'add... |
'use strict'
// Temporarily disabling this rule for tests
/* eslint no-unused-vars: 0 */
const test = require('tape')
const _ = require('lodash')
const sinon = require('sinon')
const sinonTestFactory = require('sinon-test')
const sinonTest = sinonTestFactory(sinon)
const rewire = require('rewire')
const proxyquire = ... |
$(function () {
var ctx, data, myLineChart, options;
Chart.defaults.global.responsive = true;
ctx = $('#jumbotron-line-chart').get(0).getContext('2d');
options = {
responsive: true,
showScale: false,
scaleShowGridLines: false,
scaleGridLineColor: "rgba(0,0,0,.05)",
... |
const textkeep = {}
const defaultans = {}
const defdef = ['Não reconheci o que você enviou.', 'Poderia responder minha pergunta anterior?']
const messages = []
//--------TODO--------//
/**
*
*/
class StepStuff{
constructor(tags=[], actions=[], msg=[]){
for (let i in tags)
this[tags[i][0]] ... |
import { api, secureApi, roadSoFarApi } from '../../utils/api'
import { loadLatestTaxReturn } from '../taxReturn/taxReturn.module'
// ------------------------------------
// Constants
// ------------------------------------
const LOGIN_REQUEST = 'LOGIN_REQUEST'
const LOGIN_SUCCESS = 'LOGIN_SUCCESS'
const LOGIN_FAILURE... |
import axios from "axios";
/**
* Adds group for signed in user
* @name POST/api/contacts/groups
* @body {string} name - name of group to add
* @body {list<object>} members - group members where object corresponds to
* { email: string, name: string (possibly null) }
* @returns {id: {string}} of group id
... |
// @tag full-page
// @require E:\Desenvolvimento\Sistemas\workspace\SysFinancMobileSencha\app.js |
var roleClaimer = {
//Claimer should be able to assign room to memory, move to room, claim controller, then ?
run: function(creep){
//VARIABLES
var blueFlags = _.filter(Game.flags, (f) => f.color === COLOR_BLUE);
var blueFlag = blueFlags[0];
//IF NO claimRoom I... |
import P from 'prop-types';
import TemplateElement from "@/templates/elements/TemplateElement";
import {LOD_FULL, LOD_RECT} from "@/components/CardSet";
import {GRID} from "@/arrangement/GridArrangement";
import {ChildSet} from "@/components/Generators";
import {CLICK_NORMAL} from "@/components/Constants";
import {TYPE... |
module.exports = {
target: 'server',
} |
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.ObjectId;
const scheme = {
id: ObjectId,
title: String,
name: String,
status: {
type: String,
'default': 'VALID',
},
size: Number,
author: {
type: ObjectId,
ref: 'User',
},
user... |
// Based on electron-unhandled by sindresorhus:
//
// MIT License
// Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
// 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 witho... |
const { Model } = require('sequelize');
class UserLectureRelation extends Model {
static init(sequelize) {
return super.init(
{},
{
tableName: 'UserLectureRelation',
modelName: 'userLectureRelation',
sequelize,
},
);
}
}
module.exports = UserLectureRelation; |
// @flow
import 'colors'
import { getAllTracks } from '../utils'
export default (abletonObj: Object) => {
const errors = []
const occurencesHash = {}
getAllTracks(abletonObj).forEach((track) => {
const currentName = track.Name.EffectiveName.Value
if (occurencesHash[currentName]) {
errors.push(`Th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.