text stringlengths 2 1.04M |
|---|
/*
* #%L
* React Site Starter
* %%
* Copyright (C) 2009 - 2017 Broadleaf Commerce
* %%
* Broadleaf Commerce React Starter
*
* Written in 2017 by Broadleaf Commerce info@broadleafcommerce.com
*
* To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights t... |
/*
* Declaratively-defined tests for views for all database commands. This file contains a map of test
* definitions as well as code to run them.
*
* The example test
*
* {
* command: {insert: "view", documents: [{x: 1}]},
* expectFailure: true
* }
*
* invokes runCommand with `com... |
const state = {
posts: null,
postsStatus: null,
postMessage: '',
};
const getters = {
posts: state => {
return state.posts;
},
newsStatus: state => {
return {
postsStatus: state.postsStatus,
}
},
postMessage: state => {
return state.postMessag... |
import fighterJet from '../assets/icons/fighterjet.svg'
import warehouse from '../assets/icons/warehouse.png'
import factory from '../assets/icons/factory.svg'
export default {
fighterPlane: fighterJet,
warehouse: warehouse,
factory: factory,
} |
import * as React from 'react';
import Button from '@material-ui/core/Button';
import workSessionsCache from '../cache/work-sessions-cache';
import workSessionSettings from '../cache/work-session-settings';
export default class GlobalSettings extends React.Component {
render() {
return (
<div style={{displ... |
export {default} from './Title.js'; |
import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [{ a: 0.35, b: 14.5 }, { a: 1, b: 2.5 }, { a: 10, b: 0.2 }, { a: 100, b: 205 }, { a: 1, b: 100 }, { a: 5.11, b: 10... |
var util = require('util');
// To use this template you must configure the app setting "AzureWebJobsSendGridApiKey"
// with your SendGrid Api key. You can also optionally configure the default From/To addresses
// globally via host.config, e.g.:
//
// {
// "sendGrid": {
// "to": "user@host.com",
// "from"... |
import styled from 'styled-components';
const Wrapper = styled.nav`
display: flex;
text-align:center;
justify-content: space-between;
align-items: center;
color: ${({ theme }) => theme.colors.dark};
padding: 1rem;
`;
export default Wrapper; |
const eligibility = () => {
return function (req, res, next) {
res.set("Content-Type","application/json; charset=UTF-8");
const response = {
"statutdemande": "OK",
"msgstatut": "",
"partenaire": "APRIL",
"produitcomm": "ASPSAN0110",
"libprodcomm": "APRIL Santé MIX",
"codeproduit": "MIX0150",... |
import mongoose from 'mongoose';
const EmployeeSchema = new mongoose.Schema({
first_name: {type: String},
last_name: String,
age: {type: Number},
street: String,
city: String,
state: String,
latitude: Number,
longitude: Number,
ccnumber: Number
});
EmployeeSchema.index({"age":1})
const EmployeeMo... |
import React from 'react'
import { graphql } from 'gatsby'
import { Col, Row } from 'react-styled-flexboxgrid'
import { CharacterCard } from '../components/elements/cards'
import useRandomCharacters from '../utils/hooks/randomCharacters'
import { Navbar } from '../components/Navbar/App'
import Banner from '../compone... |
"use strict";
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author David Sehnal <david.sehnal@gmail.com>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultColorSwatch = void ... |
const make = require('./Self_Modules/make_check')
var result = make.check()
if (result == 'x') {
console.log('Please buy a valid license in our website: (website)')
} else {
console.log(result)
} |
// Imports
import axios from 'axios'
import { AsyncStorage } from 'react-native'
// App Imports
import { API_URL } from '../../../../setup/config/env'
import translate from '../../../../setup/translate'
import { MESSAGE_SHOW } from '../../../common/api/types'
import { NOTE_LIST_CACHE } from './cache-keys'
import { LIS... |
!function(){"use strict";angular.module("vbr-style-guide",["ngAria","ngMessages","ngTouch","ui.bootstrap","ngFileUpload"])}();
!function(){"use strict";angular.module("vbr-style-guide").directive("initBind",["$compile",function(t){return{restrict:"A",link:function(i,n,e){var r=window.MutationObserver||window.WebKitMuta... |
/*
* Support for AMD loading
*/
(function (global) {
const systemPrototype = global.System.constructor.prototype;
const emptyInstantiation = [[], function () { return {} }];
function unsupportedRequire () {
throw Error('AMD require not supported.');
}
let tmpRegister;
function emptyFn () {}
con... |
import { responseRejectInterceptor } from '@api/base';
import { loanApi } from '@api/loans';
import { NewButton } from '@components/backoffice/buttons/NewButton';
import { QueryBuildHelper } from '@components/SearchBar/QueryBuildHelper';
import {
invenioConfig,
setReactSearchKitInitialQueryState,
setReactSearchKi... |
/**
* Kendo UI v2018.1.117 (http://www.telerik.com/kendo-ui)
* Copyright 2018 Telerik AD. All rights reserved. ... |
import {
GET_CHARS,
SET_UI_CREATE_VERSION_NUM,
SET_UI_CREATE_VERSION_SCRIPT_ID,
ADD_UI_CREATE_VERSION_USED_CHAR,
REMOVE_UI_CREATE_VERSION_USED_CHAR,
SET_UI_CREATE_VERSION_USED_CHARS,
SET_UI_CREATE_VERSION_UNUSED_CHARS,
SET_UI_CREATE_FILTER_INPUT,
SET_UI_CREATE_RESET_CHARS,
TRIM_USED_CHARACTERS,
S... |
/* @flow */
export const dump = (obj: any) => {
log('#####################################################################################');
log(`## Dumping object ${obj}`);
log(`## obj class is: ${obj.className()}`);
log('#####################################################################################')... |
({"preview":"Visualização"}) |
/**
* Created by Косаностра on 14.03.2016.
*/
/**
* Created by kocahoctpa on 3/14/16.
*/
$(document).ready(function(){
'use strict';
var Adminka = document.adminkaInterpro;
Adminka.init({});
function SendSorter(block, id, sort){
var dataobj = {};
dataobj['block'] = block;
... |
// import React, {Component} from 'react';
import { useState , useEffect } from 'react';
// import { CardList } from './components/card-list/card-list.components';
import CardList from "./components/card-list/card-list.components"
import SearchBox from './components/search-box/search-box.component';
import './App.css'... |
$(document).ready(function () {
$('form[data-name="sonata-ajax"]').on('submit', function (e) {
e.preventDefault();
var self = $(this);
$.ajax({
type: self.attr('method'),
url: self.attr('action'),
data: self.serialize(),
success: function (da... |
(function() {
'use strict';
jQuery( document ).ready( function( $ ){
// Init foundation
$(document).foundation();
// top-bar fixed for tablet up
(function fixTopBar() {
var mq = window.matchMedia('all and (max-width: 640px)');
if (mq.matches) {
$('.top-bar').removeClass('fixed')... |
import React from 'react';
import { AsyncStorage } from 'react-native';
import {
createBottomTabNavigator,
createStackNavigator,
createAppContainer,
createSwitchNavigator,
} from 'react-navigation';
import { Provider, observer } from 'mobx-react/native';
import { create, persist } from 'mobx-persist';
import { ... |
(function() {
var _ = typeof require == 'function' ? require('..') : window._;
QUnit.module('Functions');
QUnit.config.asyncRetries = 3;
QUnit.test('bind', function(assert) {
var context = {name: 'moe'};
var func = function(arg) { return 'name: ' + (this.name || arg); };
var bound = _.bind(func, c... |
/**
* Created by ds on 24/04/2016.
* This will calculate the allele frequencies in the given output from a variants database.
* I am assuming access to the query data (Sample IDs and range).
*/
var fs = require('fs');
var AlleleFreq = function (samples, range, refSeq, vars) {
var refs = refSeq;
if (type... |
var myArray = [["John", 23], ["cat", 2]];
myArray.push(["dog", 3]); |
// # {{cancel_link}} Helper
// Usage: `{{cancel_link}}`, `{{cancel_link class="custom-cancel-class"}}`, `{{cancel_link cancelLabel="Cancel please!"}}`
//
// Should be used inside of a subscription context, e.g.: `{{#foreach @member.subscriptions}} {{cancel_link}} {{/foreach}}`
// Outputs cancel/renew links to manage su... |
export { default } from './AboutTheAuthor'; |
const ipc=require('../../../node-ipc');
/***************************************\
*
* UDP Client is really a UDP server
*
* Dedicated UDP sockets on the same
* machine can not be bound to in the
* traditional client/server method
*
* Every UDP socket is it's own UDP server
* And so must have a unique port on ... |
function getOptions(type){let deflt='<option value="1" selected>1</option><option value="2">2</option>';return"grading"===type&&(deflt+='<option value="3" selected>3</option><option value="4">4</option>'),deflt}$((function(){$("#datepickerStart, #datepickerEnd").datepicker({showAnim:"show",dateFormat:"yy-mm-dd"}),$("#s... |
import styles from "../styles/Projects.module.css"
import defaultStyles from "../styles/default.module.css"
export default function Projects() {
return (
<section className={styles.container}>
<div className={styles.content}>
<h3 className={styles.sectionTitle} tabIndex="0">
Developed pro... |
'use strict'
const html = require('choo/html')
const assert = require('assert')
const css = require('sheetify')
const xtend = require('xtend')
const baseStyles = css`
:host {
text-transform: uppercase;
letter-spacing: .025em;
cursor: pointer;
background-color: transparent;
.btn-inner-wrapper {
... |
(this["webpackJsonpbazzon-app"]=this["webpackJsonpbazzon-app"]||[]).push([[15,39],{278:function(e,t,n){"use strict";n.r(t),n.d(t,"QuillTextEditor",(function(){return b}));var a=n(25),i=n(26),l=n(28),o=n(27),r=n(157),u=n(29),c=n(0),d=n.n(c),s=n(595),h=n.n(s),b=(n(535),function(e){function t(e){var n;return Object(a.a)(t... |
/**
* @module App
* @submodule models/Group
*/
define(['backbone', 'helpers/unixutc', 'helpers/getWOY'], function(BB, unixutc, getWOY) {
/**
* Date group model
* @class Group
* @constructor
* @extends Backbone.Model
*/
var Group = BB.Model.extend({
defaults: {
/**
* Title of the date group (Tod... |
/**
* Singleton of Facebook's Flux Dispatcher. It's essentially a pub/sub util
* with support for waiting for other subscribers to finish.
*/
var Dispatcher = require('flux').Dispatcher;
module.exports = new Dispatcher(); |
var pattern_size;
var p;
var base = 256;
function getRandomPrimeNumber(){
var prime_list = [0x7f001b, 0x7f7,0x7, 0x25];
return prime_list[Math.floor(Math.random()*prime_list.length)];
}
function RK_hash(part){
var sum = 0;
var factor = 1;
for (var i = pattern_size - 1; i >= 0; i--) {
sum... |
import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import ProfileStyles from './profile.module.scss'
const Profile = (props) => {
const data = useStaticQuery(graphql`
query {
markdownRemark(frontmatter: {
title: {
eq: "About Me"
}
}) {
html
frontmat... |
import { createSlice } from '@reduxjs/toolkit';
export const chartData = createSlice({
name: 'chartData',
initialState: {
data: {
invocations: undefined,
errors: undefined,
throttles: undefined,
},
},
reducers: {
invocationsChange: (state, action) => {
state.data.invocations... |
import React from "react"
import Helmet from "react-helmet"
import Vimeo from "../components/vimeo"
import PostRow from "../components/postRow"
import PostRows from "../components/postRows"
import styles from "../pages/index.module.scss"
import { graphql } from "gatsby"
import Layout from "../components/layout"
class ... |
const checkBeforeCreate = (request, tab, domain) => {
// if not locked
chrome.storage.local.get(["accounts", "no_confirm", "current_rpc"], function(
items
) {
const { memo, username, type, enforce, method } = request;
// Check user
if (!items.accounts && type !== "addAccount") {
createPopup(... |
var NISLFuzzingFunc = function(ariasState, content2) {
if (!this.signal) {
return this;
this.getValue();
return this;
},
scope: function() {
var source = this.currentTimer.getText(), strip = this._defigit.getDispose();
... |
const styleSheet = require('./supportCSSStyleSheet')
module.exports = body
function body ({content, ui, theme}) {
// insert CSS style
const customStyle = theme ? theme.style : ''
// set CSS variables
if (theme && theme.props) {
var {
size, color, bgColor,
borderWidth, b... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'ru', {
alt: 'Альтернативный текст',
btnUpload: 'Загрузить на сервер',
captioned: 'Отображать название',
captionPlaceholder: 'Название',... |
goog.provide('fontface.Observer');
goog.require('fontface.Ruler');
goog.require('dom');
goog.scope(function () {
var Ruler = fontface.Ruler;
/**
* @constructor
*
* @param {string} family
* @param {fontface.Descriptors=} opt_descriptors
*/
fontface.Observer = function (family, opt_descriptors) {
... |
(function(namespace,resourcesUrl){"use strict";
(function(Context, resourcesUrl){Context.store=function(){let t;return{getStore:function(){return t},setStore:function(e){t=e},getState:function(){return t&&t.getState()},mapDispatchToProps:function(e,n){Object.keys(n).forEach(o=>{const c=n[o];Object.defineProperty(e,o,{g... |
"use strict";
const fs = require(`fs-extra`);
exports.onCreateNode = require(`./on-node-create`);
exports.setFieldsOnGraphQLNodeType = require(`./extend-node-type`);
exports.onPreExtractQueries = async ({
store,
getNodesByType
}) => {
const program = store.getState().program; // Check if there are any ImageSha... |
const { scrypt } = require("crypto");
const LocalStrategy = require("passport-local").Strategy;
const { SALT } = process.env;
const findUser = db => (username, password, done) => {
scrypt(password, SALT, 64, (err, derivedKey) => {
if (err) {
console.log("Failed to generate password", err);
return d... |
/*
* Copyright (c) 2011-2016 Pivotal Software Inc, 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
*
* Unles... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
import type {TRefFor} from '../types/TRefFor.flow';
import * as React from 'react';
import Form... |
export const Subscribed = () => {
return (
<section style={{ backgroundColor: "#f7fff7" }}>
<div className="container p-5">
<div className="row">
<div className="col-lg-6">
<img
src="/images/subscribed.svg"
style={{ maxHeight: "90%", maxWidth: "90%" ... |
import React from 'react'
import Link from 'gatsby-link'
const ProfileDescription = () => (
<div className="section section--profileDescription">
<div className="container">
<div className="section-title-container">
<h2 className="section-title">About me</h2>
</div>
<div className="sec... |
define([
'skylark-langx-binary/buffer',
"./files",
"./file-type"
],function (Buffer,files,FileType) {
'use strict';
/**
* Emulation of Node's `fs.Stats` object.
*
* Attribute descriptions are from `man 2 stat'
* @see http://nodejs.org/api/fs.html#fs_class_fs_stats
* @see ht... |
module.exports = require('./color_box/color_box'); |
var chartLikesForFanpageLikes = null;
var chartLikesPorMes = null;
var chartCalificaciones = null;
$(document).ready(function() {
loadDefaultDate();
initBotones();
initFansPerFanPage();
initFansLastMonth();
initCalificaciones();
configurarDaterange();
});
function initFansPerFanPage() {
Highcharts.setOptio... |
/**
* MIT License
*
* Copyright (c) 2016 Kim UNG
*
* 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 the rights
* to use, copy, modify,... |
import React from "react"
import ReactDOM from "react-dom"
import "./styles/index.scss"
import App from "./components/App"
ReactDOM.render(<App />, document.getElementById("root")) |
/**
* This service contains dictionaries to translate the different event types and the methods to create google maps, addresses, etc.
*/
app.factory('sharedService', [
'localStorageService',
'eventTypeService',
'userService',
'userEventService',
'travelService',
'addressService',
'eventService',
'loc... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.BikingIconConfig = void 0;
var _createIcon = _interopRequireDefault(require("../createIcon"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/* This file is... |
(function(ka,T){"object"===typeof exports&&"undefined"!==typeof module?module.exports=T():"function"===typeof define&&define.amd?define(T):ka.createREGL=T()})(this,function(){function ka(a,b){this.id=wb++;this.type=a;this.data=b}function T(a){if(0===a.length)return[];var b=a.charAt(0),c=a.charAt(a.length-1);if(1<a.leng... |
const Discord = require('discord.js');
const http = require('http');
const ping = require('node-http-ping');
const urlShortener = require('node-url-shortener');
module.exports = {
name: 'url',
description: 'Shorten any given URL using TinyURL.',
async execute(message, url, regex) {
if (!message.guild.me.hasPermis... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.WeekdayPropTypes = undefined;
exports.default = Weekday;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _PropTypes = require('./PropTypes');
var _PropTypes2 = _interopRequireDefault(_PropTypes);... |
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('workers', {
'id': {
type: DataTypes.CHAR(2),
allowNull: false,
defaultValue: '',
primaryKey: true,
comment: "null"
},
'nama': {
type: DataTypes.STRING(255),
allowNul... |
import { createDummyImageArray, getCurrentFromData } from './ImageUtils'
import { hasArtDirectionArray } from './MediaUtils'
import { combineArray, filteredJoin } from './SimpleUtils'
/**
* Compares the old states to the new and changes image settings accordingly.
*
* @param image string||array Base data for ... |
function SvgRoomTwoTone(props) {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
height='1em'
viewBox='0 0 24 24'
width='1em'
className='svg-icon'
{...props}>
<path d='M0 0h24v24H0V0z' fill='none' />
<path
d='M12 4C9.24 4 7 6.24 7 9c0 2.85 2.92 7.21 5 9.88 2.11-2.69 5-7 5-9.88 0-2.76-2.2... |
import { h } from 'vue'
export default {
name: "RemoteControlLine",
vendor: "Rx",
type: "",
tags: ["remote","control","line"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"rx-remote-control-line","in... |
const fs = require('fs')
jest.mock('fs')
const writeConfig = require('./write-config')
const templatesPath = 'templates'
const destinationPath = 'dist'
const copiedFiles = ['.gitmoji-changelogrc', 'license']
describe('write-config', () => {
afterEach(() => {
jest.clearAllMocks()
})
beforeEach(() => {
... |
$(document).ready(function() {
// body...
// var path = window.location.pathname;
// console.log(path);
// var id =333;// path.match("[0-9]+")[0];
// var img_list = $(".introduction_content img");
// for (var i = 0; i < img_list.length; i++) { //循环为每个img设置
// img_list[i].removeAttribute... |
import configureStore from "./configureStore";
export default configureStore(); |
var mongoose = require( 'mongoose' );
var crypto = require('crypto');
var jwt = require('jsonwebtoken');
var userSchema = new mongoose.Schema({
username: {
type: String,
unique: true,
required: true
},
hash: { type: String },
salt: { type: String }
});
userSchema.methods.setPa... |
//var config = require("json!./config.json");
var config = {
"apiToken": "Bearer a259334652744b8eb644b4de25a3e902",
"apiTokenVal": "a259334652744b8eb644b4de25a3e902",
clientAccessToken: "a259334652744b8eb644b4de25a3e902",
developerAccessToken: "01a69384a00e4a6c980912f7eff44ba8",
sessionID: "1234567... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchMetar } from '../actions/index'
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChange = this.onInput... |
module.exports = require('./appconfig'); |
// Copyright 2009 The Closure Library 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 requ... |
'use strict';
/* global describe, it, beforeEach */
/* eslint react/jsx-boolean-value: 0 */
// Copied from Async-test verbatim; may need to be reevaluated later.
var jsdomHelper = require('../testHelpers/jsdomHelper');
jsdomHelper();
var sinon = require('sinon');
var unexpected = require('unexpected');
var unexpectedD... |
define({
"id": "ID",
"state": "Ve výchozím nastavení se souřadnice zobrazí v souřadnicovém systému aktuální mapy. Chcete-li souřadnice zobrazovat v jiných souřadnicových systémech, je nutné je nastavit spolu s příslušnými transformacemi.",
"outputUnit": "Výstupní jednotka",
"wkid": "Výstupní WKID",
"label": "... |
//# sourceMappingURL=11.1906d1a9ef4302c25ba0.js.map |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/3.38/esri/copyright.txt for details.
//>>built
define("esri/dijit/analysis/nls/zh-tw/AggregateMultidimensionalRaster",{toolDefine:"\u532f\u805a\u591a\u7dad\u9ede\u9663",outputLayerName:"${layername}_aggregated"... |
/**
* DevExtreme (ui/scroll_view/ui.scroll_view.native.slide_down.js)
* Version: 16.2.1-16294
* Build date: Thu Oct 20 2016
*
* Copyright (c) 2012 - 2016 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
Nati... |
import React from 'react';
import PropTypes from 'prop-types';
import { gql } from '@apollo/client';
import { graphql } from '@apollo/client/react/hoc';
import { FormattedMessage } from 'react-intl';
import Error from '../Error';
import { getI18nLink, I18nSupportLink } from '../I18nFormatters';
import MessageBox from ... |
import React, { useState } from 'react';
const App = () => {
}; |
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// You can delete this file if you're not using it
import React from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import reducers from './src/reducer... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: magic;
// Author: @313ctr0nz on Github, @ms360 on twitter
// Designed to work with iOS widgets + Scriptable
// Donations welcome @ 0xE34b794D84922A21E2cb1F7f360A89Ff65DcC9e9
// ($ETH/$AVAX/$FTM/... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
View,
ViewPropTypes,
Text,
Image,
TouchableHighlight,
Button
} from 'react-native';
const cover = require('./__data__/colorado_landscape_4k-750x1334.jpg');
const styles = StyleSheet.create({
container: {... |
module.exports = function(app){
app.get('/noticia', function(req,res){
var connection = app.config.dbConnection();
var noticiasModel = new app.app.models.noticiasModel(connection);
noticiasModel.getNoticia(function(erro, result){
res.render('noticias/noticia', { noticia : resu... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | logo-link', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async function(assert) {... |
/**
* Copyright 2019 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://wwwapache.org/licenses/LICENSE-2.0
*
* Unless required... |
'use strict'
var tf = require("../../dist/ishiko-test-framework.js")
var SimpleTestClass1 = require("./SimpleTestClass1.js")
var MockTestClass1 = require("./MockTestClass1.js")
module.exports = function(theTestHarness) {
let testSequence = theTestHarness.appendTestSequence("Test tests")
new tf.FunctionBa... |
// ==UserScript==
// @name 浙江大学智云课堂小助手
// @description 对智云课堂页面的一些功能增强
// @namespace https://github.com/CoolSpring8/userscript
// @supportURL https://github.com/CoolSpring8/userscript/issues
// @version 0.5.4
// @author CoolSpring
// @license MIT
// @match *://livingroom.cmc.zju.edu.... |
import { stateToRemote } from './dimension';
import {
DIMENSION_TYPE,
DEFAULT_CODES_LIST_SELECTOR_PATH,
} from 'constants/pogues-constants';
const { PRIMARY, SECONDARY, MEASURE } = DIMENSION_TYPE;
describe('dimension tranformations', () => {
test('when the type is MEASURE without a LABEL', () => {
const resu... |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, 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... |
/// @file JSRootPainter.v7more.js
/// JavaScript ROOT v7 graphics for different classes
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ['JSRootPainter', 'd3'], factory );
} else if (typeof exports === 'object' && typeof module !== 'undefined') {
factory(require(".... |
var searchData=
[
['emitter_2769',['emitter',['../structentt_1_1emitter_1_1connection.html#a0f3bb10ad57dc0e06298fc9ba38a7bd9',1,'entt::emitter::connection']]]
]; |
((definition) => {
if (typeof define === "function" && define.amd) {
define([], definition);
}
})(() => {
let $scope;
let $routeParams;
let $templates;
let $status;
function factory(_$routeParams, _$templates, _$status) {
$routeParams = _$routeParams;
$templates = _... |
const express = require('express');
const app = express();
const port = 1500;
app.listen(port, () => console.log(`Bot running on http://localhost:${port}`)); |
/*global jQuery */
/*jshint multistr:true browser:true */
/*!
* FitVids 1.0
*
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sa... |
YUI.add("lang/datatype-date-format_sv-SE",function(e){e.Intl.add("datatype-date-format","sv-SE",{a:["s\u00f6n","m\u00e5n","tis","ons","tors","fre","l\u00f6r"],A:["s\u00f6ndag","m\u00e5ndag","tisdag","onsdag","torsdag","fredag","l\u00f6rdag"],b:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],B:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.