code stringlengths 2 1.05M |
|---|
import filter from "filter-object"
import { createToken, decryptToken } from "../utils/jwt.js"
import { handleError, NotFoundError, AlreadyExistingAccount, UndefinedPassword, ValidationError } from "../utils/errors.js"
import { profilePhotoPath } from "../constants/profilePictures"
import mailer from "../utils/mailer.... |
App.Question4View = App.BaseView.extend({
// Automatically inherits animations
}); |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/maybe ../core/accessorSupport/decorators ./Symbol3DLayer ./... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import * as rocketActions from '../actions/rocketActions';
import RocketList from '../components/RocketList';
class App extends React.Component {
componentWillMount() {
this.props.fetchRockets();
}
render(){
const { rocke... |
import React, { Component } from 'react';
import { View, Text, SectionList } from 'react-native';
export default class SectionListComponent extends Component {
render() {
let sectionData = [
{
key: 'A',
title: 'A',
data: [{ key: 'Alexander' }, { key: 'Alan Turing' }]
},
... |
/* globals SIP,user,moment, Stopwatch */
var ctxSip;
$(document).ready(function() {
if (typeof(user) === 'undefined') {
user = JSON.parse(localStorage.getItem('SIPCreds'));
}
ctxSip = {
config : {
password : user.Pass,
displayName : user.Display,
... |
import React from 'react';
import AppState from '/imports/api/appState';
import Colors from '/imports/api/colors';
import Sizes from '/imports/api/sizes';
import PathSimplifier from '/imports/api/pathSimplifier';
import StickyNotes from '/imports/api/stickyNotes';
import Drawing from '/imports/ui/app/components/notes/... |
import React from "react"
import Slider from "rc-slider"
import ReactTooltip from "react-tooltip"
export default class extends React.PureComponent {
static defaultProps = {
defaultValue: 50,
name: "testName",
marks: {
0: "",
50: "",
100: ""
},
... |
"use strict";
module.exports = function(end, duration, callback) {
var start = window.performance && window.performance.now && window.performance.now();
var begin = window.pageYOffset;
var scrollX = window.pageXOffset;
var raf = window.requestAnimationFrame;
var delta = end - begin;
switch (!!ra... |
import React, {PropTypes} from 'react';
import EventListener from 'react-event-listener';
import bowser from 'bowser';
import KeyCode from 'key-code';
import Api from './Api';
const snapLinesStyle = {pointerEvents: 'none'};
export default class Canvas extends React.Component {
static propTypes = {
api: PropTyp... |
import * as React from 'react';
import TextField from '@material-ui/core/TextField';
import AdapterDateFns from '@material-ui/lab/AdapterDateFns';
import Stack from '@material-ui/core/Stack';
import LocalizationProvider from '@material-ui/lab/LocalizationProvider';
import TimePicker from '@material-ui/lab/TimePicker';
... |
/* @flow */
import path from "path";
type TPathJoin = (...p: string[]) => string;
const pathJoin: TPathJoin = (...paths) =>
path.join(...paths).replace("/", path.sep);
module.exports = pathJoin;
|
class UserService {
constructor(resource) {
this._resource = resource('api/user{/id}')
}
list() {
return this._resource
.query()
.then(res => res.json())
}
save(user) {
return this._resource
.save(user)
}
update(id, user) {
... |
import './search.pcss';
import $ from 'jquery';
export default (selector) => {
$(selector).on('submit', e => {
e.preventDefault();
const packageName = e.target.package.value.trim();
if (packageName) {
window.location = `/search/${packageName}`;
}
});
};
|
var yo = require('yo-yo');
var landing = require('../landing');
var signinForm = yo`<div class="col s12 m7">
<div class="row">
<div class="signup-box">
<h1 class="platzigram">Platzigram</h1>
<form class="signup-form">
<div class="section">
<a class="btn btn-fb hide-on-small-only">In... |
'use strict';
angular.module('myApp.landing', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/landing', {
templateUrl: 'landing/landing.html',
controller: 'LandingCtrl'
});
}])
.controller('LandingCtrl', ['$scope', 'Restangular', function($scope, Restangular) {
... |
(function () {
'use strict';
angular
.module('expenses')
.controller('ExpensesListController', ExpensesListController);
ExpensesListController.$inject = ['ExpensesService'];
function ExpensesListController(ExpensesService) {
var vm = this;
vm.expenses = ExpensesService.query();
}
}());
|
import EmberRouter from '@ember/routing/router';
import config from 'dummy/config/environment';
export default class Router extends EmberRouter {
location = config.locationType;
rootURL = config.rootURL;
}
Router.map(function () {
this.route('transition-to', function () {
this.route('list');
});
this.ro... |
module.exports = function (source) {
return this.safeString(source).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
};
|
/*
* Author: Alexandre Havrileck (Oxyno-zeta)
* Date: 06/06/16
* Licence: See Readme
*/
(function () {
'use strict';
angular
.module('libparsio.views.header', []);
})();
|
version https://git-lfs.github.com/spec/v1
oid sha256:9c126cdc1c463b60783b0d7a4fcd973d27b313882d4ad818e3516db1faa9533f
size 127572
|
/**
* Utils for generating the stuff to be appended to the last part of the
* page.
*/
(function(){
'use strict';
var genSocketScript = function (serverUri) {
var script =
'<script src="http://cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js"></script>' +
'<s... |
'use strict';
/**
* Created by CLI on 01-05-2015.
*/
exports.addWhoFields= function(model,user){
if(!(model.createdBy)){
model.createdBy=user.id;
model.createdDate=new Date();
}
model.lastUpdatedBy=user.id;
model.lastUpdatedDate=new Date();
};
|
const assert = require('chai').assert;
const common = require('./common');
const app = common.app;
const FBUser = require('../models/fb-user');
const Project = require('../models/project');
const Place = require('../models/place');
const Suggestion = require('../models/suggestion');
// TODO: remember lastPlace
descr... |
import React, { Component } from 'react';
import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap';
class Telemetry extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = { isOpen: false };
}
toggle() {
this.setState({ isOpen... |
function findMax(arr) {
var max = arr[0];
for (var i = 1; i < arr.length; ++i) {
if (arr[i] > max) {
max = arr[i];
}
}
return max;
} |
import {test} from 'tape';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Disabled from '../../../src/components/icons/status/Disabled';
import CSSClassnames from '../../../src/utils/CSSClassnames';
const STATUS_ICON = CSSClassnames.STATUS_ICON;
test('loads a disabled icon', (t) =... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
angular.module('myApp.filters', []);
angular.module('myApp.filters').filter('reverse', function () {
return function (input) {
return input.split('').reverse().join('');
};
}); |
const express = require('express');
const router = express.Router();
const ngoStory = require('../../controller/ngo.controller/ngoStoryController');
router
.route('/post')
.post(ngoStory.postStory);
router.route('/:storyId')
.patch(ngoStory.updateStory)
.delete(ngoStory.deleteStory);
module.... |
'use strict';
const TokendClient = require('./tokend-client');
const Immutable = require('immutable');
const isPlainObject = require('lodash.isplainobject');
const crypto = require('crypto');
/**
* Walk a properties object looking for transformable values
*
* @param {Object} properties an object to search for tra... |
const sinon = require('sinon')
const React = require('react')
const Enzyme = require('enzyme')
const {assert} = require('chai')
const {shallow} = require('enzyme')
const Adapter = require('enzyme-adapter-react-16')
const {EditorResourcePure} = require('../../src/components/EditorResource')
Enzyme.configure({adapter: ne... |
// Karma configuration
// Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/... |
var diceSelectionViewModel = function() {
var self = this;
self.AbilityDiceCount = ko.observable(0);
self.ProficiencyDiceCount = ko.observable(0);
self.BoostDiceCount = ko.observable(0);
self.DifficultyDiceCount = ko.observable(0);
self.ChallengeDiceCount = ko.observable(0);
self.SetbackDice... |
module.exports = Vue.extend({
mixins: [
require('../lib/package')
],
data: function () {
return _.extend(window.$data, {
package: {},
view: false,
updates: null,
search: '',
status: ''
})
},
ready: function () {
... |
'use strict'
Object.defineProperty(exports, '__esModule', { value: true })
function _interopDefault (ex) {
return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex
}
var he = _interopDefault(require('he'))
/* */
var emptyObject = Object.freeze({})
// these helpers produces better vm c... |
angular.module('application', ['ui.scroll'])
.factory('Server', function($timeout, $q) {
return {
default: {
first: 0,
max: 99,
delay: 100
},
data: [],
init: function(settings = {}) {
this.first = settings.hasOwnProperty('first') ? settings... |
import "day";
import "dayofweekcount";
import "dayofweek";
import "dayofyear";
import "hour";
import "minute";
import "month";
import "second";
import "time";
import "weekofmonth";
import "weekofyear";
import "year";
import "fulldate"; |
function Collection(collection, specs) {
"use strict";
if (typeof specs !== 'object' || typeof specs.factory !== 'string' || !specs.server) {
console.log('collection specs:', specs);
throw new Error('Invalid collection specification');
}
var base = new ModelBase(collection);
base.p... |
'use strict';
/**
* A functionality context for operating within Angular.
* @param $http the Angular HTTP service
* @param $timeout the Angular timeout service
* @param $q the Angular promises service
* @constructor
*/
function Context($http, $timeout, $q) {
/**
* Performs an HTTP request.
* @param method t... |
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var paths = {
scripts: './app/**/*.js',
styles: './app/styles/template.sass',
stylesWatch: './app/styles/**/*',
adminStyles: './app/styles/admin.sass',
images: './app/images/**/*',
index: './app/index.html',
... |
/**
* Created by sheldon on 2016/5/30.
*/
define(function (require, exports, module) {
module.exports = function (app) {
app.register.controller('TreasureNewCtrl', ['$scope',
function ($scope) {
console.log('new');
}])
}
});
|
// All code points with the `Other_Uppercase` property as per Unicode v6.1.0:
[
0x2160,
0x2161,
0x2162,
0x2163,
0x2164,
0x2165,
0x2166,
0x2167,
0x2168,
0x2169,
0x216A,
0x216B,
0x216C,
0x216D,
0x216E,
0x216F,
0x24B6,
0x24B7,
0x24B8,
0x24B9,
0x24BA,
0x24BB,
0x24BC,
0x24BD,
0x24BE,
0x24BF,
0x24C... |
// All symbols in the Supplemental Punctuation block as per Unicode v6.3.0:
[
'\u2E00',
'\u2E01',
'\u2E02',
'\u2E03',
'\u2E04',
'\u2E05',
'\u2E06',
'\u2E07',
'\u2E08',
'\u2E09',
'\u2E0A',
'\u2E0B',
'\u2E0C',
'\u2E0D',
'\u2E0E',
'\u2E0F',
'\u2E10',
'\u2E11',
'\u2E12',
'\u2E13',
'\u2E14',
'\u2E15',
... |
const holes = document.querySelectorAll('.hole');
const scoreBoard = document.querySelector('.score');
const moles = document.querySelectorAll('.mole');
let lastHole;
let timeUp = false;
let score = 0;
function randomTime(min, max) {
return Math.round(Math.random() * (max - min) + min);
}
function rand... |
import React from "react";
import PropTypes from "prop-types";
export default class StateHolder extends React.Component {
state = {};
render() {
return this.props.onRender({
state: this.state,
setState: this.setState.bind(this)
});
}
}
StateHolder.propTypes = {
onRender: PropTypes.func.is... |
#!/usr/bin/env node
const ps = require('process')
const process = require('./commandLineProcessor')
const errors = process(ps.argv[2], ps.argv.slice(3))
if (errors.length > 0) {
console.error(`Done with ${errors.length} error${errors.length === 1 ? '' : 's'}.`)
ps.exit(1)
} |
// <nowiki>
(function() {
var msgprefix = 'gadget-TranslateVariants-';
var messages = {
'translate-btn': '轉換變體',
'translate-doing': '正在從 $1 轉換至 $2', // fromlang, tolang
'translate-done': '從 $1 轉換至 $2 已完成', // fromlang, tolang
'translate-error': '發生錯誤:$1', // error
'summary': '從[[$1/$2|/$2]]進行轉換', // basepag... |
module.exports = {
name: "scale",
ns: "canvas",
async: true,
title: "Scale",
description: "Scale",
phrases: {
active: "Scaling"
},
ports: {
input: {
context: {
title: "Context",
type: "CanvasRenderingContext2D",
required: true
},
"in": {
title: "... |
var vkDataViews = {};
module.exports = vkDataViews;
vkDataViews.Abstract = require('../abstract');
vkDataViews.Bookmarks = require('./lib/bookmarks');
vkDataViews.Friend = require('./lib/friend');
vkDataViews.Friends = require('./lib/friends');
vkDataViews.Group = require('./lib/group');
vkDataViews.Groups = requir... |
angular.module('app').controller('classes', [ '$scope', function($scope) {
$scope.technologies = [ 'jQuery', 'AngularJS' ];
} ]);
|
// !LOCNS:galactic_war
define(['shared/gw_common'], function (GW) {
return {
visible: function(params) { return true; },
describe: function(params) {
return '!LOC:Bot Armor Tech increases health of all bots by 50%';
},
summarize: function(params) {
return '!L... |
module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/navigation/cancel": require('material-ui/svg-icons/navigation/cancel')
}
},
name: "NavigationCancel",
ports: {
input: {},
output: {
component: {
... |
// integrate socket
import socketIO from 'socket.io';
const socketThings = (server) => {
// connect socket to the server
const appSocket = socketIO(server);
appSocket.on('connection', (socket) => {
// respond to document update
socket.on('documentUpdate', (documentID) => {
socket.emit('ReloadDocum... |
define(["require", "exports", "../_.contribution"], function (require, exports, __contribution_1) {
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.tx... |
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {withRouter} from 'react-router'
import Drawer from 'material-ui/Drawer';
import Paper from 'material-ui/Paper';
import HomeIcon from 'material-ui/svg-icons/action/home';
import { SIDEBAR_ACTUAL_STATE } from './../../constants/reducers/... |
export { default } from 'ember-flexberry-gis/map-tools/measure-coordinates';
|
'use strict';
// simulant library needs polyfills for IE8
require('./util/polyfill');
/* eslint-disable vars-on-top */
var simulant = require('simulant');
var snippet = require('tui-code-snippet');
var placeholder = require('../src/js/placeholder');
var util = require('../src/js/util');
var browser = snippet.browse... |
'use strict';
import React from 'react';
import { Link } from 'react-router';
/*
* Component to display of the page doesn't exists
*/
export default class NotFoundPage extends React.Component {
render() {
return (
<div className="not-found">
<h1>404</h1>
<h2>Page not found!</h2>
... |
// @flow
import fetch from 'isomorphic-fetch';
function checkStatus(response: FetchErrorResponse): FetchErrorResponse {
if (response.status >= 200 && response.status < 300) {
return response;
} else {
const error: FetchError = new Error(response.statusText);
error.response = response;
throw error;
... |
module.exports={
get:function(id, device, callback)
{
var command=id;
var socket=$('net').createConnection({port:8102, allowHalfOpen:true, host:device}, function(){ console.log('connected'); });
var responseSent=false;
var commandSent=false;
var firstRReceived=false;
... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "docusign"); |
const fs = require('fs')
const cat = require('../')
const streams = []
function fnStream () {
return fs.createReadStream(__filename)
}
for (let i = 0; i < 1000; i++) {
streams.push(fnStream)
}
cat(streams).pipe(process.stdout)
/* run with:
* node thousand.js | egrep "^let fs" | wc -l
* #> 1000
*/
|
define([
'require',
'../inheritance',
'../component',
'../event',
'../view',
'../async',
'../component.interaction',
'preload|../loader.css',
'!scrollpanel.css'
//todo:
/*
Implement scrollTo call to bring scrolled items into view
*/
],function(require,inheritance,component,event,view,async,interaction)... |
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
console.log('second js file')
|
(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash... |
/// <reference path="angular.js" />
/// <reference path="jquery-1.10.2.intellisense.js" />
/// <reference path="ngDraggable.js" />
angular.module('GameApp',[]).
controller('MainCtrl', function ($scope) {
$scope.GamesList = [];
var gameList = $.getJSON("/Home/GameList").suc... |
'use strict';
var mongoose = require('mongoose'),
passport = require('passport'),
Admin;
Admin = mongoose.model('Admin');
exports.signUp = function (req, res, next) {
Admin.find({}).exec(function (err, collection) {
if(collection.length === 0) {
var admin = new Admin();
a... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9 19l1.41-1.41L5.83 13H22v-2H5.83l4.59-4.59L9 5l-7 7 7 7z" />
, 'WestOutlined');
|
var standardGeometry = new THREE.PlaneGeometry(1, 1, 1, 1);
function CameraDisplayObject3D(options) {
var _width = options.width || window.innerWidth;
var _height = options.height || window.innerHeight;
var _resolutionWidth = options.resolutionWidth || 100;
var _resolutionHeight = options.resolutionHeight || 100;
... |
/*
*
*
*
* AirCold JS UI Library v1.0
* https://aircold.org/
* Includes ac.js
* https://aircold.org/
*
* Date: 2016-03-20T18:02Z
*
*
*
Copyright 2015,2016 AirCold Misha Landau
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softwa... |
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')({camelize: true});
var config = require('../config');
var handleErrors = require('../util/handleErrors');
var browserSync = require('browser-sync').create();
gulp.task('images', function() {
return gulp.src(config.images.globs)
.pipe(plugins.... |
version https://git-lfs.github.com/spec/v1
oid sha256:fa8dca3b648a99779220228491bf3effda2ead72f201a8358966d385a481fef7
size 4451
|
/**
* Problem: https://leetcode.com/problems/longest-continuous-increasing-subsequence/description/
*/
/**
* @param {number[]} nums
* @return {number}
*/
var findLengthOfLCIS = function(nums) {
if (!nums.length) return 0;
let result = 1;
let dp = [1];
for (let i = 1; i < nums.length; ++i) {
dp[i] = n... |
const pkg = require("../package.json");
module.exports = {
startLog: () => {
console.log("");
console.log(" " + pkg.name + " v" + pkg.version);
console.log("");
console.log(" " + pkg.description);
console.log("");
console.log("----------------------------------------------------------");
},
complet... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{118:function(n){n.exports=JSON.parse('{"allTagsPath":"/tags","slug":"npm","name":"npm","count":2,"permalink":"/tags/npm"}')}}]); |
import Roles from './Roles';
describe('init', () => {
it('throws error if db driver not provided', () => {
expect(() => Roles.init()).toThrowError('A database driver is required');
});
it('throws error if user resolver not provided', () => {
expect(() => Roles.init({}, {})).toThrowError('A user resolver ... |
import { TagCompiler } from './tag';
export class MixinDefinitionCompiler extends TagCompiler {
compile (context, tag) {
if (!tag.hash) {
throw new Error('Hash property is required for block definition. eg. @mixin#name');
}
if (tag.indent !== 0) {
throw new Error('B... |
var _ = require('lodash');
var Q = require('q');
var elasticsearch = require('elasticsearch');
module.exports = function (client) {
var rubber = {};
rubber.index = function (fig) {
var bulkIndex = function (rows) {
if(rows.length) {
var bulkFig = [];
_.each(... |
/*jslint node: true */
/*global module, require*/
'use strict';
var newEvent = require('./../construct/newEvent.js'),
isValidObject = require('./../bool/isValidObject.js'),
newScapeObject = require('./../construct/newScapeObject.js');
/**
* This method creates {@link ScapeMenu} objects, which are the api inter... |
import { connect } from 'react-redux';
import { hideNotification, pushNotification } from '../actions/NotificationAction';
import { remapButtons } from '../actions/ButtonAction';
const NotificationContainer = (popup) => {
const mapStateToProps = (state) => {
if (state.NotificationReducer) {
return {
... |
'use strict';
/**
* Gets autocompletions.
* @kind internal
* Usage:
* <%= executable %>
* # press tab key to get completions
*/
module.exports = ({ argv, logger, sub }) => {
return new Promise((resolve, reject) => {
sub.get().then((commands) => {
commands.forEach((s) => logger.bare(s));
... |
/*
This module keeps self.currentNumber and self.isAsked variables
It can:
Save and restore this variables from cookies
Check if currentNumber > MaxNumber -> in this case we should ask for a mark
*/
function MarkCounterBool(maxNumber, daysToKeep) {
this.MaxNumber = maxNumber; // the limit for sel... |
const paths = require("../paths");
const gulp = require("gulp");
const babel = require("gulp-babel");
const babelOptions = require("../babel-options");
const concat = require("gulp-concat");
const plumber = require("gulp-plumber");
gulp.task("buildJavascript", function () {
return... |
import test from 'ava';
import stripUrlAuth from './index.js';
test('main', t => {
t.is(stripUrlAuth('http://user:pass@sindresorhus.com'), 'http://sindresorhus.com');
t.is(stripUrlAuth('https://user:pass@sindresorhus.com'), 'https://sindresorhus.com');
t.is(stripUrlAuth('//user:pass@sindresorhus.com'), '//sindresor... |
import { dispatchPost } from '../utils/actionsHelper';
import { FETCH_AUTH_FULFILLED, FETCH_AUTH_REJECTED } from '../constants/actionTypes';
import * as globalConstants from '../constants/config';
export default function getAuth(login) {
return dispatch => dispatchPost(
dispatch,
`${globalConstants.SER... |
const describeKey = (key) => {
if (key.primaryChar != null && key.primaryChar !== '') {
return `${key.primaryChar}'s key`;
}
return `key with keyID ${key.keyID}`;
};
export default describeKey;
|
/**
* Unit test for the PropTypes.element validator
*/
import Ember from 'ember'
import {afterEach, beforeEach, describe} from 'mocha'
import sinon from 'sinon'
import {
itSupportsUpdatableOption,
itValidatesOnUpdate,
itValidatesTheProperty,
spyOnValidateMethods
} from 'dummy/tests/helpers/validator'
import... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerate... |
export default class TestClass {
constructor () {
console.log('I am testing my class!');
}
} |
import React from 'react';
import PropTypes from 'prop-types';
import {createFragmentContainer, graphql} from 'react-relay';
import {TextBuffer} from 'atom';
import {CompositeDisposable} from 'event-kit';
import path from 'path';
import CreateDialogView from '../views/create-dialog-view';
export class BareCreateDialo... |
module.exports = {
active: true,
default: false,
name: '100-IPIP-NEO-PI-R',
link: 'http://ipip.ori.org/newNEODomainsKey.htm',
info: `Costa and McCrae's NEO-PI-R (100 questions)`,
shuffle: true
}
|
function solve(input){
let reversed=findReversedWord(input);
if(input===reversed){
console.log('true')
} else{
console.log('false')
}
function findReversedWord(input){
let reversed='';
for (let i = input.length-1; i >= 0; i--) {
reversed+=input[i];
... |
import Employee from '../../components/EmployeePage';
import { graphql } from 'gatsby';
/** TODO: make this work dynamically */
export const query = graphql`
query {
EmployeeImages: allFile(
sort: { order: ASC, fields: [absolutePath] }
filter: { relativePath: { regex: "/mugshots/lar... |
var predefined_textures = {
water: {
bg: { r: 50, g: 100, b: 200 },
fg: { r: 7, g: 28, b: 10 }
},
fire: {
bg: { r: 255, g: 0, b: 0 },
fg: { r: 247, g: 228, b: 0 }
}
};
|
'use strict'
/* eslint-disable no-unused-vars */
const React = require('react')
const ReactBootstrap = require('react-bootstrap')
const Navbar = ReactBootstrap.Navbar
const Nav = ReactBootstrap.Nav
const NavItem = ReactBootstrap.NavItem
const ReactRouter = require('react-router')
const Link = ReactRouter.Link
const... |
class PollMeter {
constructor() {
this.contasinerId = 'poll-meter-container';
this.updateInterval = 3000;
this.gap = 10;
}
init(size) {
if(this.container) {
return;
}
let body = d3.select('body');
this.container = body.append('div')
... |
'use strict';
/**
* @ngdoc function
* @name angularApp.controller:SearchCtrl
* @description
* # SearchCtrl
* Controller of the angularApp
*/
angular.module('angularApp')
.controller('SearchCtrl', function ($scope, $rootScope) {
var vm = $scope;
window.searchCtrl = vm;
vm.search = { fields: [], inp... |
export * from './module';
export * from './components/component';
//# sourceMappingURL=index.js.map |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.