text stringlengths 2 1.05M |
|---|
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
const readline = require('readline');
let move_disk = (src, dest, from, to) => {
let home_top = src.pop();
let center_top = dest.pop();
if (home_top == undefined) {
src.push(center_top);
print_move(to, from, center_top);
}
else if (center_top == undefined) {
dest.push(home_... |
declare module "command-line-usage" {
/**
* Generates a usage guide suitable for a command-line app.
* @param sections One or more Section objects
* @alias module:command-line-usage
*/
declare function commandLineUsage(
sections:
| commandLineUsage$commandLineUsage$Section
| commandLineU... |
'use strict';
angular.module('etcdControlPanel')
.directive('highlight', function(keyPrefix) {
return {
restrict: 'E',
scope: {
highlightBase: '=',
highlightCurrent: '='
},
link: function(scope, element, attrs) {
var base = _.str.strRight(scope.highlightBase, keyPrefix),
c... |
import React, { Fragment } from 'react';
const PostNavigationContainer = () => (
<div>
<nav className="navbar navbar-expand-lg navbar-light bg-light">
<a className="navbar-brand" href="#">Post List</a>
<div className="navbar-nav">
<button className="btn btn-outline-success my-2 my-sm-0">New P... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){function p(a,g){var b=a.editable().findOne('a[data-cke-autoembed\x3d"'+g+'"]'),c=a.lang.autoembed,d;if(b&&b.data("cke-saved-href")){var b=... |
let facade = require('gamecloud')
let {ReturnCode} = facade.const
/**
* 自定义控制器:用户登录模块
* @description 该模块覆盖了同名的系统缺省控制器
*/
class login extends facade.Control
{
/**
* 用户登录
* @param {UserEntity} user 认证用户对象
* @param {Object} params 上行参数数组
* @returns {Object}
*/
async UserLogin(use... |
/* global Module */
/* Magic Mirror 2
* Module: MMM-Chart
*
* Developed by Erik Pettersson
* Partly based on dynchart module by Chris van Marle
* MIT Licensed.
*/
Module.register("MMM-Chart",{
requiresVersion: "2.1.0",
//var graph = [],
// Default module config.
defaults: {
// Graph default values (for... |
import React from 'react'
import styled from 'styled-components'
import { animateScroll as scroll } from "react-scroll"
import { Header5, Header6, Body, Caption } from '../layouts/typography'
import './Card.css'
import arrow from '../images/ic_arrow_b.svg'
const Container = styled.div`
display: flex;
flex-dir... |
/*!
* country-region-selector
* ------------------------
* 0.2.3
* @author Ben Keen
* @repo https://github.com/benkeen/country-region-selector
* @licence MIT
*/
!function(a,b){"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?module.exports=b(require()):a.crs=b(a)}(this,function(){"use strict"... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
import PropTypes from 'prop-types';
import { FaArrowCircleRight } from 'react-icons/fa';
import './Details.css';
const Details = ({
id,
name,
cases,
deaths,
newDeaths,
newCases,
intensive,
hospitalised,
}) => (
<div id={id}>
<div className="itemHeader detailFlex">
<h4 className="lato">{name... |
import React from 'react';
import { connect } from 'react-redux'
import HotelRateDetail from "../components/HotelRateDetail";
const mapStateToProps = (state, ownProps) => {
return {
hotelRates: state.hotelRates.hotelRates,
}
}
export default connect(
mapStateToProps
)(HotelRateDetail) |
/*
* Copyright 2018 Expedia Group
*
* 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... |
/*=============================================================
Authour URI: www.binarytheme.com
License: Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/
100% To use For Personal And Commercial Use.
IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
=====... |
"use strict";
/**
* Copyright (c) 2017-present, Ephox, Inc.
*
* This source code is licensed under the Apache 2 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var... |
var _ = require('underscore');
var Backbone = require('backbone');
var XYZView = require('./xyz-view');
/**
* View model for XYZ tab content.
*/
module.exports = Backbone.Model.extend({
defaults: {
name: 'xyz',
label: 'XYZ',
tms: false,
layer: undefined // will be set when valid
},
createView... |
$(document).ready(function() {
// MIXITUP PORTFOLIO
$(function() {
// Instantiate MixItUp:
$('#container-mixitup').mixItUp();
});
// MAGNIFIC POPUP
$('#container-mixitup').magnificPopup({
delegate: 'a', // child items selector, by clicking on it popup will open
type... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'flash', 'sv', {
access: 'Script-tillgång',
accessAlways: 'Alltid',
accessNever: 'Aldrig',
accessSameDomain: 'Samma domän',
al... |
/**
* 1006.笨阶乘 | 难度:中等 | 标签:数学
* 通常,正整数 n 的阶乘是所有小于或等于 n 的正整数的乘积。例如,factorial(10) = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1。
* <p>
* 相反,我们设计了一个笨阶乘 clumsy:在整数的递减序列中,我们以一个固定顺序的操作符序列来依次替换原有的乘法操作符:乘法(*),除法(/),加法(+)和减法(-)。
* <p>
* 例如,clumsy(10) = 10 * 9 / 8 + 7 - 6 * 5 / 4 + 3 - 2 * 1。然而,这些运算仍然使用通常的算术运算顺序:我们在任何加、减步骤之前执行... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"6VtZ":function(n,c,o){},Ay9S:function(n,c,o){},"Pf/c":function(n,c,o){},Uj7m:function(n,c,o){},"Z/1q":function(n,c,o){},drWP:function(n,c,o){},en2a:function(n,c,o){},gjrb:function(n,c,o){},hc9C:function(n,c,o){},"sg+I":function(n,c,o){}}]);
//# sourceMappingURL=... |
import React from 'react';
import { Button } from '@material-ui/core';
import skull from '../resources/skull.svg';
// import Modal from '@material-ui/core/Modal';
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router';
const reqSvgs = require.context ( '../resources/sweet/', true, /\.svg$/ );
co... |
const { Logger } = require('KegLog')
const { git } = require('KegGitCli')
const { ask } = require('@keg-hub/ask-it')
const { exists } = require('@keg-hub/jsutils')
const { getGitPath } = require('KegUtils/git')
const { generalError } = require('KegUtils/error')
/**
* Git push task
* @param {Object} args - arguments ... |
const helper = require('think-helper');
const nodemailer = require('nodemailer');
const assert = require('assert');
function thinkEmail(transport, options) {
assert(helper.isObject(transport), 'think-email transport required an Object');
assert(helper.isObject(options), 'think-email send email options required an... |
// Util
const fs = require("fs");
// Slash Commands
const slash = require("../util/slash");
// CLI
const botLoader = ora("Bot aktif ediliyor.").start();
module.exports = {
event: "ready",
oneTime: true,
ws: false,
run: async (client) => {
const commandFiles = fs
.readdirSync("./src/commands")
... |
var awsIotProfileTemplate =
`/*
* FreeRTOS V202112.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* 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 Softwar... |
var inst = require("../index").getInstance();
inst.applyConfig({ debug: true, filter: "debug" });
module.exports = inst.use("autocomplete-list-keys");
|
export default function editorUrl(config, file, lineNumber) {
const editor = config.editor;
const editors = {
sublime: 'subl://open?url=file://%path&line=%line',
textmate: 'txmt://open?url=file://%path&line=%line',
emacs: 'emacs://open?url=file://%path&line=%line',
macvim: 'mvim:... |
import React from 'react'
import Navbar from './Navbar'
import '../styles/global.css'
export default function Layout({children}) {
return (
<div className="layout">
<Navbar />
<div className="layoutMiddle">
{children}
</div>
<foo... |
'use strict'
import React, {Component} from 'react';
import {
StyleSheet,
View,
Text,
Image,
Button,
ScrollView,
ActivityIndicator,
RefreshControl
} from 'react-native';
import {StackNavigator} from 'react-navigation';
import config from '../config';
export default class RandomScreen extends Component... |
import React from 'react';
import styled from '@emotion/styled';
import Layout from './layout';
import { graphql } from 'gatsby';
const Contenido = styled.div`
max-width: 1200px;
margin: 0 auto;
width: 95%auto;
@media(min-width: 768px){
display: grid;
grid-template-columns: 2fr 1fr;
... |
const version = require('../package.json').version;
const fs = require('fs');
if (version.indexOf('-') === -1) {
// beta, alpha, rc, dev versions are ok to go without changelog
const file = fs.readFileSync('./changelog.md', 'utf-8');
let lines = file.toString().split('\n');
// remove lines that start w... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tmrm = require("azure-pipelines-task-lib/mock-run");
const path = require("path");
const mocks = require("./mockWebApi");
let rootDir = path.join(__dirname, '../../Tasks', 'TagBuild');
let taskPath = path.join(rootDir, 'tagBuild.js');
le... |
'use strict'
const fs = require('fs')
const rpc = require('pm2-axon-rpc')
const axon = require('pm2-axon')
const log = require('debug')('interactor:daemon')
const os = require('os')
const cst = require('../constants.js')
const ReverseInteractor = require('./reverse/ReverseInteractor.js')
const PushInteractor = require... |
var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"en-US"});
"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(n){const i=Math.floor(Math.abs(n)),v=n.toString().replace(/^... |
/**
* @class Ext.data.schema.Reference
*
* **This is not a real JavaScript class and cannot be created. This is for documentation purposes only.**
*
* This documentation is for:
*
* + {@link Ext.data.field.Field#reference reference config}
*
* The {@link Ext.data.Model#entityName name} of the entity reference... |
import { compileToFunctions } from 'vue-template-compiler'
import mount from '~src/mount'
import ComponentWithProps from '~resources/components/component-with-props.vue'
describe('setProps', () => {
it('sets component props and updates DOM when called on Vue instance', () => {
const prop1 = 'prop 1'
const pr... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.Recompose = {}),global.React));
}(this, (function (exports,React) { 'use strict';
... |
import { Meteor } from 'meteor/meteor';
import { Roles } from 'meteor/alanning:roles';
import { StudySessions } from '../../api/studysessions/StudySessions';
import { UserProfiles } from '../../api/userprofiles/UserProfiles';
import { CourseList } from '../../api/courselist/CourseList';
/** This subscription publishes... |
const router = require('express').Router();
const bcrypt = require('bcryptjs');
const Users = require('../users/users-model.js');
router.post('/', (req, res) => {
const user = req.body;
if(!user.email || !user.username || !user.password){
res.status(400).json({ message: "Please provide username, emai... |
/*global defineSuite*/
defineSuite([
'Scene/ImageryLayer',
'Specs/createContext',
'Specs/destroyContext',
'Core/Extent',
'Core/jsonp',
'Core/loadImage',
'Core/loadWithXhr',
'Scene/BingMapsImageryProvider',
'Scene/EllipsoidTerrainProvider',... |
(function($) {
var cultures = $.global.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["xh-ZA"] = $.extend(true, {}, en, {
name: "xh-ZA",
englishName: "isiXhosa (South Africa)",
nativeName: "isiXhosa (uMzantsi Afrika)",
languag... |
/* jshint -W097 */
/* jshint strict: false */
/* jslint node: true */
'use strict';
// you have to require the utils module and call adapter function
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const adapter = new utils.Adapter('mihome-plug');
const dgram = require('dgram');
const Mi... |
let todos = [];
const list = document.querySelector('#todo-list');
const todoInput = document.querySelector('#input-todo');
const allcheck = document.querySelector('#chk-allComplete');
const tabList = document.querySelector('.nav');
const tabSelect = document.querySelectorAll('.nav li');
const clearBtn = document.query... |
const express = require("express");
const path = require("path");
const mongoose = require("mongoose");
const apiRoutes = require("./routes/api-routes");
const booksRoutes = require("./routes/books-routes");
const app = express();
const PORT = process.env.PORT || 3001;
// Define middleware here
app.use(express.urlenco... |
Clazz.declarePackage ("J.adapter.readers.simple");
Clazz.load (["J.adapter.smarter.AtomSetCollectionReader"], "J.adapter.readers.simple.JSONReader", ["JU.P3", "$.PT", "J.adapter.smarter.Bond", "JU.Logger"], function () {
c$ = Clazz.decorateAsClass (function () {
this.scale = null;
Clazz.instantialize (this, argumen... |
// This is an integration test because the dependencies are not mocked out
var expect = require('chai').expect
, UserService = require('../../../server/service/UserService')
, UserDao = require('../../../server/dao/UserDao')
, messages = require('../../../server/validate/ValidationMessages');
describe('Us... |
sap.ui.define([
"sap/ui/model/json/JSONModel",
"sap/ui/core/mvc/Controller"
], function (JSONModel, Controller) {
"use strict";
return Controller.extend("sap.f.ShellBarWithFlexibleColumnLayout.controller.FlexibleColumnLayout", {
onInit: function () {
this.oRouter = this.getOwnerComponent().getRouter();
thi... |
require("dotenv").config({
path: `.env`,
})
const dynamicPlugins = []
if (process.env.GATSBY_PRODUCTION) {
dynamicPlugins.push({
resolve: "gatsby-plugin-firebase",
options: {
credentials: {
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
da... |
const { ConstructLibraryCdktf, JsonFile } = require('projen');
const cdktfVersion = '0.5.0';
const CDKTF_JSON_FILE = 'cdktf.json';
const tsCustomConfig = {
exclude: ['examples'],
include: ['src/**/*.ts', 'src/**.*.tf'],
};
const project = new ConstructLibraryCdktf({
name: 'cdktf-metaflow',
authorName: 'Bryan G... |
let CustomerModel = require('../models/customer.model');
let express = require('express');
let router = express.Router();
router.post('/customer', (req, res) => {
if (!req.body) {
return res.status(400).send('Request body is missing');
}
let model = new CustomerModel(req.body);
model
.save()
.then... |
(function(){
var canv = document.getElementById('myCanvas'),
c = canv.getContext('2d'),
gravity = 0.1,
dampening = 0.99,
pullStrength = 0.01,
circles = [ ],
i, numCircles = 10;
for(i = 0; i < numCircles; i++){
circles.push({
x: Math.random() * canv.width,
y: Math... |
var reload = chrome.runtime.reload
document.addEventListener("DOMContentLoaded",ondom)
function getel(id) { return document.getElementById(id) }
function ui_ready() {
getel('main-loading').style.display = 'none'
getel('main-content').style.display = 'block'
if (window.webapp) {
if (! (webapp.start... |
function recargar(){window.location.href=base_url+"personas/persona"}$(function(){redirectBrowser(),$(window).scroll(function(){$(this).scrollTop()>400?$(".scrollup").fadeIn():$(".scrollup").fadeOut()}),$(".scrollup").on("click",function(){return $("html, body").animate({scrollTop:0},600),!1}),$('[data-tooltip!=""]').q... |
/**
* @module AuthController
* @description Controller for Authentication, both into HID and OAuth sites.
*/
const Boom = require('@hapi/boom');
const Hoek = require('@hapi/hoek');
const Client = require('../models/Client');
const Flood = require('../models/Flood');
const JwtToken = require('../models/JwtToken');
co... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define("require exports ../../../core/tsSupport/declareExtendsHelper ../../../core/tsSupport/decorateHelper ../../../core/Accessor ../../../core/accessorSupport/dec... |
import styled from "styled-components"
import { setFlex, setFlexDirection, breakpoint, setColor } from "../../styles/styleHelpers"
export const StyledClassHero = styled.div`
width: 100%;
${setFlex()};
${setFlexDirection({direction: "column"})}
${breakpoint.sm`
position: relative;
`}
`
export const StyledClassHeroTitl... |
// A minimal mock of the Fellowship One API for testing against
var express = require('express')
var passport = require('passport')
var AnonymousStrategy = require('passport-anonymous').Strategy
var api = express.Router()
function resource (path, name) {
var obj = {}
obj[name] = {
'@id': '1'
}
api.route(pa... |
// @flow strict-local
import type {
Asset as IAsset,
Bundle as IBundle,
BundleGroup,
CreateBundleOpts,
Dependency as IDependency,
GraphVisitor,
MutableBundleGraph as IMutableBundleGraph,
BundlerBundleGraphTraversable,
Target,
} from '@parcel/types';
import type {ParcelOptions} from '../types';
impor... |
var app = getApp();
var pageData = {
data: {"title_ele1":{"type":"title-ele","style":"opacity:1;line-height:58.59375rpx;background-color:#f53530;border-color:rgb(34, 34, 34);border-radius:0rpx;border-style:none;border-width:0rpx;color:#ffffff;font-size:39.84375rpx;font-weight:bold;margin-left:auto;margin-right:... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { A as arr } from '@ember/array';
module('Unit | Validator | request-filters', function(hooks) {
setupTest(hooks);
test('validate request-filters', function(assert) {
assert.expect(2);
let Validator = this.owner.lookup(... |
const assert = require('assert');
const async = require('async');
const { parseString } = require('xml2js');
const AWS = require('aws-sdk');
const { cleanup, DummyRequestLogger, makeAuthInfo }
= require('../unit/helpers');
const { ds } = require('../../lib/data/in_memory/backend');
const { bucketPut } = require('.... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react'
import Layout from '../../co... |
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/... |
// Copyright (c) 2009-2017 SAP SE, All Rights Reserved
sap.ui.define([
"sap/ushell/components/tiles/utils",
"sap/ushell/components/tiles/utilsRT",
"sap/ushell/components/applicationIntegration/AppLifeCycle",
"sap/ushell/Config",
"sap/ushell/services/AppType",
"sap/m/library",
"sap/ui/model/... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { AutoForm } from 'meteor/aldeed:autoform';
import { Users } from '/imports/api/users/users.js';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Roles } from 'meteor/alanning:roles';
import './edit-profile.htm... |
deepmacDetailCallback("00261f000000/24",[{"d":"2009-05-10","t":"add","a":"SAE Technology Centre\n6 Science Park East Avenue\nHong Kong Science Park Shatin, New Territories\n","c":"HONG KONG","o":"SAE Magnetics (H.K.) Ltd.","s":"wireshark.org"},{"d":"2015-08-27","t":"change","a":"SAE Technology Centre Hong Kong Science ... |
import { hits } from 'instantsearch.js/es/widgets';
import template from './hit.html';
import './hit.scss';
export default class Hit {
constructor(search) {
search.addWidget(
hits({
container: '#results',
templates: {
empty: '',
item: template,
},
})
)... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import ProfilePresenter from "./ProfilePresenter";
class ProfileContainer extends Component {
state = {
loading: true,
seeFollowers: false,
seeFollowings: false
};
static propTypes = {
getProfile: PropTypes.func.isRequ... |
// customize the experiment by specifying a view order and a trial structure
exp.customize = function() {
// specify view order
this.views_seq = [
intro,
main,
postTest,
thanks
];
// prepare information about trials (procedure)
// randomize main trial order, bu... |
import {Component} from '../Component';
import {ComponentPropertiesDlg} from '../Dlg/ComponentPropertiesDlg';
/**
* Component: n-to-1 Multiplexer
*
* Works for both busses and single-bit inputs.
* @constructor
*/
export const BusMultiplexer = function() {
Component.call(this);
this.height = 80;
this.... |
import foo from './foo.js';
function x () {
var answer = foo();
return { answer };
}
assert.equal( x().answer, 42 );
|
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
// @flow
import React from 'react';
import Link from 'gatsby-link';
import './Menu.scss';
const Menu = () => (
<nav className="c-menu">
<Link className="c-menu__link" to="/dizin" activeClassName="is-active">
Dizin
</Link>
<Link className="c-menu__link" to="/konular" activeClassName="is-active">
... |
const db = require('../db');
module.exports = async (publisherId) => {
const { cdnHostname } = await db.strictFindById('publishers', publisherId, {
projection: { cdnHostname: 1 },
});
return cdnHostname;
};
|
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
import { bind, OpaqueToken } from 'angular2/di';
export class Options {
// TODO(tbosch): use static initializer when our transpiler supports it
static get SAMPLE_ID() { return _SAMPLE_ID; }
// TODO(tbosch): use static initializer when our transpiler supports it
static get DEFAULT_DESCRIPTION() { return _DEFAUL... |
export default {
props: {
type: { type: 'enum', values: ['paragraph'] },
content: {
type: 'array',
items: ['inline'],
allowUnsupportedInline: true,
optional: true,
},
marks: { type: 'array', items: [], optional: true },
},
};
//# so... |
import React from 'react';
import {
Image,
Subtitle,
Overlay,
Title,
Divider,
TouchableOpacity,
Tile,
} from '@shoutem/ui';
export default class ListMenuView extends React.Component {
static propTypes = {
onPress: React.PropTypes.func,
item: React.PropTypes.object.isRequired,
};
construct... |
/**
* @file shouldUpdate
* @desc use 'onComponentShouldUpdate' lifecycle hook to determine if component should update or not
* @author Roman Zanettin <roman.zanettin@ringieraxelspringer.ch>
* @date 2017-01-06
*/
import withLifecycle from './withLifecycle';
/**
* @param {Function} - onComponentShouldUpd... |
import React from 'react'
import PropTypes from 'prop-types'
import Episode from '../Episode/Episode'
import './EpisodeList.styl'
const EpisodeList = ({
episodes,
setPlayingEpisode,
currentlyPlaying,
pauseCurrentEpisode,
}) => (
<div className="EpisodeList">
{episodes.map(episode => {
const data ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvg... |
const db = require('../db/db.js');
const q = require('../db/queries.js');
const shoutoutController = {};
/**
* getShoutouts - retrieve all shoutouts from the database and store them into res.locals
* before moving on to next middleware.
*/
shoutoutController.getShoutouts = async (req, res, next) => {
const shou... |
'use strict';
// exports
module.exports = {
name: 'notifications',
schema: {
id: {
allowNull: false,
primaryKey: true,
type: 'Sequelize.TEXT'
},
app_id: {
allowNull: false,
type: 'Sequelize.TEXT'
},
title: {
allowNull: false,
type: 'Sequelize.TEXT'
... |
import Vue from 'vue';
import App from './app';
import VueAirloy from 'vue-airloy/src';
import AirloyWeb from 'airloy-web/src';
import config from './config.json';
VueAirloy.configure(config.airloy);
VueAirloy.use(AirloyWeb);
Vue.use(VueAirloy);
new Vue({ // eslint-disable-line
el: '#app',
render: h => h(App)
})... |
function a(b){if(c)for(var d=1,e=b.f();;d++){}}
|
import React from "react"
import PropTypes from "prop-types"
export default class HTML extends React.Component {
render() {
return (
<html {...this.props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta
... |
angular.module('demoApp')
.controller('rxRadioCtrl', function ($scope) {
$scope.validEnabled = 1;
$scope.validDisabled = 1;
$scope.validNgDisabled = 1;
$scope.invalidEnabled = 1;
$scope.invalidDisabled = 1;
$scope.invalidNgDisabled = 1;
$scope.radCreateDestroy = 'destroyed';
$scope.pla... |
import React from 'react';
import PropTypes from 'prop-types';
const UilCar = (props) => {
const { color, size, ...otherProps } = props
return React.createElement('svg', {
xmlns: 'http://www.w3.org/2000/svg',
width: size,
height: size,
viewBox: '0 0 24 24',
fill: color,
...otherProps
}, R... |
import { Mongo } from 'meteor/mongo';
import { Random } from 'meteor/random';
import { getRedisPusher } from '../redis/getRedisClient';
import { EJSON } from 'meteor/ejson';
import getFields from '../utils/getFields';
import { Events, RedisPipe } from '../constants';
import containsOperators from '../mongo/lib/contains... |
describe ("Basic Chart Tests", function () {
var db;
beforeEach(function () {
$("#dbTarget").empty().removeClass("");
$("#dbTarget").css({
width: 1000
});
});
var chart_timeout = 400;
afterEach(function() {
db.pro.dispose();
$(".rfTooltip").remove();
});
var createChart = function (seriesA, serie... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
import React from 'react';
const VideoDetail = ({video}) => {
if(!video){
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-responsi... |
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import Gridicon from 'gridicons';
import { registerBlockType } from '@wordpress/blocks';
import { RawHTML } from '@wordpress/element';
/**
* Internal dependencies
*/
import Block from './block';
import getShortcode from '../../utils/get-shortcode... |
import React from 'react';
import Layout from "../components/Layout"
const contact = () => {
return (
<Layout>Contacts!</Layout>
)
}
export default contact; |
// postbuild script
// use shelljs for cross platform
/* eslint-disable import/no-extraneous-dependencies */
const shell = require('shelljs');
// copy corpora folder
shell.cp('-r', 'src/corpora/*.txt', 'build/corpora/');
shell.echo('postbuild successful');
|
import fs from "fs/promises";
import { shuffle } from "d3-array";
import Block from "./block.js";
import Twitter from "./twitter.js";
import { uniq } from "./util.js";
const twitter = new Twitter();
const hour = new Date().getHours();
const dark = hour >= 23 || hour < 10;
const background = "⬛";
const lightBackg... |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
(function(e){const t=e["da"]=e["da"]||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 af %1","Align cell text to the bottom":"Justér tekstcelle til bunden","Align cell text to the center":"Justér tekstcelle centreret","Align cell text to the left":"Justér tekstcelle til venstre","Align cell text to the m... |
(async function(testRunner) {
var {page, session, dp} = await testRunner.startHTML(`
<link rel='stylesheet' media='print and (min-width: 8.5in)' href='${testRunner.url('./resources/media-queries.css')}'></link>
<link rel='stylesheet' href='${testRunner.url('./resources/active-media-queries.css')}'></link>
<style>
@me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.