code stringlengths 2 1.05M |
|---|
import {Page, NavController} from 'ionic/ionic';
/*
Generated class for the <%= jsClassName %> page.
See http://ionicframework.com/docs/v2/components/#navigation for more info on
Ionic pages and navigation.
*/
@Page({
templateUrl: 'build/<%= directory %>/<%= fileName %>/<%= fileName %>.html',
})
export class ... |
"use strict";
const https = require("https");
const path = require("path");
const util = require("util");
const fs = require("graceful-fs");
const request = require("supertest");
const webpack = require("webpack");
const Server = require("../../lib/Server");
const config = require("../fixtures/static-config/webpack.co... |
/*
* Copyright (c) 2012-2016 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame
} = Assert;
// Annex E: Document that NativeError constructors inherit from %Error%
// https://bugs.ecmascript.org/show_bug.c... |
// @flow
export default {
/**
@name milestoneParamObj
@type Array
@description names of allowed custom milestone functions to be used by addMilestones
*/
milestoneParamObj: [],
/** @function
* @name addMilestones
* @param {object} authMilestone
* @param {Array} actionsList
* @param {number... |
import React from 'react';
import DetailHeader from '../DetailPage/DetailHeader';
import SectionMaxWidth from '../SectionMaxWidth/SectionMaxWidth';
import Text from '../Text/Text';
import Tag from '../Tag/Tag';
import GradientLink from '../GradientLink/GradientLink';
import IBPheaderImg from '../../assets/images/block... |
var should = chai.should();
Meteor.user = function(){
return Meteor.users.findOne();
};
describe("Server", function(){
it("should run on server", function(){
Meteor.isServer.should.equal(true);
});
}); |
'use strict';
var P = require('bluebird');
var cbPattern = /.*(\(|,)\s*(callback|cb|callback_)\)\s*(\{|=>)/;
/**
* @typedef {object} PromisifyCopyOption
* @property {object} handlers special handle for odd Function, eg: fs.exists
*/
/**
* copy all props from source to target, and promisify Callback Style F... |
function createuserformFn(transformvalue, postuserservice) {
this.submit = function(user) {
//event.preventDefault();
var _user = {},
value = angular.copy(user);
_user.email = value.email;
_user.name = transformvalue.name(value.fullName);
_user.cpf = transformvalue.cpf(value.cpf);
_user.phone = tran... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux';
import { removeAddress } from '../../../actions/profile/profile_settings_action'
class CurrentAddressesContainer extends Component {
constructor(props){
super(props);
}
render(){
va... |
export default {
initialize() {
}
}; |
//
// This is only a SKELETON file for the 'Diffie Hellman' exercise. It's been provided as a
// convenience to get you started writing code faster.
//
export class DiffieHellman {
constructor(p, g) {
throw new Error('Remove this statement and implement this function');
}
getPublicKey(privateKey) {
thro... |
$(document).ready(function(){
$("#main").accordion({
heightStyle: "content",
active: false,
collapsible: true
});
console.log("document ready working")
var controller = new Controller();
controller.addAllEventListeners();
})
|
/* jshint node: true */
'use strict';
var path = require('path');
module.exports = {
name: 'ember-maskedinput',
blueprintsPath: function() {
return path.join(__dirname, 'blueprints');
},
included: function(app) {
this._super.included(app);
this.app.import(app.bowerDirectory + '/jquery.maskedinp... |
version https://git-lfs.github.com/spec/v1
oid sha256:64185bd7c0ef9e2aa4883c3b998ead5196466029fd372d0544f258aec7c2177d
size 1517
|
const Terraform = require('../apps/Terraform')
const Step = require('../Step')
const _ = require('lodash')
const constants = require('../constants')
class Plan extends Step {
main (cargo, cb) {
if (!_.has(this.runtime.config, 'infra')) {
this._scroll(`Skipping as there are no infra instructions`)
ret... |
.pragma library
// console.log("Android UI Config");
var defaultFontFamily = "Noto Sans Hanunoo";
//var defaultNormalFontPointSize = 16;
var SmallFontPointSize = 20;
//var StandardFontPointSize = 23;
var StandardFontPointSize = 16; // 18 20
var BigFontPointSize = 25;
var LargeFontPointSize = 28;
var HugeFontPointS... |
/**
* post viewer template
* successor of discussPage, to render a post for public viewers and overlay
* @author adrienjoly, whyd
**/
var config = require("../models/config.js");
var mainTemplate = require("./mainTemplate.js");
var uiSnippets = require("../templates/uiSnippets.js");
var postsTemplate = require("..... |
//server.express-vhosts.js
//
// Module dependencies
// from https://github.com/loicsaintroch/express-vhosts
//
var express = require('express');
var vhost = require('vhost');
var app = express();
//
// vhosts
//
app
.use(vhost('app1.io', require('./app1-express/app.js')))
.use(vhost('app2.io', require('./app2... |
import { HandlerBuilder } from './ujs'
import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'
import fetchMock from 'fetch-mock'
import React from 'react'
import { JSDOM } from 'jsdom'
import { render } from 'react-dom'
import * as helpers from './helpers'
describe('ujs', () => {
function ... |
version https://git-lfs.github.com/spec/v1
oid sha256:7a681f619693c7f9a5ab8b785b37d504f78a050dd38751a6cbd3aa3dc226f134
size 8732
|
var searchData=
[
['objectlist_597',['ObjectList',['../namespaceflat2d.html#ae91ea517f10f3e1445a15ab940d25312',1,'flat2d']]]
];
|
/* === Register Flip Card Function === */
function ontouchmove()
{
// Register the script like this for a plugin:
wp_register_script( 'custom-script', plugins_url( '/js/custom-script.js', __FILE__ ) );
// or
// Register the script like this for a theme:
wp_register_script( 'custom-script', get_temp... |
define(['backbone', 'underscore', 'lib/utility', 'lib/backbone-utility', 'lib/backbone-couch-schema-model', 'lib/backbone.couchdb', 'modelbinder'], function (Backbone, _, Utility, BackboneUtility, BackboneSchemaModel, Backbone, ModelBinder) {
var HarvestApp = {
Models:{},
Collections:{},
Views:{},
Ro... |
const express = require('express');
const router = express.Router();
const path = require('path');
const app = express();
const hostname = '127.0.0.1';
const port = process.env.PORT || 8080;
router.get('/test', function(req, res){
res.send('OK');
});
app.get('/', function (req, res) {
// res.send('Hello from My ... |
module.exports = {
elements : {
myElement : { selector: '.myElement' }
}
}; |
/* !pageController.js */
'use strict';
(function() {
var app = angular.module('myApp');
//homeController
app.controller("homeController", ["$scope", "$route", "getJsonService", function ($scope, $route, getJsonService) {
var jsonFile = $route.current.$$route.json;
getJsonService.retrieveJson(jsonFile).then(funct... |
(function(window, angular, undefined) {'use strict';
var ngAJAXTabs = angular.module("ngAJAXTabs", []);
ngAJAXTabs.directive("tabs", function() {
return {
restrict: "E",
transclude: true,
scope: {},
controller: function($scope, $element, $rootScope) {
var panes = $scope.panes = [];
$scope.select = f... |
var module0 = new Object({
_count : 0,
m1 : function (){
//...
},
m2 : function (){
//...
}
});
console.info(module0._count);
var module1 = (function(){
var _count = 0;
var m1 = function(){
//...
};
var m2 = function(){
... |
import styled, { css } from "styled-components"
import { rhythm } from "../utils/typography"
import media from "../utils/media"
export default styled.footer`
position: fixed;
bottom: 0;
left: 0;
width: 100vw;
background-color: #242629;
height: ${rhythm(3)};
display: grid;
grid-template-columns:
[e... |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendor... |
'use strict'
class PriorityNode {
constructor(data, priority) {
this.data = data;
this.next = null;
this.priority = priority;
}
}
export default class Priority {
constructor(data) {
this.head = null
this.tail = null
this.size = 0
}
enqueue( data, priority ) {
const newPriority... |
var canvas = document.querySelector("#output");
var ctx = canvas.getContext("2d");
var image = new Image();
image.src = "frame.png";
function print(){
var video = document.getElementsByTagName('video')[0];
ctx.drawImage(video, 0, 0, video.width, video.height);
ctx.drawImage(image, 0, 0, video.width, video.height... |
function onFileLoad(e) //When the file is loaded for "encryption" this will happen
{
$('#preview').empty().append('<img id="upload" src="'+e.target.result +'" style="max-width:80%;"/>');
//alert( "Your image has been uploaded. The image to the right has not been edited yet."); //uploads image that user chooses
var ... |
'use strict';
const TYPES = require('./../consts/types');
/**
*
*/
class ConfirmationModel {
/**
* Initialize confirmation
*/
constructor(confirmationPayload) {
Object.assign(
this,
this._initConfirmationModel(confirmationPayload)
);
}
/**
* G... |
'use strict';
const BbPromise = require('bluebird');
const path = require('path');
const program = require('child_process');
module.exports = {
compile() {
let servicePath = this.serverless.config.servicePath;
this.serverless.cli.log('Serverless DotNet: Compile');
this.serverless.cli.log(this.serverles... |
const winston = require('winston');
const ENV = process.env.NODE_ENV;
function getLogger(module) {
let path = module.filename.split('/').slice(-2).join('/');
return new winston.Logger({
transports: [
new winston.transports.Console({
colorize: true,
level: (ENV == 'development') ? 'debug'... |
let mat = Float32Array;
// Add b to each element in matrix a, store results in dst
export default function ScalarAdd (a, b, dst = new mat(6)) {
dst[0] = a[0] + b;
dst[1] = a[1] + b;
dst[2] = a[2] + b;
dst[3] = a[3] + b;
dst[4] = a[4] + b;
dst[5] = a[5] + b;
return dst;
}
|
const nock = require("nock");
describe("screenshots and PDFs", function() {
withNock();
withPrerenderMiddleware();
function itWorks(prerenderAction) {
describe("happy path", function() {
beforeEach(function() {
const self = this;
nock("https://service.prerender.cloud")
.get(/... |
if (!window.settings){
window.settings['STATIC_URL'] = '';
}
require.config({
baseUrl: window.settings.STATIC_URL+"/js/",
// 3rd party script alias names (Easier to type "jquery" than "libs/jquery, etc")
// probably a good idea to keep version numbers in the file names for updates checking
paths:{
... |
'use strict'
var _ = require('lodash')
var AWS = require('aws-sdk')
var debug = require('debug')('bucketeer/lib/s3-facade')
var S3Facade = function (settings) {
AWS.config.update({
accessKeyId: settings.key,
secretAccessKey: settings.secret,
region: settings.region
})
this._s3 = new AWS.S3()
this.... |
version https://git-lfs.github.com/spec/v1
oid sha256:38bb31d31913804c1a78ea4a9b641e1467a2074474b8b5794843b88b9bb331ca
size 51711
|
export { default as listen } from './listen'
export { default as listenCollection } from './listenCollection'
export { default as removeListeners } from './removeListeners'
export { default as trigger } from './trigger'
|
/*global define*/
define(function () {
'use strict';
var ListController = function ($scope, $stateParams, $filter, RetrieveQueries, progression, view, data) {
this.$scope = $scope;
this.$stateParams = $stateParams;
this.$filter = $filter;
this.view = view;
this.data = d... |
import { isObject } from 'lodash'
import React, { PropTypes } from 'react'
import classNames from 'classnames'
import { mapToCssModules } from 'core/app/utils/coreui'
const colWidths = ['xs', 'sm', 'md', 'lg', 'xl']
const stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string])
const columnProps... |
const service = 'serverless-boilerplate';
module.exports = {
service,
stage: 'dev',
// region: '',
domain: {
basePath: '',
domainName: `${service}.foo.com`,
},
app: {
host: '0.0.0.0',
port: 3000,
},
foo: 'bar',
env: '',
db: {
local: {
region: 'localhost',
port: 8000,
},
tables: {
... |
import Immutable from 'seamless-immutable'
import {
INDEX_IMAGES,
ADD_IMAGE,
ADD_IMAGE_ERROR,
DELETE_IMAGE,
DELETE_IMAGE_ERROR,
CLEAR,
CLEAR_MSG
} from './actions';
const initState = Immutable({
images: [],
addImageSuccess: false,
addImageFailure: false,
removeImageSuccess: false,
removeImageF... |
import { language } from '../../config.js';
import englishLang from '../../image/flag/uk.svg';
import chineseLang from '../../image/flag/china.svg';
import spanishLang from '../../image/flag/spain.svg';
import frenchLang from '../../image/flag/france.svg';
import italianLang from '../../image/flag/italy.svg';
const c... |
var actions = require('./actions'),
deepEqual = require('deep-equal');
function scanForChanges(old, current, processedKey){
var keys = Object.keys(old),
moarKeys = Object.keys(current),
visited = {},
result = {};
if(processedKey === undefined){
processedKey = '';
} else... |
var searchData=
[
['i2c_2ec',['i2c.c',['../a00001.html',1,'']]],
['i2c_2eh',['i2c.h',['../a00002.html',1,'']]]
];
|
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import withStyles from 'isomorphic-style-loader/withStyles';
import Button from '../Button';
import s from './LocaleButton.css';
const LocaleButton = ({ onClick, active, label }) => (
<li>
<Button plain onClick={onClick}... |
'use strict';
// MODULES //
var partial = require( './partial.js' ),
recurse = require( './recurse.js' );
// RANDOM //
/**
* FUNCTION: random( dims, alpha, beta[, rand] )
* Creates a multidimensional array of inverse-gamma distributed random numbers.
*
* @param {Number[]} dims - dimensions
* @param {Number} alpha... |
/* jshint node: true */
var controllersAdmin = angular.module('controllersAdmin', [ 'angularFileUpload' , 'myDirectives' ]);
controllersAdmin.controller('products', ['$scope', '$http', 'checkToken', function($scope, $http, checkToken){
$http.post('api/admin/products/get' , {
token: checkToken.raw()
}).succes... |
/**
* DevExtreme (ui/text_area.js)
* Version: 16.2.6
* Build date: Tue Mar 28 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
registerComponent = require("../cor... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S13.2_A2_T2;
* @section: 13.2;
* @assertion: Nested function are admitted;
* @description: Nesting level is three;
*/
__ROBOT="C3PO";
function __FUNC(){
fu... |
{
return function(test) {
d3_queue
.queue()
.defer(fs.readFile, input, "utf8")
.defer(fs.readFile, expected, "utf8")
.await(ready);
function ready(error, inputText, expectedText) {
if (error) throw error;
var stratify = d3_hierarchy.stratify().parentId(function(d) {
... |
var debug = require('debug')('hub');
var EventEmitter = require('events').EventEmitter;
var inherits = require('inherits');
var axon = require('axon');
var _ = require('underscore');
var HubSocket = require('./hub-socket');
var generateId = require('./id');
var Win = require('./window');
module.exports = Hub;
inherits... |
'use strict';
var gutil = require('gulp-util');
var through = require('through2');
var path = require('path');
var minimatch = require('minimatch');
var glob = require('glob');
var _ = require('lodash');
var vinyl_fs = require('vinyl-fs');
function processPatterns(patterns, fn) {
// Filepaths to return.
var result... |
// Regular expression that matches all symbols in the CJK Radicals Supplement block as per Unicode v8.0.0:
/[\u2E80-\u2EFF]/; |
export function divideBy3(num, shouldDivideBy3) {
return shouldDivideBy3 ? Math.floor(num / 3) : num;
}
|
// * iOS zooms on form element focus. This script prevents that behavior.
// * <meta name="viewport" content="width=device-width,initial-scale=1">
// If you dynamically add a maximum-scale where no default exists,
// the value persists on the page even after removed from viewport.content.
// So if no max... |
import React, { Component } from 'react';
import { links } from '../../widgets/constants/links';
import Detail from '../../widgets/detail';
class Taxonomy extends Component {
render() {
return (
<Detail projectDetail={links.find(link => link.name.toLowerCase() === 'taxonomy gui')} />
);
}
}
export d... |
function Track() {
}
Track.prototype.number = function(number) {
if (arguments.length === 1) {
this._number = number;
} else {
return this._number;
}
};
Track.prototype.title = function(title) {
if (arguments.length === 1) {
this._title = title;
} else {
return this._title;
}
};
Track.pro... |
const Constraint = Jymfony.Component.Testing.Constraints.Constraint;
/**
* Constraint that asserts that the value it is evaluated for is of a
* specified type.
*
* The expected value is passed in the constructor.
*
* @memberOf Jymfony.Component.Testing.Constraints
* @final
*/
export default class IsType extend... |
describe('useDefaultLogPrefix Spec', function () {
var tempDefault;
beforeEach(function () {
tempDefault = useDefaultPrefix;
});
afterEach(function () {
useDefaultPrefix = false;
});
it('should not set useDefaultPrefix when flag is not of types boolean, null or undefined', function () {
useDef... |
module.exports = {
web: {
assets: {
urlPrefix: null,
},
},
};
|
const Constants = {
USER_SIGNED_IN: 'USER_SIGNED_IN',
CURRENT_USER: 'CURRENT_USER',
USER_SIGNED_OUT: 'USER_SIGNED_OUT',
SESSIONS_ERROR: 'SESSIONS_ERROR',
REGISTRATIONS_ERROR: 'REGISTRATIONS_ERROR',
};
export default Constants;
|
var PlaylistDetailView = View.extend(function PlaylistDetailView() {
View.call(this); // super();
this.content = document.getElementById('content');
this.client = threads.client('music-service', window.parent);
this.client.on('databaseChange', () => this.update());
this.update();
});
PlaylistDetailView.p... |
'use strict';
/*
UserProfile is used for information related the individual that owns User.
Personal information, flags, and things that aren't related to
the actual account of the User should be stored here. Nothing here is
necessary to being a user.
*/
module.exports = function(sequelize, DataTypes) {
var Use... |
// Web server
var gulp = require('gulp'),
config = require('../config').browserSync,
browserSync = require('browser-sync'),
runSequence = require('run-sequence');
gulp.task('bundling', function(cb) {
runSequence(
'bower',
['css', 'js', 'images', 'fonts', 'copySample'],
'html',
cb
);
})... |
import { requester } from '../helpers/requester.js';
const kinvey_APP_ID = 'kid_Hy6KS9Bnl';
const kinvey_APP_SECRET = 'b29f8628042140ca87b41da18c3ea552';
const kinvey_MASTER_SECRET = 'b44dcc3c1fd145b089de0cf9b8bbdf0c';
const kinvey_URL = 'https://baas.kinvey.com/';
class ImagesModel {
getAllImages() {
let... |
(function($){var _elements=[];$.fn.readTime=function(){this.each(function(){_elements.push($(this))})};window.onscroll=function(){var s=window.pageYOffset;if(s%5===0){displayReadTime(calcMinsLeft())}};var calcMinsLeft=function(){var m=0,p=document.getElementsByTagName("p"),unreadParas=[];for(i=0;i<p.length;i++){var b=p... |
() => {
const [startDate, setStartDate] = useState(new Date());
return (
<DatePicker
selected={startDate}
onChange={(date) => setStartDate(date)}
isClearable
placeholderText="I have been cleared!"
/>
);
};
|
module.exports = AppController;
var winston = require('winston');
var Player = require("./player.js").getPlayer();
/**
* The AppController transmits requests received by the <http_service> to
* an instance of <player>
* @param options
*/
function AppController(options) {
winston.info("AppController is initializ... |
import WelcomeMat from './WelcomeMat';
import WelcomeMatProgress from './components/WelcomeMatProgress';
import WelcomeMatContent from './components/WelcomeMatContent';
export { WelcomeMat, WelcomeMatContent, WelcomeMatProgress };
|
class FabricChoiceFieldGroup extends HTMLElement {
constructor(){
super();
this._name = ''; // Name of corresponding choice fields
this._label = '';
this._nodes = {};
this._form ='';
}
get disabled() { return this._disabled || false }
get required() { return this._required || false }
get label() {... |
'use strict';
var Generator = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var path = require('path');
var fs = require('fs');
module.exports = class extends Generator {
constructor(args, opts) {
// Generator.Base.apply(this, args);
super(args, opts);
// Genera... |
module.exports = {
name: "tableDrop",
ns: "rethinkdb",
description: "Table Drop",
phrases: {
active: "Dropping table"
},
ports: {
input: {
db: {
type: "function",
title: "Database",
required: true
},
tableName: {
type: "string",
title: "Table... |
var net = require( 'net' );
module.exports = function( router ){
return router.param( 'ip', function( req, res, next, ip ){
next( net.isIPv4(ip) ? '' : 'route' ); // or 404
} );
};
|
/**
* Properties of a shape.
* amb: { col: Color }
* diff: { col: Color }
* spec: { col: Color, stdev: Float }
*/
function Props(amb, diff, spec) {
this.amb = amb;
this.diff = diff;
this.spec = spec;
}
function Sphere(c, r, props) {
// Position
this.c = c;
// Radius
this.r = r;
// Properties
thi... |
exports.index = function(req, res) {
res.render('home');
}
exports.routes = function() {
this.get('/', exports.index);
} |
/*
* SubHeader Messages
*
* This contains all the text for the SubHeader component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.components.SubHeader.header',
defaultMessage: 'This is the SubHeader component !',
},
overview: {
id: 'app.compone... |
}).call(this.Ajs, window );
|
var system = require('system');
var webPage = require('webpage');
var page = webPage.create();
var fs = require('fs');
var esprima = require("C:\\GitWebStorm\\Firecrow\\phantomJs\\evaluationHelpers\\esprima");
var escodegen = require("C:\\GitWebStorm\\Firecrow\\phantomJs\\evaluationHelpers\\escodegen");
var s... |
angular.module('genome.d3Service', [])
.factory('d3Service', function(){
var d3;
//insert d3 code here
!function() {
var d3 = {
version: "3.5.16"
};
var d3_arraySlice = [].slice, d3_array = function(list) {
return d3_arraySlice.call(list);
};
... |
var gulp = require('gulp'),
gutil = require('gulp-util'),
notify = require('gulp-notify'),
less = require('gulp-less'),
concat = require('gulp-concat'),
path = require('path'),
minifyCSS = require('gulp-minify-css'),
uglify = require('gulp-uglify'),
wa... |
"use strict"
module.exports = function (app) {
app.get('/', function (req, res) {
res.render('index/index')
})
}
|
( function( epic, undefined ) {
var object_merge = epic.object.merge;
var object_copy = epic.object.copy;
var default_settings = {
on_start: nothing,
execute: nothing,
on_stop: nothing,
interval: 1000
};
function nothing() {}
function task( settings ) {
var self = this;
object_copy( object_merge(... |
import ApiMethod from "../ApiMethod";
import http from "http";
import { receiveMultipart } from "../../../test/utils";
import path from "path";
describe("upload trough api", () => {
it("correcty uploads the file", async () => {
const server = http
.createServer((req, res) => {
receiveMultipart(req,... |
import { configure } from '@kadira/storybook'
import { applyMiddleware, createStore } from 'redux'
import ReduxThunk from 'redux-thunk'
import { initModules } from '@mindhive/di'
import themeModule from '../../imports/client/theme'
import '../../client/main.css'
import './override.css'
const mockStoreModule = () =>... |
var fs = require('fs')
var path = require('path')
var webpack = require('webpack')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var baseConfig = {
module: {
loaders: [
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel' },
{ test: /\.css$/,loader: ExtractTextPlugin.extract('style-loade... |
//
// Copyright (c) 2019 Autodesk, 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, modify, merge, publ... |
Package.describe({
name: "momentjs:twix",
summary: "Twix.js (official) by Isaac Cambron: a Moment.js plugin for working with date ranges.",
version: "1.1.1",
git: "https://github.com/icambron/twix.js.git",
});
// Makes Twix available both on the server and on the client
var where = ["client", "server"];
Packa... |
import isUrl from 'is-url';
import standardFonts from './standard';
import { fetchFont } from '../utils/font';
let fonts = {};
const register = (src, { family, ...otherOptions }) => {
fonts[family] = {
src,
loaded: false,
...otherOptions,
};
};
const getRegisteredFonts = () => Object.keys(fonts);
co... |
(function() {
var CursorsComponent, EditorComponent, GutterComponent, InputComponent, LinesComponent, Point, Range, React, ScrollbarComponent, ScrollbarCornerComponent, SubscriberMixin, debounce, defaults, div, isEqualForProperties, scrollbarStyle, span, _ref, _ref1, _ref2;
React = require('react-atom-fork');
_... |
version https://git-lfs.github.com/spec/v1
oid sha256:16ef56603ac6bda98054f1d3295053fb175391ee0d3a648aef140c351850ba51
size 272676
|
export default !!(
typeof window !== 'undefined' &&
window.document &&
window.document.createElement
)
|
/**
* Blueprint API Configuration
* (sails.config.blueprints)
*
* These settings are for the global configuration of blueprint routes and
* request options (which impact the behavior of blueprint actions).
*
* You may also override any of these settings on a per-controller basis
* by defining a '_config' key in... |
/**
* The Indonesia Primary Forest layer module.
*
* @return IdnPrimaryLayer class (extends ImageLayerClass)
*/
define(['abstract/layer/ImageLayerClass'], function(ImageLayerClass) {
'use strict';
var ColombiaForestChangeLayer = ImageLayerClass.extend({
options: {
urlTemplate:
'https://s3.ama... |
import React, { createElement } from 'react';
import styles from './storiesDecorator.css';
const storiesDecorator = (story) => <div className={styles.root}>{createElement(story)}</div>;
export default storiesDecorator;
|
/* -*- Mode: js2; indent-tabs-mode: nil; tab-width: 4; js2-indent-offset: 4; js2-basic-offset: 4; -*-
* vim: set ts=4 sw=4 et tw=99 ft=js:
*/
// this class does two things
//
// 1. rewrites all sources to be relative to this.toplevel_path. i.e. if
// the following directory structure exists:
//
// externals/
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.