code
stringlengths
2
1.05M
(function() { 'use strict'; angular .module('app') .directive('templateView', directive); directive.$inject = ['$templateRequest', '$compile']; function directive($templateRequest, $compile) { return { restrict: 'A', scope: { watch: '=wa...
const config = require('georap-config'); const path = require('path'); const morgan = require('morgan'); const fse = require('fs-extra'); const fs = require('fs'); // Setup // Ensure directory for access logs exist. // eslint-disable-next-line no-sync fse.ensureDirSync(config.logDir); // Interface exports.http = fu...
// custom awesomplete event inputBank.addEventListener('awesomplete-selectcomplete', function() { removeClass('visually-hidden', containerLoanType); }); // new bank picked, reset loan type and location selects and hide location inputBank.addEventListener('keydown', function() { inputType.selectedIndex = 0; inputL...
import React from '../src/react-native'; import { expect } from 'chai'; let {StyleSheet} = React; describe('StyleSheet', () => { let styles = StyleSheet.create({ listItem: { flex: 1, fontSize: 16, color: 'white' }, selectedListItem: { color: 'green' }, headerItem: { ...
import City from '../models/city'; import mongoose from 'mongoose'; export function createCity(req, res) { const reqCity = req.body.city; if (reqCity && reqCity.hasOwnProperty('name') ) { const city = new City({ name: reqCity.name }); city.save((err) => { if (err) { res.json(...
if (typeof ace == "undefined" && typeof require == "undefined") { document.body.innerHTML = "<p style='padding: 20px 50px;'>couldn't find ace.js file, <br>" + "to build it run <code>node Makefile.dryice.js full<code>" } else if (typeof ace == "undefined" && typeof require != "undefined") { require(["ace/ace"], ...
var searchData= [ ['main',['main',['../freertos__init_8c.html#a840291bc02cba5474a4cb46a9b9566fe',1,'freertos_init.c']]], ['major_5fversion',['MAJOR_VERSION',['../freertos__init_8h.html#aa9e8f3bb466bb421d13913df7aeaa20c',1,'freertos_init.h']]], ['mask',['mask',['../struct_config_option.html#ac8c9d99797b3fb0420507e...
import _ from "lodash"; import EX from "../ex.js"; export default class Sidebar { static initialize() { let $sidebar = Sidebar.$panel; if ($sidebar.length === 0) { return; } $sidebar.parent().addClass("ex-panel-container"); $sidebar.addClass("ex-panel") const width = _.defaultTo...
function Range(elem, config) { function on(el, ev, fn) { if (el[addEventListener]) { el[addEventListener](ev, fn, F); } else if (el[attachEvent]) { el[attachEvent]('on' + ev, fn); } else { el['on' + ev] = fn; } } function updateDrag(event) { event = event || window.event; ...
directions = $('pre').innerText; floor_number = 0; for (i = 0; i < directions.length; i++) { if (directions.charAt(i) == "(") { floor_number++; } else { floor_number--; } } console.log(floor_number); directions = $('pre').innerText; floor_number = 0; for (i = 0; i < directions.length; i++) { if (directions.charAt(i) =...
/** * Module dependencies. */ var stylus = require('stylus'); var fs = require('fs'); var chai = require('chai'); var expect = chai.expect; chai.should(); /** * Read test/cases directory and filter all `.styl` files, then remove * this extension for each file in the collection and prepare to test. */ var cases =...
'use strict'; var mongoose = require("mongoose"); var Schema = mongoose.Schema; /** * Schema for a registration */ var RegistrationSchema = new Schema({ teamName : String, numTeams : Number, email : {type : String, set : function(email) { return email.toLowerCase(); }}, tournamentid : Stri...
import JSZip from 'jszip'; import FileSaver from 'file-saver'; export function generateZip(embedName, files) { let zip = new JSZip(); for (let file of files) { zip.file(file.getName(), file.getValue()); } return zip; } export function saveZipAsFile(embedName, zip) { zip.generateAsync({ type: 'blob' })....
// A series is defined in the following manner:Given the nth and (n+1)th terms, // the (n+2)th can be computed by the following relation T n+2 = (T n+1) 2 + T n // So,if the first two terms of the series are 0 and 1:T3=1^2+0=1 T4=1^2+1=2 T5=2^2+1=5. // Given three integers A, B and N, such that the first two terms ...
var path = require('path'), child_process = require('child_process'), istanbul = path.join(__dirname, "..", "..", "node_modules", ".bin", "istanbul"), bin = './bin/torrentfish', tests_run = 0 function array_from(obj) { return Object.keys(obj).reduce(function (array, key) { return array.push(key), array...
/** * @copyright * The MIT License (MIT) * * Copyright (c) 2014 Cosmic Dynamo LLC * * 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 limitatio...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), fs = require('fs'), defaultAssets = require('./config/assets/default'), testAssets = require('./config/assets/test'), testConfig = require('./config/env/test'), glob = require('glob'), gulp = require('gulp'), gulpLoadPlugins = requi...
import Ember from 'ember'; import Numericality from 'ember-validations/validators/local/numericality'; import Mixin from 'ember-validations/mixin'; import { buildContainer } from '../../../helpers/container'; var model, Model, options, validator; var set = Ember.set; module('Numericality Validator', { setup: functi...
/* var path = require('path'); * var webpack = require('webpack'); * var cssnext = require('postcss-cssnext'); * var postcssReporter = require('postcss-reporter'); * //import { config, babelConfig } from './package.json'; * */ var path = require('path'); var webpack = require('webpack'); var ExtractTextPlugin = r...
var app = require('express')(), wizard = require('hmpo-form-wizard'), steps = require('./steps'), fields = require('./fields'); app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' })); app.use(wizard(steps, fields, { controller: require('../../../controllers/form'), tem...
angular.module('conapps').service('merakiProductService', [ '$meteor', function($meteor){ var MerakiProductService = function(product){ this.product = (product) ? product : this.defaultProduct(); } MerakiProductService.prototype.setProduct = function (product){ angular.copy(product, this.product)...
Template.menu.onRendered(function() { this.$(".ui.dropdown").dropdown() }); Template.menu.helpers({ isArray(value) { return _.isArray(value) } }) Template.menuLink.onRendered(function() { let attrs = [] const data = Template.currentData() for(let d in data) { if(d != 'value' && d...
import React from 'react'; import {blue900} from 'material-ui/styles/colors'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; export default getMuiTheme({ palette: { primary1Color: blue900 }, })
const Prefs = require("sdk/simple-prefs"); const { get } = require("./request"); const { emit } = require("sdk/event/core"); const { EventTarget } = require("sdk/event/target"); const { setTimeout, clearTimeout } = require("sdk/timers"); const URL = "https://treestatus.mozilla.org/?format=json"; let target = module.ex...
define([ 'jquery', 'underscore', 'backbone', 'timeago' ], function($, _, Backbone) { var viewCount = 0; var BaseAppView = function(options) { this.cid = _.uniqueId('view'); this._configure(options || {}); this._ensureElement(); this.initialize.apply(this, arguments); this.delegateEvents(); log("VIEW...
import{a}from"./chunk-Q3PN54RS.js";import{a as t,b as o}from"./chunk-CRHAEB4O.js";var e="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js";function r(){return a([o(e),t("https://fallenswordhelper.github.io/fallenswordhelper/resources/prod/1524/dataTables.css")])}export{r as a}; //# sourceMappingURL=chunk-...
angular.module('pd.controllers', []) .controller('AppCtrl', function($scope, $ionicModal, $timeout) { // With the new view caching in Ionic, Controllers are only called // when they are recreated or on app start, instead of every page change. // To listen for when this page is active (for example, to refresh da...
var azureContainer = require('./factory')(); var fileMeta = require('./fileMeta'); /** * Initialze will make sure that a container is created if one does * not exist. But if the container already exists, then this call * can be completely removed. */ function initializeContainer() { var files = fileMeta....
/** * @class Oskari.userinterface.component.buttons.OkButton * * Generic button component to make each button look the same in Oskari */ Oskari.clazz.define('Oskari.userinterface.component.buttons.OkButton', /** * @method create called automatically on construction * @static */ func...
var getUsersetLists = function(){ $.ajax({ method: "post", async: true, dataType: "json", url: '/sge/sgelists', success: function(data){ var html = '<div class="table-responsive"><table class="table table-hover"><thead><tr><th>User Lists</th><th>Users</th><th></th></tr></thead><tbody>'; ...
import React from 'react' import PropTypes from 'prop-types' import { StyleSheet, Platform, ViewPropTypes, View } from 'react-native' import FullTab from './FullTab' /** * A Tab for the shifting bottom navigation bar, implemented according to the * Bottom navigation specs. * In its inactive state, only the icon is ...
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actionCreators from '../actions/actionCreators'; import MainComponent from '../components/MainComponent'; //either rename the properties or rename it also in main function mapStateToProps(state) { let charts = state.chart...
import Ember from 'ember'; export default Ember.Mixin.create({ user: Ember.Object.create({ id: 1, header: Ember.Object.create({ image_ids: Ember.A([ { id: 1, desc: '' }, { id: 2, desc: '' }, { id: 3, desc: '' } ]), name: 'John Doe', profession: 'Profession Titl...
suite('Markup', function() { benchmark('DOMly', function() { var result = document.getElementById('result'); while (result.firstChild) { result.removeChild(result.firstChild); } result.appendChild(templates.Structure()); }); if (!window.domlyOnly) { var HTMLBars = requireModule('htmlba...
defineClass('Consoloid.OS.File.File', 'Consoloid.OS.File.FileInterface', { __constructor: function(options) { this.__base($.extend({ fs: require('fs-ext'), buffer: require('buffer').Buffer, fd: undefined, eof: undefined, flags: undefined }, options)); }, open: function(pat...
/** * @license Highcharts JS v9.1.0 (2021-05-04) * * (c) 2010-2021 Highsoft AS * Author: Sebastian Domas * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; ...
const Sequelize = require('sequelize') const idea = { model: { name: Sequelize.STRING, summary: Sequelize.STRING }, options: { freezeTableName: true }, relations: [ ['belongsTo', 'hub'], ['hasMany', 'pitch'] ] } module.exports = idea
import React, { Component } from 'react' class Root extends Component { constructor(props) { super(props) this.state = { count: props.count || 0 } } componentDidMount() { chrome.storage.onChanged.addListener((changes, namespace) => { this.setState({ count: changes.count.newValue }) }) }...
"use strict"; var React = require('react/addons'); var assign = require('react/lib/Object.assign'); var Helpers = require('../mixins/Helpers'); var Element = React.createClass({ mixins: [Helpers.Element], render: function () { /* * Not sure if should allow more then one property? */ var classNa...
import path from 'path' import gulp from 'gulp' import * as utils from './build-utils' import getOutput from './get-output' const srcPath = path.join(__dirname, '../src') const buildPath = `${getOutput()}/core` const files = utils.files const paths = { // styles: { // src: [`${srcPath}/styles/themes/defau...
const path = require("path"); module.exports = { mode: "development", entry: "./index.js", output: { filename: "aframe-cubemap-component.js", path: path.resolve(__dirname, "dist"), }, };
'use strict'; var browserify = require('browserify'); var gulp = require('gulp'); var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var uglify = require('gulp-uglify'); var sourcemaps = require('gulp-sourcemaps'); var getBundleName = function () { var name = require('./package.json'...
angular.module('home', [ 'ngRoute' ]);
/* global window */ /** * @module SceneScroller */ 'use strict'; /** * @namespace SceneScroller */ var SceneScroller = {} /** * @property {String} version The version of this SceneScroller distribution. */ SceneScroller.version = require('../package.json').version /** * @property {Class} EventEmitter * @se...
import {MapAreaLayout} from 'app/home/map/mapAreaLayout' import {VisualizationSelector} from 'app/home/map/imageLayerSource/visualizationSelector' import {additionalVisualizations, getAllVisualizations} from './ccdcSliceRecipe' import {compose} from 'compose' import {getUserDefinedVisualizations} from 'app/home/body/pr...
angular.module('myApp').service('HtmlMetaTagService', ['$location', function($location) { var HtmlMetaTagService = this; var metaData = { title: 'Feira Orgânica Delivery - Produtos organicos entregues em sua porta.' }; var posposition = ' - Feira orgânica Delivery'; return { re...
//eg. var first_image = {src:"img/con_Block_5.08mm_12.png", scale:0.6, id:"conBlock1", isSymbol:true, dragClone:true, pos:view.center }; var idata=[{src:"img/con_Block_5.08mm_12.png",scale:0.6}]; window.globals.imagesAvailable = idata; //getImgAvail; console.log("Images available locally:"+idata.length);
(function e$$0(q,y,c){function g(f,m){if(!y[f]){if(!q[f]){var a="function"==typeof require&&require;if(!m&&a)return a(f,!0);if(l)return l(f,!0);a=Error("Cannot find module '"+f+"'");throw a.code="MODULE_NOT_FOUND",a;}a=y[f]={exports:{}};q[f][0].call(a.exports,function(a){var c=q[f][1][a];return g(c?c:a)},a,a.exports,e$...
angular.module("ChristmasTracker") .controller("partyListCtrl", function($rootScope, $scope, party) { $scope.getParties = function() { $scope.parties = party.query() $scope.parties.$promise.catch(function(reason) { $rootScope.errorMessage = reason; }) return $scope.parties.$promise; }; $scope.createP...
/*jshint -W098 */ ( function( root, factory ) { /* istanbul ignore if */ if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define( [ "lodash" ], function( _ ) { return factory( _, root ); } ); /* istanbul ignore else */ } else if ( typeof module === "object" && m...
$(document).ready(function(){ var cells = document.getElementsByClassName("markCell"), i, count = cells.length, markCleaning = function (p_mark){ return Number(p_mark); }, cellsBlurListener = function (e){ var idMark = e.target.dataset.markId, ...
export default { Input: require('./examples/input').default, Fields: require('./examples/fields').default, CustomField: require('./examples/customField').default, };
version https://git-lfs.github.com/spec/v1 oid sha256:a305c7ecfcbe2eb18071719d9f726e82b9f01937de08e8df885a5823327e8712 size 65474
import NextEvent from './NextEvent.jsx'; import List from './List.jsx'; export default { NextEvent, List };
function usernameInput(){ return { require: '^form', restrict: 'E', templateUrl: 'partials/usernameInput.html' } } angular.module('RssReaderApp').directive('usernameInput', usernameInput);
import 'mocha'; import chai from 'chai'; import Attachments from '../src/attachments'; chai.should(); describe('Attachments', () => { describe('defaults', () => { it('should apply defaults correctly', done => { const attachments = new Attachments({ text: 'hi', }); attachments.add(); ...
import { format } from "date-fns" import { Container } from "./styles" const PostTime = ({ className, post }) => { const formattedDate = format(new Date(post.created_at), "MMMM do yyy") return ( <Container className={className}> <time>{formattedDate}</time> <small> - </small> <span> ...
/** * This file contains functions for translating math notation * as well as a list of locales that these functions should be applied to. */ /** * Locale lists for different math notations, taken from this table: * https://docs.google.com/spreadsheets/d/1qgi-KjumcZ6yru19U5weqZK9TosRlTdLZqbXbABBJoQ/edit#gid=0 * ...
import Page from '../Page'; import './search_form_station.scss'; import queryString from 'queryString'; import StationSection from "../parts/StationSection"; import RosenSection from "../parts/RosenSection"; import HitCount from "../parts/HitCount"; export default class SearchFormStationPage extends Page { indexAct...
const gulp = require('gulp'); var webserver = require('gulp-webserver'); gulp.task('webServer', function() { gulp.src('src/app') .pipe(webserver({ port:'3000', livereload: { enable: true, // need this set to true to enable livereload filter: function(fileName) { ...
// // This is only a SKELETON file for the 'Robot Simulator' exercise. It's been provided as a // convenience to get you started writing code faster. // export class InvalidInputError extends Error { constructor(message) { super(); this.message = message || 'Invalid Input'; } } export class Robot { get ...
var Pipeline = require("../pipeline"); var Stream = require("stream"); var through = require('through'); var JSONStream = require('JSONStream'); var test = require('tap').test; function write(buf){ this.emit('data',buf); } test('instances of objects Should be returned', function(t) { t.plan(3); var stre...
/** * Get prefix of wrapped component * @function prefixOf * @param {function} component - A component class * @returns {string} */ 'use strict' const { spinalcase } = require('stringcase') /** @lends prefixOf */ function prefixOf (Component) { return spinalcase(Component.wrappedComponentName || Component.name)...
angular.module('anol.scale') /** * @ngdoc function * @name anol.scale.function:calculateScale * * @param {Object} view ol.View object * * @returns {number} current scale */ .constant('calculateScale', function(view) { var INCHES_PER_METER = 1000 / 25.4; var DPI = 91; // found at https://groups.googl...
var moment = require("../../moment"); /************************************************** Dutch *************************************************/ exports["lang:nl"] = { setUp : function (cb) { moment.lang('nl'); cb(); }, tearDown : function (cb) { mo...
'use strict'; const {AdvancedSearch} = require('./advanced_search'); class CreditCardSearch extends AdvancedSearch { static initClass() { this.multipleValueField('ids'); } } CreditCardSearch.initClass(); module.exports = {CreditCardSearch};
'use strict'; // console.log('contentscript.js'); var port = chrome.runtime.connect(); window.addEventListener('message', function (event) { // We only accept messages from ourselves if (event.source != window) return; if (event.data.type && event.data.type == 'FROM_PAGE') { console.log('Content script re...
/* * jquery.wikify * * Copyright (c) 2013 moises.rangel@gmail.com * http://mda-solutions.aws.af.cm * * Licensed under MIT * http://www.opensource.org/licenses/mit-license.php * * Launch : July 2013 * Version : .01-beta1 * Dependencies: qtip (http://qtip2.com/) */ (function($) { $.fn.wikify =...
// AHEvent is a constructor for an AbuseHelper-style event object. // // Previously each AHEvent instance stored key-valuelist pairs in an // object, e.g.: // // attrs = { // key1: [value1A], // key2: [value2A, value2B], // ... // }; // // This seems to consume a lot of memory on the current browser // ...
!function(t){"use strict";t(".page-scroll a").bind("click",function(a){var o=t(this);t("html, body").stop().animate({scrollTop:t(o.attr("href")).offset().top-50},1250,"easeInOutExpo"),a.preventDefault()}),t("body").scrollspy({target:".navbar-fixed-top",offset:51}),t(".navbar-collapse ul li a").click(function(){t(".navb...
window.packageConfig = [ { name: 'npm', file: 'package.json', registry: 'npm', parse: window.parser.json, keys: ['dependencies', 'devDependencies'], }, { name: 'composer', file: 'composer.json', registry: 'packagist', parse: window.parser.json, keys: ['require'...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:opportunities', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { var route = this.subject(); assert.ok(route); });
function Keyboard (options) { this.keys = { up: false, down: false, left: false, right: false, action: false }; this.element = options.element; this.element.addEventListener('keydown', this.onKeyDown.bind(this)); this.element.addEventListener('keyup', this.onKeyUp.bind(this)); } Keyboard....
import Ember from 'ember'; import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('paper-group-radio', 'Integration | Component | paper radio group', { integration: true }); function triggerKeydown(domElement, k) { let oEvent = document.createEvent...
"use strict"; function setColors(ctx, stroke, fill) { if (typeof(stroke) === 'undefined') stroke = 'black'; if (typeof(fill) === 'undefined') fill = 'blue'; ctx.fillStyle = fill; ctx.strokeStyle = stroke; } function drawLine(ctx, px, py, qx, qy) { ctx.beginPath(); ctx.moveTo(px, py); ctx.l...
'use strict'; angular.module('nav', []);
import * as React from 'react' import Dialog from 'material-ui/Dialog' import FlatButton from 'material-ui/FlatButton' class ErrorDialog extends React.Component { render() { const actions = [ <FlatButton label="OK" primary onTouchTap={() => this.props.onClose()} /> ] return ( <div> <Di...
import React from 'react'; import LinkTo from '@storybook/addon-links/react'; import Markdown from 'wix-storybook-utils/Markdown'; import Introduction from './Introduction.md'; import IntroductionExample from './IntroductionExample'; import { Category } from '../../../../stories/storiesHierarchy'; import { TextButton...
define(["srv/auth/AuthorizationProvider"], function (AuthorizationProvider) { return AuthorizationProvider.inherit({ isResponsibleForAuthorizationRequest: function (context, authorizationRequest) { return authorizationRequest.$.type === "file"; }, _isAuthorized: function (cont...
(function() { var logError; window.onerror = function(msg, url, line) { logError(msg, arguments.callee.trace()); }; logError = function(ex, stack) { var out, url; if (ex === null) return; if (logErrorUrl === null) { alert('logErrorUrl must be defined.'); return; } url = ex....
"use strict"; var React = require('react/addons'); var ResultComponent = React.createClass({ componentDidMount: function () { this.update(); }, componentDidUpdate: function () { this.update(); }, update: function () { if (this.refs.root) { var node = this.refs.root.getDOMNode(); node...
'use strict'; module.exports = function( grunt ) { return { options: { thresholds: { 'statements': 75, 'branches': 75, 'lines': 75, 'functions': 75 }, dir: 'coverage', root: grunt.config( 'covera...
System.register(['angular2/core', './hero-child.component', '../../mock-heroes'], function(exports_1, context_1) { "use strict"; var __moduleName = context_1 && context_1.id; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ...
/** * Create the mark container. For layering purposes (i.e., for the z-index), a * dummy mark container is once as a place holder. Unlike all other elements, * the Marks are created / destroyed on demand, which is why we need a g * container. * * @param {!glift.svg.SvgObj} svg Base svg obj * @param {!glift.dis...
// Bouncing boxes (function() { var boxes = document.getElementsByClassName('animatedBox'); for (var i = 0; i < boxes.length; i++) { (function(box) { var isAnimationRunning = false; // Get the int value of how far left the box is var boxRect = box.getBoundingClientRect(); var elementLeft...
/** * Implementation for the **SERVER** side. Available as `Meteor.directStream` singleton. * * @typicalname Meteor.directStream * @extends DirectStreamAccessCommon * @category SERVER * @type {DirectStreamAccess} */ DirectStreamAccess = class DirectStreamAccess extends DirectStreamAccessCommon { /** * R...
var chai = require('chai'); var path = require('path'); import sinonChai from'sinon-chai' chai.use(sinonChai) import sinon from 'sinon' var Manager = require('../../../../src/cli').Manager var config = require('../../../../src/cli').config var cmsOperations = require('../../../../src/cli').cmsOperations config.set({ro...
module.exports = function(op, a) { return 0 <= op(a); };
/** * Created by Pelomedusa on 14/02/2017. */ /* French initialisation for the jQuery UI date picker plugin. */ /* Written by Keith Wood (kbwood{at}iinet.com.au), Stéphane Nahmani (sholby@sholby.net), Stéphane Raimbault <stephane.raimbault@gmail.com> */ ( function( factory ) { if ( typeof define === "function" ...
var chai = require('chai'); var expect = require('chai').expect; var chaiAsPromised = require("chai-as-promised"); chai.use(chaiAsPromised); var ss = require('../../sidekick-security'); var path = require('path'); var Promise = require('bluebird'); describe('security analyser', function() { describe('scans real fi...
import * as React from 'react'; import * as axios from 'axios'; import styled from 'styled-components'; import Container from '../components/Container'; import Video from '../components/Video'; import Button from '../components/Button'; const LoadingText = styled.p` margin: 2rem 0; text-align: center; `; const P...
var ipfsd = require('../index.js') var assert = require('assert') var ipfsApi = require('ipfs-api') describe('disposable node with local api', function () { this.timeout(20000) var ipfs before(function (done) { ipfsd.disposable(function (err, node) { if (err) throw err ipfs = ipfsApi(node.opts['A...
/*! modalRefNatol 12-03-2015 */ !function(a,b){return a(b).ready(function(){a(".ntl-modal").each(function(b,c){var d=a(c),e=d.attr("href"),f=d.attr("ntl-content");d.click(function(b){b.preventDefault();var c=f+"-container",d=a("#"+c);d.length?a("#"+f).modal("toggle"):(a("body").append('<div id="'+c+'"></div>'),a("#"+c)...
function demo () { view.moveCam({ theta:0, phi:60, distance:100, target:[0,0,0] }); physic.set(); // reset default setting // infinie plane physic.add({type:'plane', group:1}); // side wall physic.add({type:'box', group:1, size:[100,20,1], pos:[0,10,50.5] }); physic.add({type:'box', grou...
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "pre podne", "popodne" ], "DAY": [ "nedelja"...
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var React = require('react'); var PropTypes = ...
export default Ember.ArrayController.extend({ needs: ['market'], market: Ember.computed.alias("controllers.market"), sortProperties: ['price'], sortAscending: false, refresh: function () { this.set('content', []); this.set('content', this.store.find('market_order', {marketid: this.get('market.marketi...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
/* Make sure to change all $() to jQuery() if you're using directly in WordPress */ $(document).ready(function() { var closeHeight = '5em'; /* Default "closed" height */ var moreText = 'Afficher la suite'; /* Default "Read More" text */ var lessText = 'Réduire'; /* Default "Read Less" text */ var duration = '100...
import Ember from 'ember'; export default Ember.Controller.extend({ isValid: Ember.computed( 'model.title', 'model.body', { get() { return !Ember.isEmpty(this.get('model.title')) && !Ember.isEmpty(this.get('model.body')); } } ), actions:{ save(){ if(this.ge...