code stringlengths 2 1.05M |
|---|
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
app.factory("dataService", function ($http, $q) {
var token = sessionStorage.getItem('accessToken');
var _sediEnergia = [];
var _sediEnergiaLoaded = false;
var _includiSedeVoltura = function (idVoltura, idSede, includi, idTabCFG_Azienda) {
var deferred = $q.defer();
$http({
... |
import React from 'react'
import styled from 'styled-components'
import ui from '../layouts/theme'
import GatsbyImage from 'gatsby-image'
import Journal from '../components/Journal'
const Title = styled.h1`
color: ${ui.color.background};
`
const BackgroundImage = styled(GatsbyImage)`
position: absolute;
top: 0;
... |
'use strict';
/**
* practice Node.js project
*
* @author Ryan <roninby@yeah.net>
*/
import path from 'path';
import express from 'express';
import serveStatic from 'serve-static';
import bodyParser from 'body-parser';
import multipart from 'connect-multiparty';
import session from 'express-session';
import _RedisStor... |
'use strict';
// core modules
var http = require('http');
// external modules
var _ = require('lodash');
var assert = require('assert-plus');
// local globals
var INTERNAL_OPTS_KEYS = {
'code': true,
'restCode': true,
'statusCode': true,
'toJSON': true,
'toString': true
};
//-------------------... |
var vows = require('vows');
var optimizerContext = require('../test-helper').optimizerContext;
vows.describe('advanced optimizer')
.addBatch(
optimizerContext('all optimizations', {
'adjacent': [
'a{display:none}a{display:none;visibility:hidden}',
'a{display:none;visibility:hidden}'
]... |
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var User = new Schema({
first_name: {
type: String,
required:true
},
last_name: {
type: String,
required: true
},
email: {
type: String,
required: true,
lowercase: true
},
... |
import React from "react";
import ReactDOM from "react-dom";
import {mount} from "enzyme";
import { Provider } from "react-redux";
import { createStore } from "redux";
import chai from "chai";
import chaiEnzyme from "chai-enzyme";
import { expect as chaiExpect } from "chai"
chai.use(chaiEnzyme());
import { mapValues ... |
/**
* @module lib/launcher
*/
define(function(require) {
'use strict';
var JSMESS = require('./loader');
// Features.
var gamePad = require('./features/gamepad');
var mute = require('./features/mute');
// Utils.
var getRequest = require('./utils/get_request');
var parseQueryString = require('./util... |
/*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
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, modi... |
$(document).ready(function() {
$("#formSearch button").prop("disabled", true);
$("#formSearch button").css("transition", "0.5s all");
$("#player").keyup(function() {
if ($("#player").val().length <= 0) {
$("#tribe").prop("disabled", false);
}
else {
$("#tribe").prop("disabled", true);
}
checkSubmit(... |
/**
*
* Marker
*
*/
import React, { PropTypes } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
// import { FormattedMessage } from 'react-intl';
// import messages from './messages';
function Marker(props) {
return (
<span>
<RaisedButton label={props.text || 'test'} />
</span>
... |
import map from '../../../src/state/map/reducers';
import {GET_MAP_ID, SET_MAP_ID, GET_IS_EDITING, GET_OL3_MAP, SET_OL3_MAP, SAVE_MAP_SUCCESS, SAVE_MAP_ERROR, SET_USER_LOGGED_IN, SET_CHECK_LOGIN} from '../../../src/state/actiontypes';
describe('map', () => {
let defaultState;
beforeEach(function() {
defaultStat... |
import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const imageURL = video.snippet.thumbnails.default.url;
return (
<li onClick={ () => onVideoSelect(video) } className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img cl... |
/*
*handling post request
*/
parseForm = require('../modules/mortgageCalc');
weather = require('../modules/weather');
currency = require('../modules/currency');
var request = require('request');
var routes = require('../routes');
WE = require('../modules/parseJson');
var fs = require('fs');
exports.morData = functi... |
const sendJson = require('../../../../packages/api-pls-express-router/util/send-json');
describe('sendJson', function() {
beforeEach(() => {
this.res = {
send: stub()
};
});
describe('when passing in nothing', () => {
it('should call `res.send` with the right arguments', () => {
sendJson... |
/**
* Controllers
*/
var start = 0;
var totalScore = 0 ;
var scanInterval;
var truckInterval;
var RATING_RETURN;
var allImageArray=[1001,
1002,
1003,
1004,
1005,
1006,
1007,
1008,
1009,
100,
1010,
1011,
1012,
1013,
1014,
1015,
1016,
1017,
1018,
... |
import * as Chatbot from '../src/chatbot/chatbot-service';
import dialog from '../src/coaching-chatbot/dialog';
import * as Messenger from '../src/facebook-messenger/messenger-service';
import * as Sessions from '../src/util/sessions-service';
import * as sinon from 'sinon';
export function generate(discussions, state... |
/**
* @author GJS <1353990812@qq.com>
*
* GJS reserves all rights not expressly granted.
*
* The MIT License (MIT)
*
* Copyright (c) 2016 GJS
*
* 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
* ... |
/**
* Copyright Victor Berchet
*
* This file is part of VisuGps3
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
/**
* @fileoverview Decorates an IProj for google maps.
* @author Victor Berchet <victor@suumit.com>
*/
goog.p... |
{
String.prototype.startsWith.apply(null);
}
|
require("./modules/BarcodeScannerPage").create();
tabris.create("Drawer").append(tabris.create("PageSelector"));
tabris.ui.children("Page")[0].open();
|
version https://git-lfs.github.com/spec/v1
oid sha256:53bebd62154083f87bfb6129436b4665674e5662ee0179c440ff75cf6adf058c
size 12425
|
import { waitForEmails } from '/test/end-to-end/tests/_support/emails';
import { _ } from 'lodash';
module.exports = function() {
this.When(/^I send the email$/, function() {
server.execute((userEmail) => {
const emailActions = require('/imports/server/email-actions');
emailActions.sendPasswordReset... |
(function(){
//App.loop();
function connect(method, location, callback) {
var request = new XMLHttpRequest(),
response;
request.open(method, location, false);
request.send();
if (request.status === 200) {
response = request.responseText;
}
return {
respond: functio... |
'use strict';
const common = require('../common');
const assert = require('assert');
const spawn = require('child_process').spawn;
const expectedError = common.isWindows ? /\bENOTSUP\b/ : /\bEPERM\b/;
if (common.isWindows || process.getuid() !== 0) {
assert.throws(() => {
spawn('echo', ['fhqwhgads'], { uid: 0 })... |
"use strict";
require("dotenv").config();
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
const Emulator = require("../test-util/emulator");
const messenger_options = [{
name: "line",
options: {
line_channel_secret: process.env.LINE_CHANNEL_SECRET
}
}];
chai.use(... |
module.exports = function (app) {
var express = require('express'),
jwt = require('jsonwebtoken'),
config = require('./../../config'),
router = express.Router();
router.use(function (req, res, next) {
console.log('\n --- Server method: ' + req.method + ' ---\n');
next()... |
require('./proof')(3, prove)
function prove (async, okay) {
var strata = createStrata({ directory: tmp, leafSize: 3, branchSize: 3 })
async(function () {
serialize(__dirname + '/fixtures/leaf-remainder.before.json', tmp, async())
}, function () {
strata.open(async())
}, function () {
... |
import FS from "fs";
import Path from "path";
import _ from "lodash-fp";
import { split, fill } from "../helpers";
export const title = "Day 6: Probably a Fire Hazard";
export function createGrid(width, height, value = false) {
let rows = fill(value, Array(height));
const columns = () => fill(value, Array(wid... |
/*global expect*/
describe('to have an item satisfying assertion', function() {
it('requires a third argument', function() {
expect(
function() {
expect([1, 2, 3], 'to have an item satisfying');
},
'to throw',
'expected [ 1, 2, 3 ] to have an item satisfying\n' +
' The ass... |
'use strict';
var ENCODING = require('../Encoding');
require('../../ArrayExtensions');
var directoryNames = ['en', 'hu'];
var dirGlobPattern = '@(' + directoryNames.join('|') + ')';
var suffix = '.dict.txt';
// read through selected directories
var glob = require('glob');
var fs = require('fs');
var path = require('... |
//static properties are accessible only on the class, rather than its instance.
//Circle.pi instead of var a = new Cricle, a.pi
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === nul... |
import expect from 'expect'
import { ChatBotUtil } from 'src/'
describe('ChatBotUtil', () => {
it('Creates a text message', () => {
const callback = () => {}
expect(ChatBotUtil.textMessage('Hello')).toEqual({
content: {text: 'Hello'},
isInbound: false,
type: 'text',
actions: []
}... |
'use strict';
const isStandardSyntaxAtRule = require('../../utils/isStandardSyntaxAtRule');
const isStandardSyntaxRule = require('../../utils/isStandardSyntaxRule');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const styleSearch = require('style-search');
cons... |
var searchData=
[
['astaralgorithm',['AStarAlgorithm',['../d5/d12/classAStarAlgorithm.html',1,'']]]
];
|
const express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const logger = require('morgan');
const passport = require('passport');
const api = require('./routes/api.router');
const User = require('./auth/schema');
const databaseInit = require('./js/databaseInit'... |
/**
* isAuthenticated
* @description :: Policy that inject user in `req` via JSON Web Token
*/
import passport from 'passport';
export default function (req, res, next) {
passport.authenticate('jwt', (error, user, info) => {
if (error || !user) return res.negotiate(Object.assign(error || {}, info));
req... |
var VERSION = require('./constants').VERSION
function StatusUpdater (socket, titleElement, bannerElement, browsersElement) {
function updateBrowsersInfo (browsers) {
if (!browsersElement) {
return
}
var status
// clear browsersElement
while (browsersElement.firstChild) {
browsersElem... |
var Drawables = BaseRealtimeCollection.extend({
backend: 'drawables',
model: Drawable
});
|
jest.mock('src/lib/gql');
jest.mock('src/lib/ga');
import askingReplyFeedback from '../askingReplyFeedback';
import * as apiResult from '../__fixtures__/askingReplyFeedback';
import gql from 'src/lib/gql';
import ga from 'src/lib/ga';
import { UPVOTE_PREFIX, DOWNVOTE_PREFIX } from 'src/lib/sharedUtils';
beforeEach(()... |
'use strict'
var webpack = require('webpack')
var path = require('path')
var NODE_ENV = process.env.NODE_ENV || 'development'
module.exports = {
entry: {
app: './examples/app.js'
},
output: {
path: path.join(__dirname, './dist'),
filename: 'build.js'
},
watch: NODE_ENV === 'development',
watc... |
Ext.provide('Phlexible.elements.MediaResourceTemplate');
Ext.provide('Phlexible.elements.MainPanel');
Ext.require('Phlexible.elements.ElementsTree');
Ext.require('Phlexible.teasers.ElementLayoutTree');
Ext.require('Phlexible.elements.ElementPanel');
Ext.require('Phlexible.elements.tab.List');
Ext.require('Phlexible.el... |
$(document).ready(function(){
$('#frontpage').fadeIn('slow');
$('#frontpage-info').click(function(){
$('#frontpage-info-box').fadeIn('slow');
return false;
});
$('#frontpage-info-box').click(function(){
$(this).fadeOut('slow');
return false;
});
$('#frontpage-gotoapp').click(function(){
$('#frontp... |
import { mapGetters } from 'vuex'
import { I18N } from "../../utils/i18n"
const i18n = (messages, namespace='i18n.namespace' + Date.now()) => ({
computed: mapGetters([ 'lang' ]),
created() {
I18N.load(messages, this.lang, namespace)
},
methods: {
i18n(key, ns=namespace, vars={}) {
... |
const middlewares = {
'path': './application/middlewares',
'enabled': {
'environment': true,
'log': true,
'response-time': true,
'revision': true,
'etags': true,
'jsonerror': true,
'basicauth': {
'enabled': false,
'credentials': {
'name': process.env.BOILERPLATE_SERVER_BASIC_AUTH_LOGIN || proc... |
const SanjiWindowComponent = {
transclude: true,
bindings: {
windowId: '@',
windowName: '@',
showLoadingBtn: '@'
},
templateUrl: 'sanji-window.tpl.html',
controller: 'SanjiWindowController',
controllerAs: 'vm'
};
export default SanjiWindowComponent;
|
smalltalk.addPackage('Compiler-AST');
smalltalk.addClass('Node', smalltalk.Object, ['parent', 'position', 'nodes', 'shouldBeInlined', 'shouldBeAliased'], 'Compiler-AST');
smalltalk.addMethod(
smalltalk.method({
selector: "accept:",
fn: function (aVisitor){
var self=this;
return smalltalk.withContext(function($ctx1) {
... |
import chai, { expect } from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import Promise from 'bluebird';
chai.use(sinonChai);
import Audits from '../src/audits';
describe('Audits', () => {
describe('#findAll', () => {
const audits = ['1', '2', '3'];
const get = sinon.stub().retur... |
export default (aeroflow, execute, expect) => describe('aeroflow().replay', () => {
it('Is instance method', () =>
execute(
context => aeroflow.empty.replay,
context => expect(context.result).to.be.a('function')));
describe('aeroflow().replay()', () => {
it('Returns instance of Aeroflow', () =>... |
exports.info = { FormatID: '1116',
FormatName: 'ASPRS Lidar Data Exchange Format',
FormatVersion: '1.1',
FormatAliases: '',
FormatFamilies: '',
FormatTypes: 'GIS, Image (Raster)',
FormatDisclosure: 'Full',
FormatDescription: 'The Lidar Data Exchange Format is a binary file format for the interchange of LI... |
const path = require('path');
const colors = require('colors');
const fs = require('fs-extra');
const klawSync = require('klaw-sync');
const readline = require('readline');
const { once } = require('events');
const insertLine = require('insert-line');
const BaseCommand = require('./base');
module.exports = class Comma... |
// Generated on 2015-06-18 using generator-angular-fullstack 2.0.13
'use strict';
module.exports = function (grunt) {
var localConfig;
try {
localConfig = require('./server/config/local.env');
} catch(e) {
localConfig = {};
}
// Load grunt tasks automatically, when needed
require('jit-grunt')(grun... |
'use strict';
angular.module('jhipsterApp')
.controller('LanguageController', function ($scope, $translate, Language, tmhDynamicLocale) {
$scope.changeLanguage = function (languageKey) {
$translate.use(languageKey);
tmhDynamicLocale.set(languageKey);
};
Language.get... |
/*--------------------------------------------------------------------------
*
* Key Oriented JSON Application Cache (KOJAC)
* (c) 2011-12 Buzzware Solutions
* https://github.com/buzzware/KOJAC
*
* KOJAC is freely distributable under the terms of an MIT-style license.
*
*---------------------------------------... |
'use strict';
var _ = require('underscore'),
http = require('http'),
querystring = require('querystring'),
url = require('url'),
Command = require('./command'),
NameMap = require('./name-map');
var App, PayloadError;
App = function(config) {
if (!(this instanceof App)) {
return new App(config);
}
... |
angular.module('RESTAPIDemo', []);
angular.module('RESTAPIDemo').controller('RESTAPIDemoController', function ($scope, $http) {
$scope.token;
$scope.requestToken = function () {
//var url = "/auth/getauthtoken";
var url = "/api/1.0/tokenauth";
var data = {
username: "ben",
... |
// bad
[1, 2, 3].map(function (x) {
return x * x;
});
// good
[1, 2, 3].map((x) => {
return x * x;
});
// good
[1, 2, 3].map(x => x * x);
// good
[1, 2, 3].reduce((total, n) => {
return total + n;
}, 0);
|
/** Nub frame functionality tests cases. */
(function($) {
module('Nub: menu');
function resetFrameElement(){
$('#dynamic-menu-frame').replaceWith('<div id="dynamic-menu-frame">Frame:</div>');
}
// Test Dynamic Menu with a set of pre-configured values.
test('DynamicMenuConfiguration', func... |
import React from "react";
import ReactDOM from "react-dom";
import hljsThemes from "../../src/hljs-themes.json";
import { THEMES, PRETTY_THEME_NAMES_MAP } from '../constants';
export default class ThemeList extends React.Component {
constructor() {
super(...arguments);
this.state = {
searchVa... |
import { VERSION, LEG_CAVE, LEG_SPLAY, LEG_DUPLICATE, LEG_SURFACE } from '../core/constants';
import { Page } from './Page';
class InfoPage extends Page {
constructor ( frame, viewer, fileSelector ) {
super( 'icon_info', 'info' );
frame.addPage( this );
this.addHeader( 'header' );
this.addHeader( 'stats.... |
require('babel-register');
//projection transformation
const proj4 = require('proj4');
proj4.defs('EPSG:25832', "+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs");
const targetProjection = 'EPSG:4326';
const rp = require('request-promise-native');
const deepmerge = require('deepmerge');
const promisify = require("e... |
import React from 'react'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
import FrontPagePosts from 'components/FrontPagePosts'
export default class Index extends React.Component {
render () {
return (
<DocumentTitle title={config.siteTitle}>
<FrontPagePosts pages... |
// // JavaScript Olympics
// // I paired with Tyler Doershuck on this challenge.
// // This challenge took me [#] hours.
// // Warm Up
// /* PC
// function that takes an array
// create an array
// function that takes the array an argument
// iterate through array to add 'win' property
// create a function
// ... |
module.exports = {
plugins: [
require('postcss-salad')({
browsers: ['ie > 6', 'last 2 versions'],
features: {
autoprefixer: {
remove: false,
},
},
}),
],
};
|
"use strict";
var yaml = require('js-yaml');
exports.jsNull = null;
exports.objToHash = function(valueToYAMLImpl, fst, snd, obj) {
var hash = {};
for(var i = 0; i < obj.length; i++) {
hash[fst(obj[i])] = valueToYAMLImpl(snd(obj[i]));
}
return hash;
};
exports.toYAMLImpl = function(a) {
// noCompatMode ... |
var MATRIX_SIZE = 10;
var VERTICAL = 0, HORIZONTAL = 1;
var SHIP_SIZES = [4, 3, 3, 2, 2, 2, 1, 1, 1, 1];
var WEST = new Direction(-1), EAST = new Direction(1), NORTH = new Direction(-1), SOUTH = new Direction(1);
var CELL_EMPTY = 0, CELL_WITH_SHIP = 1, CELL_BLOCKED = 2, CELL_MISSED = 3, CELL_SHIP_DESTROYED = 4;
var CEL... |
(function() {
"use strict";
angular.module('angular-carousel-extended')
.service('DeviceCapabilities', function() {
// TODO: merge in a single function
// detect supported CSS property
function detectTransformProperty() {
var transformProperty = 'transform',
... |
version https://git-lfs.github.com/spec/v1
oid sha256:cd18d49d69c767a2b47648d5e1692ba4d74811f9f13d7d18f0f1b93d2a04dce7
size 28296
|
import { Field, Formik } from 'formik'
import React, { Component } from 'react'
import {
Button,
ButtonToolbar,
ControlLabel,
FormControl,
FormGroup,
HelpBlock,
Label,
ToggleButton,
ToggleButtonGroup
} from 'react-bootstrap'
import { FormattedMessage, injectIntl } from 'react-intl'
import { formatPhon... |
import Users from 'meteor/nova:users';
import { Utils } from 'meteor/nova:core';
Users.isSubscribedTo = (user, document) => {
if (!user || !document) {
// should return an error
return false;
}
const { __typename, _id: itemId } = document;
const documentType = Utils.capitalize(Utils.getCollectionNa... |
import Manage from '../components/Question/Manage';
const manageRoute = store => ({
path: 'manage',
component: Manage,
onEnter() {
const account_id = store.getState().auth.key
store.dispatch({
type: 'topic/list',
payload: {
params: {
... |
/*eslint no-console:0 */
'use strict';
require('core-js/fn/object/assign');
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.config');
const open = require('open');
/**
* Flag indicating whether webpack compiled for the first time.
* @type ... |
// load the things we need
var mongoose = require('mongoose');
// os: { name: 'Windows NT', version: '10.0', arch: 'x86_64' },
// project: { name: 'FastoNoSQL', version: '1.16.2.0', arch: 'x86_64', owner: '123', exec_count: 187 }
var AnonProjectSchema = mongoose.Schema({
name: String,
version: String,
ar... |
var http = require('http');
var _ = require('lodash');
var moment = require('moment');
module.exports = function(app, nodesDb, params) {
// create todo and send back all todos after creation
app.get('/node/rgb', function(req, res) {
console.log("GET :: /energymeter actual data");
console.log(params.server_ip);
... |
angular.module('app.states.index', [
'ui.router',
'app.states.login',
'app.states.search'
])
.config([
'$stateProvider',
'$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('index', {
abstract: true,
url: '',
views: {
header: {
... |
const errors = require("../errors");
const utils = require("../utils");
class AclLegacy {
constructor(consul) {
this.consul = consul;
}
/**
* Creates a new token with policy
*/
async create(opts) {
opts = utils.normalizeKeys(opts);
opts = utils.defaults(opts, this.consul._defaults);
con... |
/**
* jTemplates 0.8.4 (http://jtemplates.tpython.com)
* Copyright (c) 2007-2013 Tomasz Gloc (http://www.tpython.com)
*
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and/or GPL (GPL-LICENSE.txt) licenses.
*
* Id: $Id: jquery-jtemplates_uncompressed.js 203 2013-02-03 13:28:34Z tom $
*/
/**
* @... |
"use strict";
window.sys_func = {
setLoader: function(aElement, aIsLoading) {
aIsLoading
? aElement.addClass('sys_disabled')
: aElement.removeClass('sys_disabled');
},
isLoading: function(aElement) {
return aElement.hasClass('sys_disabled');
},
submitAndSend: f... |
(function() {
var Widlib, ecstatic, http, server, wls;
http = require('http');
Widlib = require('../../js/widlib');
ecstatic = require('ecstatic')(__dirname + '/');
server = http.createServer(ecstatic);
server.listen(3000);
wls = new Widlib.Server({
pages: {
first: {
body: '<div id... |
var cards;
var points = 0;
var playerCount = 0;
function Player(cards) {
this.cards = cards;
this.points = points;
this.berechneValue = function() {
if(this.cards[0].name == "ASS" && this.cards[1].name == "ASS" && this.cards[2].name == "ASS") {
this.points = 33;
} else if(this.cards[0].name =... |
import PerformanceBarApp from '~/performance_bar/components/performance_bar_app.vue';
import PerformanceBarStore from '~/performance_bar/stores/performance_bar_store';
import { shallowMount } from '@vue/test-utils';
describe('performance bar app', () => {
const store = new PerformanceBarStore();
const wrapper = sh... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Apigee Corporation
*
* 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
* t... |
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
export const styles = {
/* Styles applied to the root element. */
root: {
width: '100%',
overflowX: 'auto',
},
};
const TableContainer = React.forwardRef(function T... |
/* test-code */
"Bad Language";
/* end-test-code */
"Good Language"; |
var group__CMSIS__DACR__Dn =
[
[ "DACR_Dn_CLIENT", "group__CMSIS__DACR__Dn.html#gac76e6128758cd64a9fa92487ec49441b", null ],
[ "DACR_Dn_MANAGER", "group__CMSIS__DACR__Dn.html#gabbf27724d67055138bf7abdb651e9732", null ],
[ "DACR_Dn_NOACCESS", "group__CMSIS__DACR__Dn.html#ga281ebf97decb4ef4f7b1e5c4285c45a... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Famous Industries Inc.
*
* 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... |
import React from 'react';
import Header from 'js/components/elements/Header';
import List from '../elements/List';
class Home extends React.Component {
constructor(props) {
super(props);
}
render(){
return (
<div>
<Header user={this.props.user || {} } />
<div className="container... |
describe("sc.lang.compiler.Parser", function() {
"use strict";
var Syntax = sc.lang.compiler.Syntax;
var Token = sc.lang.compiler.Token;
var Message = sc.lang.compiler.Message;
var strlib = sc.libs.strlib;
describe("parseAssignmentExpression", function() {
sc.test.compile(this.title).each({
"a =... |
(function() {
'use strict';
angular
.module('webApp')
.directive('blurOnEnter', blurOnEnter);
function blurOnEnter() {
return function(scope, elem, attrs) {
elem.bind('keydown keypress', function(e) {
if (e.which === 13) {
e.preventDefault();
elem.blur()... |
export default function distance(x1, y1, x2, y2) {
const dx = x1 - x2;
const dy = y1 - y2;
return Math.sqrt(dx * dx + dy * dy);
}
|
var assert = require('assert');
var helper = require('./helper');
describe('robot', function() {
before(function() {
return helper.ready;
});
after(function() {
helper.reset();
});
it('should have correct number of listeners', function() {
assert.equal(4, helper.listeners.text.length);
asse... |
var morgan = require('morgan'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
path = require('path'),
express = require('express'),
public = path.join(__dirname + '../public/')
module.exports = function(options) {
var app = options.app;
app.use(expr... |
/* eslint-env mocha */
const {expect} = require('chai')
const React = require('react')
const Search = require('../js/Search')
const ShowCard = require('../js/ShowCard')
const {shallow, mount} = require('enzyme')
const {shows} = require('../public/data')
const {rootReducer} = require('../js/store')
xdescribe('First Te... |
// All symbols in the `SignWriting` script as per Unicode v8.0.0:
[
'\uD836\uDC00',
'\uD836\uDC01',
'\uD836\uDC02',
'\uD836\uDC03',
'\uD836\uDC04',
'\uD836\uDC05',
'\uD836\uDC06',
'\uD836\uDC07',
'\uD836\uDC08',
'\uD836\uDC09',
'\uD836\uDC0A',
'\uD836\uDC0B',
'\uD836\uDC0C',
'\uD836\uDC0D',
'\uD836\uDC0E... |
if (a) { // Some comment
b(); } |
var testData = {
videoSrc: "http://www.youtube.com/watch/?v=nfGV32RNkhw",
expectedDuration: 151,
createMedia: function( id ) {
return Popcorn.HTMLYouTubeVideoElement( id );
},
// We need to test YouTube's URL params, which not all
// wrappers mimic. Do it as a set of tests specific
// to YouTube.... |
const path = require('path');
const apiSpecAliases = require('../lib/apiSpecExportTools').coreAliases();
const babelConfig = require('../.babelrc.js');
const moduleNameMapper = {
'^testUtils$': path.resolve(__dirname, './testUtils'),
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|og... |
angular
.module('climAngularApp', []);
angular
.module('climAngularApp')
.controller("ClimAngularCtrl", ClimAngularCtrl);
// La función controladora se crea con nombre de maner independiente
// En lugar de programarla inline dentro del constructor del controlador
function ClimAngularCtrl($http) {
// E... |
import Route from '@ember/routing/route';
export default Route.extend({
model() {
return this.store.createRecord('fake-model');
}
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.