code stringlengths 2 1.05M |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _vue = require("vue");
var _vue2 = _interopRequireDefault(_vue);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var bus = new _vue2.default();
exports.default = bus; |
//1. Copy onpremise files into distribution folder
//First from addon folder, second from shared folder
var pathes = [
'addon/onpremise/*',
'addon/onpremise/src/aps/*',
'addon/onpremise/src/main/java/com/yasoon/jira/*',
'addon/onpremise/src/main/resources/*',
'addon/distribution/onpremise',
];
var cop... |
/*
To use/test admin panel in your local machine you have to insert an admin data mannually in mongoDB
and make sure you make "HasAccess" set to "true" as it is "false" by default
*/
var express = require('express');
var router = express.Router();
var sess = {};
// Admin schema imported
var Admin = require("./../mode... |
export class Character {
constructor() {
this.strength = Character.rollAbility();
this.dexterity = Character.rollAbility();
this.constitution = Character.rollAbility();
this.intelligence = Character.rollAbility();
this.wisdom = Character.rollAbility();
this.charisma = Character.rollAbility();
... |
/**
* 执行fn并把一个新的Wrapper的$()和$$()传递给它
* 如果没有传递任何参数,则执行{@link M.exportDSL}
* @namespace {Function} M
* @param {Function} [fn]
*/
var M=function(fn){
if(arguments.length == 0){
return M.exportDSL();
}else if(fn){
var wrapper = M.$wrapper();
var args = Array.prototype.slice.call(arguments, 1);
return fn.apply(th... |
var assert = require('assert');
var toArabic = require('./../index.js').toArabic;
var literals = [ 'I', 'IV', 'VIII', 'XV', 'XVI', 'XXIII', 'XLII', 'LXXXIV', 'C',
'CCLVI', 'DXII', 'MXXIV', 'MMXLVIII', 'MMMCMXCIX' ];
var objects = literals.map(function (x) { return new String(x) });
var lowercase = literals.map(funct... |
const process = require("process"),
mysql = require("mysql"),
config = require("../../config.json");
module.exports = (function() {
const connectURL = `${config.databaseEndPoint || process.env["OPENSHIFT_MYSQL_DB_URL"]}bot`;
// TODO: Pooling
const query = (...args) => {
const connection ... |
export var STORAGE;
(function (STORAGE) {
STORAGE[STORAGE["local"] = 0] = "local";
STORAGE[STORAGE["session"] = 1] = "session";
})(STORAGE || (STORAGE = {}));
//# sourceMappingURL=storage.js.map |
var debug = require('debug')('kaffeeundkuchen.api.player');
function handlePlayRequest(req, res) {
debug('handle play request');
var spotifyWrapper = req.app.get('spotifyWrapper')
, spotifyId = req.params.trackid
, track = spotifyWrapper.getCachedTrack(spotifyId);
spotifyWrapper.playTrack(track);
res.json({... |
var needleTail = {
url: '',
initialize: function (twoWayControllerUrl) {
this.url = twoWayControllerUrl;
if (!!window.EventSource) {
var source = new EventSource(this.url);
source.addEventListener('message', function (e) { needleTail.executeServerCall(e); }, false);
... |
sabio.services.jobPosting = sabio.services.jobPosting || {};
sabio.services.jobPosting.post = function (data, onSuccess, onError) {
var url = "/api/jobpostings";
var settings = {
cache: false,
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
data: data,
dataType... |
/**
* @author: Michael
* @date: 2017-07-28 17:35:05
* @last modified by: Michael
* @last modified time: 2017-07-28 17:35:05
* @gitHub: https://github.com/maxsmu
*/
import { handleActions } from 'redux-actions';
import {
get_monitor,
get_sows_monitor,
update_monitor_data,
editor_state
} from '@actions/monitor/a... |
version https://git-lfs.github.com/spec/v1
oid sha256:646a3daef1fe62622e901f30d5618120b08c991ea1bcc0b5e6717db92b9efac1
size 52927
|
//~ name b64
alert(b64);
//~ component b65.js
|
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
// load up the user model
var User = require('../app/models/user/user');
// expose this function to our app using module.exports
module.exports = function(passport) {
// =======================... |
import fs from 'fs';
import path from 'path';
import zlib from 'zlib';
import request from 'supertest';
import promisify from 'es6-promisify';
import app from '../app';
import sites from '../actions/sites';
import imageQueue from '../queues/images';
import db from '../db/db';
import storage from '../aws-s3';
const o... |
$(document).ready(function() {
var movieApp = {};
movieApp.apiKey = 'ca6ea09713defa345edd21995ca6f8f8';
movieApp.getMovies = function(year){
$.ajax({
url: `https://api.themoviedb.org/3/discover/movie?`,
method: 'GET',
dataType: 'jsonp',
data: {
api_key: movieApp.apiKey,
primary_release_year: year,
... |
import SearchPanel from "./SearchPanel.js";
export default function main(session)
{
let searchPanel = new SearchPanel(session);
session.toolbar.addButton("Search", () => searchPanel.attach());
}
|
/////////////////////////////////////////////////////////////////////////////////////
// status
/////////////////////////////////////////////////////////////////////////////////////
var ENV = require('./_config/modules/status')
var PROD = ENV === 'production'
console.log('\n' + 'status ----\n\n' + ENV + '\n\n----')... |
// jquery.gohashurl.js
// copyright Jiangshui
// website http://yujiangshui.com
// contact yujiangshui@gmail.com
// https://github.com/yujiangshui/jquery.gourlhash.js
;(function($) {
$.extend({
'gohashurl': function(options){
options = jQuery.extend({
target: '',
topfixed: '',
offset: 10,
duration: 2... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['mk'] = {
"editor": "Rich Text Editor",
"editorPanel": "Rich Text Editor panel",
"common": {
"editorHelp": "Притисни ALT 0 за помош",
... |
var express = require('express');
var mongoose = require('mongoose');
var moment = require('moment');
var bodyParser = require('body-parser');
var Point = require('./point.js');
var app = express();
app.use(bodyParser.json());
if (process.env.DEBUG) {
mongoose.connect('mongodb://localhost/tracker');
}
else {
... |
var winston = require('winston');
require('newrelic');
//
// Requiring `winston-papertrail` will expose
// `winston.transports.Papertrail`
var express = require('express');
var http = require('http');
var path = require('path');
var app = express();
var sprintf = require('sprintf').sprintf;
var sscanf = require('sc... |
angular.module('dotametrics')
.config(['$routeProvider',
function($routeProvider) {
$routeProvider
.when('/denies', {
controller: 'DeniesController',
templateUrl: 'templates/denies.html'
})
.when('/cs', {
controller: 'csController',
templateUrl... |
/*!
* @module report
* @author kael
* @date @DATE
* Copyright (c) 2014 kael,chriscai
* Licensed under the MIT license.
*/
var BJ_REPORT = (function(global) {
if (global.BJ_REPORT) return global.BJ_REPORT;
var _error = [];
var orgError = global.onerror;
global.onerror = function(msg, url, line, co... |
const random = require('./random');
const round = require('./round');
const config = require('../../config');
/**
* get provider from list with load balance
* @param {string} invokerDescription
* @param {Array<Provider>} providers
* @return {Provider}
*/
module.exports = (invokerDescription, providers) => {
if ... |
/* global require, describe, it, before, after, beforeEach, afterEach */
'use strict';
var path = require('path'),
assert = require('chai').assert,
async = require('async'),
fse = require('fs-extra');
var nginx = require('..');
var prefixDir = 'tmp';
fse.emptyDirSync(prefixDir);
fse.ensureFileSync(path.join(pr... |
/* global module:false */
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner:
'/*!\n' +
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
' * http://lab.hakim.se/reveal-js\n'... |
"use strict";
/**
* Table head cell component will render th elements. The table head elements
* can affect sorting of data if available on the field.
*
* Accepts following props:
* - setSorting : {function} Function accepting single `key` argument to set
* sorting for that key.
... |
document.getElementById('clear').addEventListener('click', () => {
chrome.runtime.sendMessage({ type: 'CLEAR_STATE' }, (response) => {
if (response.ok === true) {
alert('Data cleared!'); // eslint-disable-line
}
});
}, false);
|
var Joke = require('./model.js');
var BaseController = require('../../classes/base_controller')
var controller = new BaseController(Joke);
controller.getComicJokes = function(req, reply) {
return reply(Joke.query({
where: {
comic_id: req.params.comic_id
}
}).fetchAll());
}
module.exports = controll... |
var fs = require('fs')
,httpGet = require('./http_get')
,ut = require('./ut')
module.exports = function(filePath, cb){
if (ut.pathIsRemote(filePath)) {
httpGet(filePath, function(err,data){
if (err)
return cb(err);
cb(false, data);
});
} else {
fs.readFile(filePath, function(err,data){
if (err)
... |
var mvcModulizer = function ( module ) {
var moduleLoad = ("load" in module) ? module.load : null,
moduleTimer = null,
moduleInit = null;
var dfd = $.Deferred();
// debug
dfd.done(
function () {
//mvc.log("module ready",this);
}
);
dfd.f... |
// Regular expression that matches all symbols in the Bopomofo Extended block as per Unicode v7.0.0:
/[\u31A0-\u31BF]/; |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import {withFrameSwitcher} from './util/storybookFrames.js';
import WorkshopCode from './WorkshopCode.js';
function testProps(props) {
return {
...props,
onInteraction: action('onIntera... |
'use strict';
/* Services */
angular.module('whiteboardApp.services', []); |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize underscore exports="amd" -o ./underscore/`
* Copyright 2012-2014 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.6.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2014 Jeremy Ashkenas, DocumentCloud... |
// Copyright 2008 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this li... |
({
onShowDialogValueChange: function(component, event, helper){
if(component.get('v.showDialog')) return;
helper.fireCloseEvent(component, false, null);
},
closeModal: function(component, event, helper){
component.set('v.showDialog', false);
helper.fireCloseEvent(compone... |
//Problem 1. Exchange if greater
//Write an if statement that takes two double variables a and b and exchanges their values if the first one is greater than the second.
//As a result print the values a and b, separated by a space.
var a = [5, 3, 5.5];
var b = [2, 4, 4.5];
var tmp;
for (var i = 0; i < 3; i += 1) {
... |
module.exports = {
newRelicKey: '',
azureNamespace: "",
azureAccessKey: "",
messageTopic: "messagetopic",
subName: "testSubscription"
}; |
/**
* @license
* This file is written by MemoriesOff (https://github.com/MemoriesOff)
* you can use it based on the Apache License, Version 2.0
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* ======================================================================... |
var _ = require('underscore');
var Models = require('JSCoreGraphics').CoreGraphics.Geometry.DataTypes;
var Touch = require('./Touch');
var shouldLogGestureInfo = false;
var logContext = "ReactGestureRecognizerMixin";
var logGestureInfo = function(logString) {
if(shouldLogGestureInfo) {
console.log(logCont... |
alert("Hello world");
var el = document.querySelector('.register-auth-input-error');
console.log(el);
el.classList.add("error");
|
/**
* @license Highstock JS v9.1.0 (2021-05-04)
* @module highcharts/modules/stock-tools
* @requires highcharts
* @requires highcharts/modules/stock
*
* Advanced Highcharts Stock tools
*
* (c) 2010-2021 Highsoft AS
* Author: Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../... |
import DingTalk from './dingtalk'
export default new DingTalk()
|
import { combineReducers } from 'redux'
import githubReducer from './github/githubModule'
import moquiReducer from './moqui/moquiModule'
export default combineReducers({
github: githubReducer,
moqui: moquiReducer
})
|
function ConvenientHunk(raw, i) {
this.raw = raw;
this.i = i;
}
/**
* Diff header string that represents the context of this hunk
* of the diff. Something like `@@ -169,14 +167,12 @@ ...`
* @return {String}
*/
ConvenientHunk.prototype.header = function() {
return this.raw.hunk(this.i).header;
};
/**
* Numb... |
// loader manager
(function(undefined,window){
"use strict";
var oriP = window.P,
P = function(cfg){
return P.config(cfg)
};
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = P;
} else if (typeof define === 'function ' && defi... |
import React from 'react';
import shallowEqual from 'react-pure-render/shallowEqual';
// import diff from 'immutablediff';
/**
* Purified React.Component. Goodness.
* http://facebook.github.io/react/docs/advanced-performance.html
*/
class Component extends React.Component {
shouldComponentUpdate(nextProps, next... |
/// <reference path="../../typings/ember/ember.d.ts"/>
app = Ember.Application.create({
LOG_TRANSITIONS: true
});
app.IndexController = Ember.ArrayController.extend({
renderedOn: function () {
return new Date();
}.property(),
actions: {
clickMe: function () {
alert("I have ... |
import { local } from './http'
export const getAllLayers = () => {
return local.get('/layers.json', {})
}
|
'use strict';
var viewport = require('../controllers/viewport');
module.exports = function(Pollution, app, auth) {
app.route('/viewport/:year/:month/:day/:hour/:parameter_name')
.post(viewport.render);
}; |
/* global SimpleSchema*/
import { Folder } from '../Folder.js';
import { File } from '../../File/File.js';
import { ValidatedMethod } from 'meteor/mdg:validated-method';
import { LoggedInMixin } from 'meteor/tunifight:loggedin-mixin';
export const deleteFolder = new ValidatedMethod({
name: 'deleteFolder',
mixin... |
var semver = require('semver');
checkVersion = function(customExpectedVersion) {
var version = process.version;
var expectedVersion = version; // Default: always satisfied
if (typeof customExpectedVersion !== "undefined" && customExpectedVersion !== null) {
expectedVersion = customExpectedVersion;
} else {... |
'use strict';
/**
* Please see webpack config reference for better understanding:
* https://webpack.github.io/docs/configuration.html
*/
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
mo... |
export default function assert(condition, message) {
if (!condition) {
throw new Error(message);
}
}
|
'use strict'; //Strict mode, to limit silent errors
//Switching between languages
$("#language").click(function() {
//Redirect to the url that matches the current language
if (/[?]lang=fr/.test(window.location.href) ) {
window.location.href = window.location.href.split('?')[0];
} else {
window.location.hre... |
angular
.module('eArkPlatform')
.factory('uploadService', UploadService);
function UploadService($http, notificationUtilsService) {
var service = {
uploadFile: uploadFile,
uploadUsersCSVFile: uploadUsersCSVFile
};
return service;
/**
* IMPORTANT - Change the url for the a... |
// Helpers
function ready(fn) {
if (document.readyState != "loading") {
fn();
} else {
document.addEventListener("DOMContentLoaded", fn);
}
}
function outerSizeWithMargin(el) {
var height = el.offsetHeight;
var width = el.offsetWidth;
var style = getComputedStyle(el);
height += parseInt(style.marginTop) +... |
angular.module('proton.models.user', [])
.factory('User', function($http, url) {
var User = {
create: function(params) {
return $http.post(url.get() + '/users', params);
},
code: function(params) {
return $http.post(url.get() + '/users/code', params);
},
... |
/*
* name
* numBlocks
* blockList
* mesh
* mainly for active:
* in out pairs - key, value = in, out face
* (face defined as blockNum, faceNum)
*
* orientation - default as one
* position -
* mass, for calculating V by momentum
* V to frame rate ratio
* change in hight, 0 if not applicable
*
* Type o... |
module.exports = ops => {
const isObject = item =>
typeof item === 'object' && item !== null && !Array.isArray(item)
const isString = item => typeof item === 'string' || item instanceof String
const isArray = item => Array.isArray(item)
const processValueArray = arr => Promise.all(arr.map(processValueUnk... |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2011 Zynga Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... |
(function () {
'use strict';
angular.module('auth.notifications')
.factory('NotificationsServ', function ($q, url, users, $firebaseObject, $firebaseArray, userAuth) {
var ref = new Firebase(users);
function addNotificationsToUserType(keys, usersObj, event, userType) {
... |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Deep close to:
deepCloseTo = require( './utils/deepcloseto.js' ),
// Module to be tested:
variance = require( './../lib/array.js' );
// VARIABLES //
var expect = chai.expect,
assert = cha... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/**
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
/* eslint-disable no-r... |
const flatten = v => [].concat(...v)
const mapObject = (obj, map) => Object.entries(obj)
.reduce((acc, [key, value]) => {
const v = map(key, value)
if(isDefined(v)) {
const [newKey, newValue] = v
acc[newKey] = newValue
}
return acc
}, {})
const toArray = arg => [].concat(arg)
const is... |
// Copyright 2012 Dan Wolff | danwolff.se
//
// 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, pu... |
const fs = require('fs')
const slack = require('slack')
const bot = slack.rtm.client()
const env = require('node-env-file')
const channels = require('./channels')
const admins = require('./admins')
env(__dirname + '/.env')
const token = process.env.SLACK_TOKEN
let lastTimeStamp
let myId
bot.started(function(payload)... |
'use strict'
const app = require('./app')
const PORT = 8000
app.listen(PORT)
console.log(`Listening on port ${PORT}...`)
|
var args = arguments[0] || {};
var duration = (OS_IOS) ? 200 : 1000;
// add child views to controller if they exist
if (args.children) {
_.each(args.children, function(child) {
// fix: https://jira.appcelerator.org/browse/TC-3583
if (!child) {
return;
}
$.contents.add(child);
});
}
var disableBackshad... |
//optionally connect to the redux store
import { createStore, combineReducers, applyMiddleware, compose } from "redux";
import {
vectorEditorReducer as VectorEditor,
vectorEditorMiddleware
} from "../../src";
import thunk from "redux-thunk";
import { reducer as form } from "redux-form";
const composeEnhancer =
(... |
const { EventEmitter } = require('events');
const Dispatcher = require('../dispatcher');
const Constants = require('../constants');
const notifier = require('../ui/notifier');
const CHANGE_EVENT = 'change';
let _notifications = {};
function _tradeOfferNotification(newCount) {
if(newCount > _notifications.tradeOff... |
import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
Vue.config.productionTip = false
export default new Vue({
el: '#app',
router,
template: '<App/>',
components: { App }
})
|
const crypto = require('crypto');
const algorithm = 'aes-256-ctr';
exports.encrypt = function (buffer, password){
var cipher = crypto.createCipher(algorithm,password)
return Buffer.concat([cipher.update(buffer),cipher.final()]);
};
exports.decrypt = function(buffer, password){
var decipher = crypto.createDecipher(... |
import { assignDefaults, isolate } from '../../../utils'
import * as defaults from '../defaults'
import { Entity } from '../../../core'
import { CubeTexturePointerContext } from './pointer'
import { CubeTextureDataContext } from './data'
import { CubeTextureInfoContext } from './info'
export function CubeTextureConte... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
MunicipalCourtWebsite = mongoose.model('MunicipalCourtWebsite');
/**
* Globals
*/
var user, municipalCourtWebsite;
/**
* Unit tests
*/
describe('Municipal court websites... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... |
/**
* MsgHeaders
* ==========
*
* Sends a list of block headers.
*/
'use strict'
let dependencies = {
BlockHeader: require('./block-header'),
Br: require('./br'),
Bw: require('./bw'),
Msg: require('./msg')
}
let inject = function (deps) {
let BlockHeader = deps.BlockHeader
let Br = deps.Br
let Bw = ... |
var model = require('./cases');
var assert = require('assert');
for(var key in model.CASES)
describe(key, function(){
for(var kik in model.CASES[key])
describe(kik, function(){
it(model.CASES[key][kik].TITLE, function(){
assert.equal(model.CASES[key][kik].EQUALS, model.CASES[key][kik].EXECUTER);
... |
import React, { Component } from 'react'
import { View, ScrollView, Image } from 'react-native'
import { connect } from 'react-redux'
import { Text, List, ListItem } from 'react-native-elements'
import Icon from 'react-native-vector-icons/MaterialIcons'
import colors from '../../colors'
import settings_section from '... |
/*jslint nomen: true, vars: true */
/*global interstate,esprima,able,uid,console,jQuery,window */
(function (ist, $) {
"use strict";
var cjs = ist.cjs,
_ = ist._;
ist.programStateCommands = ["undo", "redo", "reset", "export", "upload", "store", "begin_define_path"];
ist.ProgramStateClient = function (options) ... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'undo', 'ka', {
redo: 'გამეორება',
undo: 'გაუქმება'
} );
|
/* eslint-disable complexity */
import createActivitiesStyle from './StyleSet/Activities';
import createActivityStyle from './StyleSet/Activity';
import createAudioAttachmentStyle from './StyleSet/AudioAttachment';
import createAudioContentStyle from './StyleSet/AudioContent';
import createAvatarStyle from './StyleSet/... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Tag Schema
*/
var TagSchema = new Schema({
created: {
type: Date,
default: Date.now
},
title: {
type: String,
default: '',
trim: true,
required: 'Title cannot be blank'
... |
const AlfredModule = require("../../AlfredModule")
const moduleUtils = require("../../lib/moduleUtils")
const randomElement = require("../../lib/randomElement")
const request = require("request")
module.exports = class ModuleHello extends AlfredModule {
constructor(){
super()
this.icon = "🔮" //Un e... |
var path = require('path')
var webpack = require('webpack')
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: {
react: './ssr/react-bundle',
helloworld: './ssr/helloworld',
},
output: {
path: path.join(__dirname, 'public/build'),
filename: '[name].bundle.js',
publicPath: '/... |
/* ************************************************************************
*
* qooxdoo-compiler - node.js based replacement for the Qooxdoo python
* toolchain
*
* https://github.com/qooxdoo/qooxdoo-compiler
*
* Copyright:
* 2011-2019 Zenesis Limited, http://www.zenesis.com
*
* License:
*... |
/**
* Message Parser
* Cassius - https://github.com/sirDonovan/Cassius
*
* This file parses messages sent by the server.
*
* @license MIT license
*/
'use strict';
const capsRegex = new RegExp('[A-Z]', 'g');
const stretchRegex = new RegExp('(.+)\\1+', 'g');
const FLOOD_MINIMUM_MESSAGES = 5;
const FLOOD_MAXIMUM... |
$axure.loadCurrentPage(
(function() {
var _ = function() { var r={},a=arguments; for(var i=0; i<a.length; i+=2) r[a[i]]=a[i+1]; return r; }
var _creator = function() { return _(b,c,d,e,f,g,h,[i],j,_(k,l,m,n,o,p,q,_(),r,_(s,t,u,v,w,_(x,y,z,A),B,null,C,v,D,v,E,F,G,null,H,I,J,K,L,M,N,I),O,_(),P,_(),Q,_(R,[])),... |
/*
* dependencies of this config should be specified in `./package.json` relative
* to this config file (which should be in the root of the monorepo);
* yarn-workspace hoisting re: dev/Deps specified in
* `packages/utils/collective/package.json` is not reliable re: dependencies of
* this root-level config being re... |
'use strict';
const connection = require('../knexfile');
const knex = require('knex')(connection);
const assert = require('assert');
require('../libs/seedrandom-ext');
const isArray = require('lodash/isArray');
const union = require('lodash/union');
const isPlainObject = require('lodash/isPlainObject');
const Comme... |
Reveal.initialize({
width: 1920,
height: 1080,
margin: 0.1,
controls: false,
center: false,
dependencies: [
{
src: './bower_components/reveal.js/plugin/notes/notes.js',
async: true
},
{
src: './bower_components/reveal.js/plugin/highligh... |
/**
* render to canvas
*/
Fireworks.EffectsStackBuilder.prototype.renderToCanvas = function(opts)
{
opts = opts || {};
var ctx = opts.ctx || buildDefaultContext();
// create the effect itself
var effect = Fireworks.createEffect('renderToCanvas', {
ctx : ctx
}).pushTo(this._emitter);
if( opts.type === 'arc' ... |
function Marker(poiData, orderNumber) {
/*
マーカー(=ポップアップするバルーンUI)を作成するには、
ジオロケーション(=地球上の三次元空間座標)に結び付けられた新しいAR.GeoObjectオブジェクト(=ロケーションベースのARオブジェクト)を作成します。
このAR.GeoObjectは、必ず1つ以上のAR.GeoLocation(=ロケーション)と、複数の関連付けられたAR.Drawable(=描画物)が必要です。
AR.Drawablesは、カメラ(cam)や、レーダー(radar)、方向インジケーター(indicator)といったターゲットに対して定義できま... |
define(["exports", "aurelia-route-recognizer", "aurelia-path", "./navigation-context", "./navigation-instruction", "./router-configuration", "./util"], function (exports, _aureliaRouteRecognizer, _aureliaPath, _navigationContext, _navigationInstruction, _routerConfiguration, _util) {
"use strict";
var _prototypePr... |
/// <reference path="../../_all.ts" />
'use strict';
var app;
(function (app) {
angular.module('blocks.interceptor', []);
})(app || (app = {}));
//# sourceMappingURL=interceptor.module.js.map |
import mongoose, { Schema } from 'mongoose';
import timestamps from 'mongoose-timestamp';
const postSchema = new Schema({
author: {
type: {
type: Schema.Types.ObjectId,
ref: 'users',
},
},
// not sure how to best store this here. Maybe as a buffer?
content: String,
list: {
type: Schem... |
export default class ClientFloat32Array extends Float32Array {
update ( ) {
this.buffer.update( this );
return this;
}
setValues ( ) {
this.set.call( this, arguments );
return this;
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.