code
stringlengths
2
1.05M
/*(function () { 'use strict'; angular .module('logs') .run(menuConfig); menuConfig.$inject = ['Menus']; function menuConfig(Menus) { Menus.addMenuItem('topbar', { title: 'Log', state: 'logs', type: 'dropdown', roles: ['admin', 'user'] }); // Add the dropdown crea...
var assert = require('assert'); var getMyIp = require('../dist/') describe('This project', function (done) { it('can get IP and clean context', function (done) { getMyIp(function (err, data) { assert.ok(typeof data === 'string') assert.ok(typeof returnCitySN === 'undefined') done() }) }) ...
import ButtonGroup from './components/button-group' import Button from './components/button' import Link from './components/link' import Icon from './components/icon' import Field from './components/field' import Input from './components/input' import InputGroup from './components/input-group' import Radio from './comp...
import builtin from './builtin.js'; const universal = [ builtin // TODO: Add types that are de-facto universal even though not // built-in into ecmasript standard. ]; export default universal;
var assert = require('assert'); var nock = require('nock'); var streamSpec = require('stream-spec'); var rssParser = require('../lib/rss-parser'); describe('RSS parser module', function () { it('should return a readable stream', function () { streamSpec(rssParser([], false)) .readable() .pausable({st...
var searchData= [ ['initializecomponent',['InitializeComponent',['../class_a_c_h_clerk_1_1_about_pane.html#ac6bf4799d9b4c90f779b9fd654bcd8a9',1,'ACHClerk.AboutPane.InitializeComponent()'],['../class_a_c_h_clerk_1_1_clerk_form.html#a912757e423567686856960486ac9edaa',1,'ACHClerk.ClerkForm.InitializeComponent()'],['../c...
require(['jquery', 'fuelux'], function($){ $('a.checkbox').click(function(event){ if($(this).hasClass('active')) { $(this).removeClass('active'); $('input[name="'+this.id+'"]').prop('checked', false); $('input[name="'+this.id+'"]').checkbox('uncheck'); } else { $(this).addClass('active...
var express = require('express') , app = express() var pointlessFormTemplate = '<html><body><form method="POST" action="/admin/users"><label>foo</label><input type="text" name="foo" value="bar"><button type="submit">Submit</button></body></html>' function genericRoute(req,res) { var strToSend = '[' + req.method +...
const chai = require('chai'); const expect = require('expect.js'); const { RelationExpression } = require('../../../'); describe('RelationExpression', () => { describe('parse', () => { it('empty expression', () => { testParse('', { $name: null, $relation: null, $modify: [], ...
describe("When GHM is in use,", function(){ describe("git merge", function(){ beforeEach(function(done){ TEST_SUITE.setup(true, true, true, function(err){ if(err){ done(err); } else{ TEST_SUITE.git.__makeAddAndCommitFile("master", "master", function(err){ if(err){ done(err); ...
window.addEvent("domready", function() { // http://icebeat.bitacoras.com/mootools/growl/ Growl.Smoke({ title: 'Window.Growl By Daniel Mota', text: 'http://icebeat.bitacoras.com', image: 'growl.jpg', duration: 2 }); })
function number_format( numero, decimal, decimal_separador, milhar_separador ){ numero = (numero + '').replace(/[^0-9+\-Ee.]/g, ''); var n = !isFinite(+numero) ? 0 : +numero, prec = !isFinite(+decimal) ? 0 : Math.abs(decimal), sep = (typeof milhar_separador === 'undefined') ? ',' : milhar_separ...
function render(file) { return function(req, res, next) { res.render(file, {}, function(err, html) { if(err) { res.render('errors/e404'); } else { res.send(html); } }); } }; module.exports = render;
const { task, series, dest, src, watch } = require('gulp'); const path = require('path'); const config = require('./config/settings'); // utils const $ = require('./utils/plugins'); const pumped = require('./utils/pumped'); const getFolders = require('./utils/getFolders'); /** * 本番テーマAssetsディレクトリーから * SVG Spriteを...
var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var DjModuleGenerator = module.exports = function DjModuleGenerator(args, options, config) { yeoman.generators.Base.apply(this, arguments); this.on('end', function () { this.installDependencies({ skipIns...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); //var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var express = require('express'); var router = express.Router(); var mongoose = require('mongoos...
function gameCreate(main_scene, socket) { //----------------------------------------- // game vars //----------------------------------------- var time = 0; var time_add_mine = 0; var game_over = true; var game_players = 0; var scene = main_scene; var objects = []; var sphere_glow = THRE...
var fs = require('fs'); var should = require('should'); var utils = require('../../lib/utils'); var q = require('q'); /** * Function: expectFilesToMatch * ---------------------------- * Expects the contents of the two given files to match. * * @param expectedFileName - the file with the expected contents * @para...
/* Copyright (c) 2012-2013 Coding Smackdown TV, http://codingsmackdown.tv 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...
'use strict' describe('Poker.Hand', function () { var hand beforeEach(function () { hand = new DISBRANDED.Poker.Hand }) it('should add a card to the hand', function () { hand.add('AS') expect(hand.has('AS')).toBe(true) expect(hand.has('2S')).toBe(false) expect(hand.get(0)).toBe('AS') ...
'use strict'; var config = { awsProfile: "default", awsRegion : "us-east-1", environmentStage: "development", resourcePrefix: "pe-justin", slsProject: "pantryexpress-api" }; // Check if it is in environment variable. function getVar(name) { if (process.env[name]){ console.log('Getting value', name, 'f...
import compose from '../utils/compose'; import clone from 'lodash/objects/clone'; export default compose(function(name) { this._db = new PouchDB(name); this._revs = {}; }, { setItem: function(key, value) { var revs = this._revs; return this._db.put(value, key, revs[key]).then(function(resp) ...
export const host = 'http://localhost:3000/';
require.config({ baseUrl: '.', paths: { 'weather-client': 'lib/weather-client' } }); var views = {}; function weatherDay(city, require) { var weather = require('weather-client'); var typetemperature = "metric"; console.log(city); weather.getToday(city, typetemperature).then(function...
(function() { 'Use strict'; var Role = require('./../models/role.models'); /** * [function to create a role] * @param {[http request object]} req [used to get the request query] * @param {[http response object]} res [used to respond back to client ] * @return {[json]} [success message that rol...
// Marionette Controller // --------------------- // // A multi-purpose object to use as a controller for // modules and routers, and as a mediator for workflow // and coordination of other objects, views, and more. Marionette.Controller = function(options){ this.triggerMethod = Marionette.triggerMethod; this.optio...
(function() { ActiveAdmin.DependentSelects = (function() { function DependentSelects(options, element) { this.element = element; this.$element = $(this.element); this.$selectInputs = this.$element.find('.dependent_select_input'); this.options = options; default...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Button } from '../Button'; import styles from './styles.scss'; import i18n from './i18n'; class CopyToClipboard extends Component { executeCopy() { this.copyTextArea.focus(); this.copyT...
function StatsJournal(options) { var Cucumber = require('../../cucumber'); var _ = require('lodash'); function getCountsObject () { var statuses = [ Cucumber.Status.FAILED, Cucumber.Status.PASSED, Cucumber.Status.PENDING, Cucumber.Status.SKIPPED, Cucumber.Status.UNDEFINED ];...
// Generated by CoffeeScript 1.8.0 /*! * jQuery POP'n SocialButton v0.1.9 * * http://github.com/ktty1220/jquery.popn-socialbutton * * 参考サイト * * - http://q.hatena.ne.jp/1320898356 * - http://stackoverflow.com/questions/5699270/how-to-get-share-counts-using-graph-api * - http://stackoverflow.com/questions/8853342/how-to...
define(["angular", "underscore"], function(angular, _) { "use strict"; function experiencesController($scope, mountainsService, treeSvc, seasonSvc) { $scope.resume = {}; $scope.transitionSpring = function() { seasonSvc.progressThroughAllSeasons(); } mountainsService.drawMountains(); ...
import BaseDataLayer from './base'; import {merge} from '../../helpers/layouts'; /** * @memberof module:LocusZoom_DataLayers~annotation_track */ const default_layout = { color: '#000000', filters: null, tooltip_positioning: 'vertical', hitarea_width: 8, }; /** * Create a single continuous 2D track ...
import PropTypes from 'prop-types'; import { Platform } from 'react-native'; // Todo: port over values from // https://github.com/NewSpring/junction-framework/blob/master/lib/_defaults.scss export const DEFAULT_THEME = { primaryColor: '#6bac43', secondaryColor: '#1c683e', tertiaryColor: '#2a4930', darkPrimary...
/* * Vanilla Unorphanize * Based on https://github.com/simeydotme/jQuery-Unorphanize * @author Kyle Foster (@hkfoster) * @license MIT */ !function(a,b){"use strict";function d(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function e(a,c){this.selector=b.querySelectorAll(a),this.options=d(this.defaults,c...
/** * Created by ssehacker on 16/9/2. */ import _ from 'underscore'; import Status from '../src/Status'; // 以下请求需要登录才能访问 const requestsNeedAuth = [ { path: '/api/article/:id', method: 'DELETE', }, { path: '/api/article/:id', method: 'PUT', }, { path: '/api/user', method: 'PUT', },...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototy...
import React, { Component, PropTypes } from 'react'; import assign from 'deep-assign'; const WaveSurfer = require('wavesurfer.js'); const EVENTS = [ 'audioprocess', 'error', 'finish', 'loading', 'mouseup', 'pause', 'play', 'ready', 'scroll', 'seek', 'zoom' ]; /** * @description Capitalise the ...
/* * File: app/view/SampleMenuPanel2.js * * This file was generated by Sencha Architect version 2.2.2. * http://www.sencha.com/products/architect/ * * This file requires use of the Ext JS 4.2.x library, under independent license. * License of Sencha Architect does not include license for Ext JS 4.2.x. For more ...
/* global window */ (function (root) { function isProvider(type, row) { return Array.isArray(row) && row[1] === type; } function providerName(row) { return row[2][0]; } // all found modules by name var _modules = {}; var valueProvider, constantProvider, serviceProvider, factoryProvider; ...
'use strict'; module.exports = { API_URI: 'https://api.github.com', SEARCH_URI: '/search/repositories', GITHUB_GIT_URI: 'git@github.com:', GITHUB_HTTPS_URI: 'https://github.com/', loggingConfigs: { outputMode: 'short', }, logPrefix: 'buh.', logfile: 'buh.log', consoleLogLevel: ((process.env.NODE_...
const { GraphQLEnumType } = require('graphql') const generateEnum = (array) => array.reduce((accum, next) => { accum[next] = {} return accum }, {}) class EnumType extends GraphQLEnumType { constructor (config) { config.values = Array.isArray(config.values) ? generateEnum(config.values) : config.valu...
var Yadda = require('yadda'); module.exports = { parseFeatures: function (featuresDir, optTags, optLanguage) { if (optTags) var tags = sortTags(optTags); var features = []; var language = this.getLanguage(optLanguage); new Yadda.FeatureFileSearch(featuresDir).each(function (file) { var parse...
import React from "react" import MappingListItem from "./MappingListItem" const MappingList = ({ mappings, sampleChoices }) => { return mappings.map(mapping => ( <MappingListItem key={mapping.id} mapping={mapping} sampleChoices={sampleChoices} /> )) } export default MappingList
"use strict"; var Client = require("./../dist/index"); var testAuth = require("./../test_auth.json"); var github = new Client({ debug: true }); github.authenticate({ type: "oauth", token: testAuth["token"] }); github.search.issues({ q: "bazinga" }, function(err, res) { console.log(err, res); });...
/** * We declare the collection just like meteor default way * but changing Meteor.Collection to orion.collection. * * We can set options to that new collection, like which fields * we will show in the index of the collection in the admin */ ChapterLrcs = new orion.collection('chapterlrcs', { singularName: or...
layui.use(['form','layer','jquery'], function () { var $ = layui.jquery, form = layui.form; var is_agree = true; form.on('checkbox(agreement)', function (data) { is_agree = data.elem.checked; //开关是否开启,true或者false }); form.on('submit(apply)', function (data) { var remoteLoad...
var path = require('path') module.exports = { port: 8080, assetsSubDirectory: 'static', assetsPublicPath: '/', // Define HTTP proxies to your custom API backend // https://github.com/chimurai/http-proxy-middleware proxy: { '/': { // https://github.com/chimurai/http-proxy-middleware#http-proxy-opt...
/* eslint-disable jsx-a11y/href-no-hash */ import { storiesOf } from "@kadira/storybook"; import { linkTo } from "@kadira/storybook-addon-links"; import centered from "../.storybook/decorators/centered"; storiesOf("Junction", module) .addDecorator(centered) .add("Introduction", () => ( <div className="locked-e...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21.29 6.75a.9839.9839 0 0 0-1.4 0l-.89.88.03-.56-3.46-3.48c-.38-.38-.89-.59-1.42-.59h-4.3c-.53 0-1.04.21-1.42.59L4.97 7.07l.03.5-.89-.87c-.39-.38-1.01-.38-1.39.01l-.02.02c-.38.39-.38 1.02.02 1.4...
// Title : Simple AI Agent Demo - using neural nets // Author : David Imrie // Date : April 2017 // Contact : @smallfatcat // Repo : https://github.com/smallfatcat/nettestv1 // version : Alpha 0.1 // // Neural Nets Powered by : http://cs.stanford.edu/people/karpathy/convnetjs/ // : http...
/** * Saving OpenLayers map information via cookies * * Based on code from OpenCycleMap / OpenStreetMap * Licensed under the GPLv2 license: * http://www.gnu.org/licenses/gpl-2.0.html * */ MapDisplay = { map: null, init: function (m) { this.map = m; map.events.register("moveend", map, this.updateLoc...
/* global angular */ 'use strict'; angular.module('hgApp.service.firebase', ['firebase']) // a simple utility to create references to Firebase paths .factory('firebaseRef', ['Firebase', 'FBURL', function (Firebase, FBURL) { /** * @function * @name firebaseRef * @param {String|Array....
import { Suite } from 'benchmark'; import { benchmarkFatestStatus, benchmarkCycle } from '../../.fixtures/benchmark'; import keys from './Object.keys.next'; const value = { "A": 329.5562145531701, "r": 26.143494324762816, "a": 30.839810129349885, "y": 382.8652049927137, ".": 209.46051680295318, "p": 137.36783262...
import React from "react"; import TextareaBase from "./component/TextareaBase"; export default class TextareaF extends React.Component { render() { const { label, labelHide, kind, ...others } = this.props; if (kind && kind.startsWith('form')) { return ( <div ...
"use strict"; var utils = exports; /** * @returns {window} */ utils.getWindow = function () { return window; }; /** * @returns {HTMLDocument} */ utils.getDocument = function () { return document; }; /** * @returns {HTMLElement} */ utils.getBody = function () { return document.getElementsByTagName("bo...
/* * jPlayer Plugin for jQuery JavaScript Library * http://www.jplayer.org * * Copyright (c) 2009 - 2014 Happyworm Ltd * Licensed under the MIT license. * http://opensource.org/licenses/MIT * * Author: Mark J Panaghiston * Version: 2.9.2 * Date: 14th December 2014 */ /* Support for Zepto 1.0 compiled with o...
{ // Map BGM addAudio:[ ["map-bgm",[audioserver+"cave.mp3",audioserver+"cave.ogg"],{channel:"bgmusic",loop:true}] ], // Map graphics addImage:[ ["tiles","resources/gfx-cave.png"] ], // Map Tileset addTiles:[ {id:"tiles",image:"tiles",tileh:30,tilew:30,tilerow:10,gapx:0,gapy:0} ], setObject:[ // Dialog...
export { default as deepClone } from './deepClone'; export { default as isPrimitive } from './isPrimitive'; export { default as getVariable } from './getVariable'; export { default as isPlainObject } from 'is-plain-obj'; export { default as deepEqual } from 'deep-equal';
/* External dependencies */ import React from 'react' import classNames from 'classnames' /* Internal dependencies */ import styles from './Input.scss' class Input extends React.Component { constructor() { super() this.inputRef = null } componentDidMount() { if (this.props.autoFocus) { this....
module.exports = { description: "", ns: "react-material-ui", type: "ReactNode", dependencies: { npm: { "material-ui/Table/TableRowColumn": require('material-ui/Table/TableRowColumn') } }, name: "TableRowColumn", ports: { input: { children: { type: "array", propType:...
import React from 'react' import Map from '../Map/Map' import Sidebar from '../Sidebar/Sidebar' import { restaurantsRef, restaurantImgRef } from '../lib/firebase' import * as Modes from '../modes' import Navbar from './Navbar' import Locati...
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module; var Theme = new Module('theme'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ Theme.register(function(app, auth, database) { //We enable routing. By default the Packag...
/* =================================================== * bootstrap-transition.js v2.0.3 * http://twitter.github.com/bootstrap/javascript.html#transitions * =================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ...
import sinon from 'sinon'; import simulate from 'simulate'; import { h, mountSync, unmountSync } from '../../src/vidom'; describe('domEvents', () => { let domNode; beforeEach(() => { document.body.appendChild(domNode = document.createElement('div')); }); afterEach(() => { unmountSync(d...
jQuery(document).ready(function() { updateHeaderTransparency(); $(window).scroll(function(){ updateHeaderTransparency(); }); $(window).resize(function(){ updateHeaderTransparency(); }); function updateHeaderTransparency() { var offset = ($('header').height() + parseInt($('m...
$('#data_mahasiswa_tanggal_lahir').datepicker({ dateFormat: 'yy-mm-dd'});
document.addEventListener('DOMContentLoaded', function() { actionHelper.checkPluginEnabled(); $('#pop').click(function(e) { e.stopPropagation(); e.preventDefault(); window.open(chrome.extension.getURL("popup.html"),"gc-popout-window","width =560,height=550"); }); $("#enabled").click(function(e) ...
// Regular expression that matches all symbols in the `Avestan` script as per Unicode v8.0.0: /\uD802[\uDF00-\uDF35\uDF39-\uDF3F]/;
$(document).ready(function(){ $('.parallax').parallax();}); $(document).ready(function(){ $('.carousel').carousel(); }); $(document).ready(function(){ $('.slider').slider(); }); $(document).ready(function(){ $(".button-collapse").sideNav(); }); // Initialize collapse button $(".b...
'use strict'; /** * Module dependencies */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Document Schema */ var DocumentSchema = new Schema({ created: { type: Date, default: Date.now }, values: { type: Array, default: [] }, form: { type: Schema.ObjectId, ...
/** File: strophe.js * A JavaScript library for XMPP BOSH. * * This is the JavaScript version of the Strophe library. Since JavaScript * has no facilities for persistent TCP connections, this library uses * Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate * a persistent, stateful, two-way conn...
var port = process.env.PORT || 5000; var redirectUrl = process.env.REDIRECT_URL || 'http://example.com'; var redirectStatusCode = process.env.REDIRECT_STATUS_CODE || 301; var keepRequestPath = process.env.REDIRECT_KEEP_REQUEST_PATH || false; var app = require('./server')({ 'redirectUrl' : r...
(function(){ 'use strict'; angular.module('cla.controllers') .controller('OutcomesModalCtl', ['$scope', 'case', 'eod_details', 'event_key', 'outcome_codes', 'notes', 'tplVars', '$uibModalInstance', '$timeout', 'flash', 'postal', 'Feedback', 'Complaint', function($scope, _case, eod_details, event_...
describe("About Arrays", function() { // We shall contemplate truth by testing reality, via spec expectations. it("should create arrays", function() { var emptyArray = []; expect(typeof(emptyArray)).toBe('object'); // A mistake?-- http:javascript.crockford.com/remedial.html expect(emptyArray.length)....
import logger from 'kolibri.lib.logging'; import store from 'kolibri.coreVue.vuex.store'; import Lockr from 'lockr'; import urls from 'kolibri.urls'; import mime from 'rest/interceptor/mime'; import interceptor from 'rest/interceptor'; import baseClient from './core-app/baseClient'; import { SIGNED_OUT_DUE_TO_INACTIVIT...
import React from 'react'; import Authenticator from '../Authenticator'; import ShowHidePassword from '../../ShowHidePassword'; import {generateFormChangeHandler} from '../../../utils/form-handler'; import t from '../../../i18n/locale-keys'; class BankIdMethod extends React.PureComponent { constructor(props) { ...
module.exports = { loadingLabel: function () { //Here we add a label to let the user know we are loading everything //This is the "Loading" phrase in pixel art //You can just as easily change it for your own art :) this.loading = game.add.sprite(game.world.centerX, game.world.centerY...
const Color = require('color'); /** * Check param format and throw some errors */ function checkParam(array, n) { // Seriously? Anyone this dumb? if (array.length < 2) { throw new Error('Color array length must > 1'); } // Read the documentation OMG! Of course no frac at the end! if (array[array.leng...
'use strict'; define(['app'], function(app) { app.register.factory('regionModel', function () { return { region: 'USA' }; }); });
var Stappo = require("../dist/stappo.bundle"); var stappo; describe("Stappo Generic (Bundle)", function () { beforeEach(function(){ stappo = new Stappo(); }); it("should notify only active listeners", function () { const listener1 = stappo.listen( s => { expect(s.a).toBe(1); }); const listener2 = stap...
import React, { PropTypes } from 'react' import { Modal } from 'react-bootstrap' import { TextInput, NumberInput } from '../forms/controls' class VehicleDialog extends React.Component { constructor(props, context) { super(props, context) this.onChange = this.onChange.bind(this) this.onChangeMileage = t...
/* jshint globalstrict: true */ "use strict"; function $CompileProvider($provide) { var hasDirectives = {}; var PREFIX_REGEXP = /(x[\:\-_]|data[\:\-_])/i; var BOOLEAN_ATTRS = { multiple: true, selected: true, checked: true, disabled: true, readOnly: true, r...
'use strict'; app.controller('PlayerAdminController', ['$scope', '$rootScope', '$location', 'Event', 'Player', 'SYNC_EVENTS', function ($scope, $rootScope, $location, Event, Player, SYNC_EVENTS) { $scope.gridApi = null; $scope.grid_opts = { enableFiltering: false, enableSor...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor....
<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7&appId=1128568017194428"; fjs.parentNode.insertBefore(js, fjs); }(document...
define(function () { 'use strict'; function _isNumber(n) { return !isNaN(parseFloat(n)) && isFinite(n); } function _isString(s) { return typeof(s) === 'string'; } function _isArray(arr) { return arr instanceof Array; } function _isObject(arr) { return ...
import PropTypes from 'prop-types'; export class Filter { static propTypes = { name: PropTypes.string.isRequired, label: PropTypes.string.isRequired, type: PropTypes.func, options: PropTypes.object, defaultOperator: PropTypes.string, defaultValue: PropTypes.any, ...
#!/usr/bin/env node var vows = require('vows'), assert = require('assert'), path = require('path'), fs = require('fs'), spawn = require('child_process').spawn, out = '', error = '', basename = path.basename(__filename), input = [ 'test-in/input-dir/*', 'test-in/input-dir...
import React from 'react'; import renderer from 'react-test-renderer'; import applyMarkdown, {useStyle} from './apply-markdown'; const renderFragments = frags => renderer.create(frags).toJSON(); const coolResult = [ 'be ', { type: 'b', props: { className: 'info' }, children: ['cool'] } ]; ...
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import Markdown from '../utils/Components/Markdown'; import CodeExample from '../utils/Components/CodeExample'; import Readme from '../../src/DatePicker/README.md'; import ExampleControlled from './ExampleControlled'; import ExampleControlledRaw fr...
angular.module("ui.rCalendar.tpls", ["templates/rcalendar/calendar.html","templates/rcalendar/day.html","templates/rcalendar/displayEvent.html","templates/rcalendar/month.html","templates/rcalendar/monthviewDisplayEvent.html","templates/rcalendar/monthviewEventDetail.html","templates/rcalendar/week.html"]); angular.mod...
import React, { Component, useState } from 'react'; import { shallow, mount } from 'enzyme'; import nj, { html } from 'nornj'; import '../../src/base'; function putStateValue(value, ret) { return value.prop == 'state' ? ret : putStateValue(value.parent, { [value.prop]: ret }); } nj.registerExtension( 'stateBind',...
var Meetup;
//Modificadores jQuery para el CSS var ht = $(window).height(); var ma = (($(window).height())/5); $(document).ready(function(){ $("#inicioHeader").css("height",ht); $(".vcenter").css("margin-top",ma) }); var app = angular.module('appNav', [ ]); //Botones para el nav /*Se inicia el controller*/ /* keywo...
'use strict'; // Base error class for further extending class ExtendableError extends Error { constructor(message) { super(message); this.name = this.constructor.name; Error.captureStackTrace(this, this.constructor.name); } } module.exports = ExtendableError;
/* Version: 16.0.6216.3006 */ /* Copyright (c) Microsoft Corporation. All rights reserved. */ /* Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419. */ /// <reference path="outlook-win32.debug.js" /> Office._ExcelMask = 0x1; Office...
'use strict'; var stubs = require('../stubs'); stubs.messageKeys(); var assert = require('assert'); var simpleAppMessage = require('../../../src/js/index'); var utils = require('../../../src/js/utils'); var fixtures = require('../fixtures'); var sinon = require('sinon'); var serialize = require('../../../src/js/lib/se...
import Ember from 'ember'; export default Ember.Component.extend({ tagName: 'li', classNameBindings: [':legislator', 'legislator.isSelected:selected'], legislator: null, click: function(){ this.sendAction(); this.get('legislator').set('isSelected', true); } });
//Autogenerated by ../../build_app.js import sampled_data from 'ember-fhir-adapter/models/sampled-data'; export default sampled_data;
/* * Globalize Culture hi-IN * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need t...