code stringlengths 2 1.05M |
|---|
//////////////////////////////////
// AccountsTemplates configuration
//////////////////////////////////
if (Meteor.isServer) {
Meteor.startup(function () {
Accounts.emailTemplates.siteName = getSetting('title');
Accounts.emailTemplates.from = getSetting('defaultEmail');
});
}
//Fields
AccountsTemplates.a... |
var gulp = require('gulp');
var babel = require('gulp-babel');
gulp.task('babel', function() {
gulp.src('./src/**/*.js')
.pipe(babel({presets:['react']}))
.pipe(gulp.dest('./dist'));
});
gulp.task('watch', function() {
gulp.watch('./src', ['babel']);
});
gulp.task('test', function() {
var electron = require('el... |
(function() {
(function($) {
var Selectorator, clean, contains, escapeSelector, extend, inArray, map, unique;
map = $.map;
extend = $.extend;
inArray = $.inArray;
contains = function(item, array) {
return inArray(item, array) !== -1;
};
escapeSelector = function(selector) {
ret... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
var mongoose = require('mongoose');
var User = mongoose.model('User');
var passport = require('passport');
exports.register = function(req, res) {
var u = new User({
username : req.body.username,
nickname: req.body.nickname,
introduction: req.body.introduction,
avatar: req.body.avatar
});
User.register(u... |
'use strict';
const assert = require('assert').strict;
global.Ladders = require('../../server/ladders').Ladders;
const {makeUser} = require('../users-utils');
describe('Matchmaker', function () {
const FORMATID = 'gen7ou';
const addSearch = (player, rating = 1000, formatid = FORMATID) => {
const search = new Lad... |
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('community', 'Unit | Serializer | community', {
// Specify the other units that are required for this test.
needs: ['serializer:community']
});
// Replace this with your real tests.
test('it serializes records', function(assert) {
var record = t... |
var Gaffa = require('gaffa'),
actionType = "conditional";
function Conditional(){}
Conditional = Gaffa.createSpec(Conditional, Gaffa.Action);
Conditional.prototype.type = actionType;
Conditional.prototype.condition = new Gaffa.Property();
Conditional.prototype.trigger = function(parent, scope, event) {
if (t... |
"use strict"
var config = require("configure")
var moment = require("moment")
var log = require("winston")
log.remove(log.transports.Console)
// configure winston
config.loggers.forEach(function(logger) {
// Construct custom formatter from timeFormat if specified
if (logger.options.timeFormat) {
var ... |
// @flow weak
import React, { PropTypes } from 'react';
import { createStyleSheet } from 'jss-theme-reactor';
import Paper from 'material-ui/Paper';
import Tabs from 'material-ui/Tabs';
import Tab from 'material-ui/Tabs/Tab';
const styleSheet = createStyleSheet('SimpleTabs', (theme) => ({
root: {
width: 600,
... |
/*global define */
/*jslint white:true,browser:true*/
define([
'base/js/namespace',
'narrativeConfig',
'common/props',
'./monoBus'
], function(
Jupyter,
Config,
Props,
Bus) {
'use strict';
var narrativeConfig = Props.make({ data: Config.getConfig() });
function factory(confi... |
// test/global.js
import jsdom from 'jsdom';
global.document = jsdom.jsdom('');
global.window = document.defaultView;
global.navigator = window.navigator;
|
require("kaoscript/register");
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
var __ks_Boolean = require("../_/_boolean.ks")().__ks_Boolean;
var __ks_Number = require("../_/_number.ks")().__ks_Number;
var __ks_String = require("../_/_string.ks")().__ks_String;
function test(x) {
if(a... |
/**
* Validates indentation for switch statements and block statements
*
* Type: `Integer` or `String`
*
* Values: A positive integer or `"\t"`
*
* JSHint: [`indent`](http://jshint.com/docs/options/#indent)
*
* #### Example
*
* ```js
* "validateIndentation": "\t"
* ```
*
* ##### Valid example for mode `2... |
#!/usr/bin/env node
require('coffee-script/register');
require('./command-precompile.coffee');
|
var xmlRequest = new XMLHttpRequest();
xmlRequest.onreadystatechange = function(){
if (xmlRequest.readyState === 4 && xmlRequest.status === 200){
var states = JSON.parse(xmlRequest.responseText);
var table = document.getElementById("statesTable");
for (var x = 0; x < states.length; x++){... |
/*
* local middlewre used by routers
*/
var _ = require('lodash'),
debug = require('debug')('pushserver:middlewares'),
pjson = require('./../../package.json'),
moment = require('moment'),
models = require('../models/mongoose-connect').models;
/**
* viewHelpers middleware : provide additionnal informations ... |
(function(addon) {
var component;
if (jQuery && jQuery.UIkit) {
component = addon(jQuery, jQuery.UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-sticky", ["uikit"], function(){
return component || addon(jQuery, jQuery.UIkit);
});
}
})(... |
import axios from 'axios';
const baseUrl = '/api';
const api = axios.create({
baseURL: baseUrl
});
const request = async (method, opts) => {
const req = {
method,
url: opts.url,
data: opts.data,
headers: {
'Content-Type': 'application/json',
'x-user-uuid': 'web',
authorization: ... |
version https://git-lfs.github.com/spec/v1
oid sha256:d350969e3c719915bca395aca1ce25a795cd078e264113fbad82435eb2f2563c
size 43683
|
angular.module( 'lk.about', [
'ui.router.state',
'ui.bootstrap'
])
.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state( 'about', {
url: '/about',
views: {
"main": {
controller: 'AboutCtrl',
templateUrl: 'about/about.tpl.html'
}
}
});
}])
.con... |
"use strict";
import h from 'hyperscript'
import 'bootstrap/dist/css/bootstrap.min.css';
import { getToken, redirectLogin, getBackend, postBackend } from "./utils.js"
let errormsg = "Errår. Kan det va fel på systemet?"
function toggleService(elem, service_name, measure, token, all_buttons) {
let otherEnabled ... |
/*!
* jQuery JavaScript Library v3.2.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2017-03-20T18:59Z
*/
( function( global, factory ) {
"use strict";
if ( t... |
// Regular expression that matches all symbols in the Devanagari block as per Unicode v4.1.0:
/[\u0900-\u097F]/; |
import irc from 'slate-irc';
import net from 'net';
let IRCNetworks = {};
export const ADD_NETWORK = 'ADD_NETWORK';
export const ADD_CHANNEL = 'ADD_CHANNEL';
function IRCServer(stream, client, opts) {
this.host = opts.host;
this.stream = stream;
this.client = client;
};
export const networks = (host, port) =>... |
import React from "react";
import Layout from "../components/layout";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import "./projects.css"
const projects = [
{
'name': 'raceCondition (in-progress)',
'description': 'Web app that al... |
var _ = require('lodash');
/**
* This is a collection of methods that allow you to create, update and delete social items.
*
* These methods all exclude the 'loggedinuser' parameter as they are all carried out only by
* the currently logged in user and / or system level calls (e.g. adding a user via integration
*... |
/**
* class JstEngine
*
* Engine for the JST files. This is a core wrapper, that wraps function
* prepared by view renderers like Haml Coffee.
*
*
* ##### SUBCLASS OF
*
* [[Template]]
**/
'use strict';
// internal
var Template = require('../template');
var prop = require('../c... |
import Application from 'dummy/app';
import config from 'dummy/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { setup } from 'qunit-dom';
import { start } from 'ember-qunit';
import { Promise as EmberPromise } from 'rsvp';
import setupSinon from 'ember-... |
///////////////////////////////////////////////////////////////////////////////
// Module dependencies. //
///////////////////////////////////////////////////////////////////////////////
var express = require('express'),
mongoose = require('mongoose'),
conf =... |
import callApi from '../../util/apiCaller';
import { fetchScripts } from '../Scripts/ScriptsActions';
// Export Constants
export const ADD_POST = 'ADD_POST';
export const ADD_POSTS = 'ADD_POSTS';
export const DELETE_POST = 'DELETE_POST';
// Export Actions
export function addPost(post) {
return {
type: ADD_POST,... |
// Copyright 2019-2021, University of Colorado Boulder
/**
* Utilities specific to the keyboard for handling zoom/pan control.
*
* @author Jesse Greenberg
*/
import { scenery, KeyboardUtils } from '../imports.js';
const KeyboardZoomUtils = {
/**
* Returns true if the platform is most likely a Mac device. P... |
'use strict';
var grunt = require('grunt');
var sinon = require('sinon');
var RolloutIndexTask = require('../../../tasks/lib/rollout-index-task');
var config;
var redis = require('redis');
var client;
exports.upload_index_to_redis = {
setUp: function(done) {
//ENV VARS
process.env.CIRCLE_SHA1 = 'abc123';
... |
"use strict"
var Parser = require("htmlparser2").Parser
var CfmlHandler = require('./cfml-handler.js')
var inspect = require('eyes').inspector({maxLength: false})
var openImpliesClose = {
/*
tr : { tr:true, th:true, td:true },
th : { th:true },
td : { thead:true, th:true, td:true },
body : { ... |
module.exports = {
dev : {
options : {
port : 8000,
base : 'build'
}
}
}; |
export default {
fuzzy(arr, input) {
debugger;
}
} |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var util = require('util');
var browserSync = require('browser-sync');
var browserSyncSpa = require('browser-sync-spa');
var proxyMiddleware = require('http-proxy-middleware');
function browserSyncInit(baseDir, browse... |
//! moment.js
//! version : 2.10.6
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(fact... |
/*! @license Firebase v4.1.2
Build: rev-4a4cc92
Terms: https://firebase.google.com/terms/ */
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... |
var AndroidNotification = require('../AndroidNotification');
var AndroidUnicast = AndroidNotification.extend({
initialize: function() {
AndroidUnicast.superclass.initialize.call(this);
this._data['type'] = 'unicast';
this._data['device_tokens'] = '';
}
});
module.exports = AndroidUnicast; |
import React, {Component} from 'react';
import {StyleSheet, View, Text, TouchableOpacity} from 'react-native';
export default class Counter extends Component {
constructor(props) {
super(props);
this.state = {};
console.log(this.props.increment1);
console.log(this.props.decrement);
... |
/**
* @author Lei
* @repo https://github.com/stoneWeb/elm-react-native
*/
'use strict';
import React, { Component } from 'react'
import {
View,
Text,
Modal,
AlertIOS,
Dimensions,
StyleSheet,
ScrollView,
Platform,
TextInput,
TouchableOpacity,
ActivityIndicator
} from 'react-native'
import Icon ... |
"use strict";
ace.define("ace/theme/pastel_on_dark", ["require", "exports", "module", "ace/lib/dom"], function (require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-pastel-on-dark";
exports.cssText = ".ace-pastel-on-dark .ace_gutter {\
background: #353030;\
color: #8F938F\
}\
.ace-pastel-o... |
import React from 'react'
import styled from 'styled-components'
const Container = styled.div`
position: relative;
padding: 0 50px 0 60px;
overflow: auto;
margin-bottom: 3em;
background: ${props => props.color};
@media (max-width: 768px) {
padding: 0px 16px 0px 24px;
}
`
const Bar = styled.div`
p... |
import React from 'react'
import renderer from 'react-test-renderer'
import 'jest-styled-components'
import { NavBar } from './index'
describe('<NavBar />', () => {
let component
describe('simple NavBar', () => {
beforeEach(() => {
component = renderer
.create(
<NavBar
clas... |
import ReactDOM from 'react-dom'
import routes from './config/routes'
import './index.css'
ReactDOM.render(routes, document.getElementById('root'))
|
const gulp = require('gulp');
const open = require('gulp-open');
const plumber = require('gulp-plumber');
const os = require('os');
const webpack = require('webpack-stream');
const webpackConfig = require('./source/webpack.config.js');
const getServer = require('./server/app');
const browser = os.platform() === 'linux'... |
var gulp = require('gulp'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
fs = require('fs'),
gutil = require('gulp-util'),
gulpJsdoc2md = require('gulp-jsdoc-to-markdown'),
uglify = require('gulp-uglify'),
watch = require('gulp-watch'),... |
createRuntime(__filename).then(runtime => {
const exports1 = runtime.requireModule(
runtime.__mockRootPath,
"./JSONFile.json"
);
const exports2 = runtime.requireModule(
runtime.__mockRootPath,
"./JSONFile.json"
);
expect(exports1.isJSONModule).toBe(true);
expect(exports2.isJSONModule).toBe(t... |
angular.module('futurism')
.factory('websites', function($, $rootScope, $routeParams, memory, facebook, jiggmin, guestville, _) {
'use strict';
var self = {
JIGGMIN: 'j',
FACEBOOK: 'f',
NEWGROUNDS: 'n',
ARMOR_GAM... |
import { Meteor } from 'meteor/meteor';
import { Match, check } from 'meteor/check';
import { ServiceConfiguration } from 'meteor/service-configuration';
import _ from 'underscore';
import { Settings } from '../../../models/server';
import { hasPermission } from '../../../authorization';
import { API } from '../api';
... |
// Copyright (c) 2013 Romain Vallet <romain.vallet@gmail.com>
// Licensed under the MIT license, read license.txt
var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
name:'Yandex',
prepareImgLinks:function (callback) {
/*var res = [];
hoverZoom.urlReplace(res,
... |
dojo.provide("plugins.form.UploadDialog");
// UPLOADER
dojo.require("plugins.dojox.form.Uploader");
dojo.require("dojox.form.uploader.FileList");
//dojo.require("dojox.form.uploader.plugins.Flash");
dojo.require("dojox.form.uploader.plugins.HTML5");
//dojo.require("dojox.form.uploader.plugins.IFrame");
// LAYOUT
dojo... |
var dep = require("dep4");
module.exports = dep;
|
var chalk = require('chalk');
var Q = require('q');
var promptly = require('promptly');
var createError = require('../util/createError');
/**
* Description
* @method JsonRenderer
* @return
*/
function JsonRenderer() {
this._nrLogs = 0;
}
/**
* Description
* @method end
* @param {} data
* @return
*/
Jso... |
/**
* @jsx React.DOM
*/
var Sidebar = require('./components/Sidebar'),
Boxes = require('./components/Boxes'),
TableManager = require('./components/TableManager'),
Connected = require('./components/Connected'),
Menu = require('./components/Menu'),
BigGraph = require('./components/BigGraph')
React.renderCompon... |
/**
* @name AssemblyLoadContext
* @description The isolation boundary of type loading across assemblies.
*/
const AssemblyLoadContext = function(name, domain, defaultLoadContext, currentContexts, contexts) {
let alcTypes = {},
alcResources = {},
alcRoutes = {},
instances = {},
as... |
#!/usr/bin/env node
const argv = require('yargs')
.usage('Usage: $0 --app [string]')
.example('$0 --app example', 'Lunch dev server')
.option('app', {
alias: 'a',
describe: 'App name',
type: 'string'
})
.argv
require('../tsDist/script/gql.js').default({
appName: argv.app || 'example'
})
|
var TerrainGeometryAccess = (function () {
function TerrainGeometryAccess(geometry, width, height, widthSamples, heightSamples) {
this.geometry = geometry;
this.heightSamples = heightSamples;
this.widthSamples = widthSamples;
}
TerrainGeometryAccess.prototype.groundHeight = function ... |
import Api from './Api'
const ApiPlugin = {
install(Vue, option) {
Object.defineProperty(Vue.prototype, '$api', {
get () {
return Api
}
})
}
}
export { Api, ApiPlugin }
|
import defineClass from '../defineClass';
import channelPrototype from './channelPrototype';
import SimpleChannel from './SimpleChannel';
import NestedSimpleChannel from './NestedSimpleChannel';
import BidirectionalChannel from './BidirectionalChannel';
import NestedBidirectionalChannel from './NestedBidirectionalCha... |
module.exports = {
udp: require('./udp.js'),
tcp: require('./tcp.js'),
http: require('./webserver.js'),
ws: require('./websocket.js'),
echo: require('./echo.js')
}; |
import moment from 'moment-mini';
import { sanitizeUrl } from '@braintree/sanitize-url';
import { logger } from '../../logger';
import { getConfig } from '../../config';
const config = getConfig();
let dateFormat = '';
let axisFormat = '';
let excludes = [];
let title = '';
let sections = [];
let tasks = [];
let curre... |
sub.init__content = () => {
const key = kk.generate_key(15);
const init_time = Date.now();
const args = {
key: key,
init_time: init_time,
origin: window.location.origin,
ext_id: browser.runtime.id,
root_url: browser.extension.getURL('/'),
full_name: mod.full_... |
(function () {
angular.module('app')
.factory('notyService', function () {
var notyService = {}
function generate(type, text, time) {
var n = noty({
text: text,
type: type,
dismissQueue: true,
layout: 'topCenter',
... |
export const USERINFO_LOGIN = 'USERINFO_LOGIN'
|
import React from 'react';
import Icon from '../Icon';
export default class PublishIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M10 8v4h28V8H10zm0 20h8v12h12V28h8L24 14 10 28z"/></svg>;}
}; |
var expect = require('chai').expect
, core = require('rijs.core').default
, data = require('rijs.data').default
, react = require('./').default
describe('Reactive Data', function() {
it('should react to changes in data', function(done){
var ripple = react(data(core()))
ripple('foo', [])
... |
/**
* Created by xpfei on 2017/6/23.
*/
export default {
install: function (Vue) {
Vue.prototype.setStatics = function (name) {
try {
MtaH5 && MtaH5.clickStat(name)
} catch (e) {}
};
Vue.prototype.getQueryString = function (name) {
var re... |
import React, {Component} from 'react';
import {Text, View, FlatList, TouchableWithoutFeedback} from 'react-native';
class PickerCategory extends Component {
constructor(props) {
super(props);
if(this.props.initValue){
var initValue = this.props.initValue[this.props.catId];
}
... |
/**
* Generate a CJS package.json file to dist folder.
*/
import {resolvePath, writeJson} from "./util.js";
const content = {
"type": "commonjs"
};
writeJson(resolvePath("../dist/package.json", false), content);
|
(function($) {
var cached_json_records;
// Wrapper around machineTagSearch() which assumes wildcard is appended to the end of the url after a '#'
// ie http://example.com/tag_search#wildcard.
$.machineTagSearchLocation = function(options) {
if (locationMachineTag() != null) {
$.machineTagSearch(loc... |
/**
* $Id$
* $HeadURL$
*
* Virtual Keyboard plugin for TinyMCE v3 editor.
* (C) 2006-2007 Ilya Lebedev <ilya@lebedev.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundatio... |
// Compiled by ClojureScript 1.7.228 {:target :nodejs}
goog.provide('replumb.nodejs.io');
goog.require('cljs.core');
goog.require('cljs.nodejs');
goog.require('replumb.common');
/**
* Delay containing the call to "require fs". It returns the File
* System Node.js module object.
*/
replumb.nodejs.io.require_fs = (n... |
var Config = require('../../../../../../util/config');
// --
module.exports = {};
module.exports.compileContainerConfig = function (names, configs) {
var ccontainer = new Config();
ccontainer.set('host.device', 'eth0');
ccontainer.set('container.device', 'eth0');
configs.forEach(function (config) {... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import {
ServicesProvider, withServices,
} from '../with-services.hoc';
describe('with-services.hoc', () => {
let mockServices;
beforeEach(() => {
mockServices = {};
});
describe('ServicesProvider', () => {
it('should match snapsho... |
"use strict";
exports.apiUrl = "http://52.221.53.209/laravel/public/api/v1/";
exports.publicUrl = "http://52.221.53.209/laravel/public/";
exports.frontUrl = 'http://52.221.49.210/';
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9zZXJ2aWNlcy9jb25maWcudHMiXSwibmFtZX... |
function getNumbersArray( current, showing, total )
{
if ( current === 0 && showing === 0 && total === 0 )
{
return [];
}
if ( current < 1 || current > total || showing < 1 )
{
return [ 0 ];
}
if ( total === 1 )
{
return [ 1 ];
}
var result = [];
var num = current - (showing / 2 >> 0);
while ( num ... |
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var MyTheme = new Module('myTheme');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
MyTheme.register(function(app, auth, database, system) {
//We enable routing. By defa... |
var lib = process.env.NPM_NAME_COV ? './lib-cov' : './lib';
// use the lib var to pull in the source from the right directory,
// depending on if coverage stats should be collected or not, e.g.:
// exports.main = require(lib + '/main.js');
|
// @flow
import type {TColor} from '../TColor'
import type {TFontStyle} from './TFontStyle'
import type {TIndentStyle} from './TIndentStyle'
export type TTableHeaderStyle = {
backgroundColor: TColor,
font: TFontStyle,
padding: TIndentStyle,
}
|
// Better log
require("better-log/install");
require("./src/server").start();
process.on("unhandledRejection", e => {
throw e;
});
|
import React from 'react'
import Login from 'components/Login/Login'
describe('(Component) Login', () => {
it('should exist', () => {
})
})
|
'use strict';
/**
* Keeps track of the latest snapshot time for each blob in every container.
* This is needed since time resolution in most SDKs work on a second level. In particular,
* during unit-tests chances are high that subsequent snapshots of a blob collide time-wise since
* they only differ at the millis... |
var shell = require('mesh-viewer')()
var unindex = require('unindex-mesh')
var reindex = require('mesh-reindex')
var combine = require('mesh-combine')
var cubecube = require('./')
var mesh
shell.on('viewer-init', function() {
var cubes = cubecube(24, 24, 24, sphere)
var combined = combine(cubes)
var flat =... |
define(['exports', 'module', 'react', 'classnames'], function (exports, module, _react, _classnames) {
'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,... |
version https://git-lfs.github.com/spec/v1
oid sha256:c1ac0082737e1f565b5fd162a67d05258e32bbe6c243f0a920d6caa8f07d5ebc
size 18654
|
Polymer('filter-by-text', {
matchCount: 0,
attached: function() {
this.filterText = this.getAttribute('filterText') || '';
},
filter: function(filterText) {
var matches = 0;
Array.prototype.forEach.call(this.children, function(child) {
var isMatch = child.textContent.indexOf(filterText) !=... |
'use strict';
/* jslint camelcase: false */
/**
* This file/module contains all configuration for the build process.
*/
module.exports = {
/**
* The `build_dir` folder is where our projects are compiled during
* development and the `compile_dir` folder is where our app resides once it's
* complet... |
$(document).ready(function() {
$('.main_navigation__hamburger').click(function(e) {
e.stopPropagation();
$('.main_navigation__personal-information').toggleClass('active');
});
$(document).click(function() {
$('.main_navigation__personal-information').removeClass('active');
});
});
|
// Copyright (c) 2012 Jonas Kuemmerlin <rgcjonas@gmail.com>
//
// 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,... |
function createSelect(msg, items, selectedItemIndex) {
selectedItemIndex = selectedItemIndex || 0;
var accessory = [[NSComboBox alloc] initWithFrame:NSMakeRect(0,0,200,25)];
[accessory addItemsWithObjectValues:items]
[accessory selectItemAtIndex:selectedItemIndex]
var alert = [[NSAlert alloc] init];
[aler... |
/**
* # app.js
* Display startup screen and
* getSessionTokenAtStartup which will navigate upon completion
*
*
*
*/
'use strict'
/*
* ## Imports
*
* Imports from redux
*/
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
/**
* Project actions
*/
import * as authActions fro... |
function Placemark(id, name, coord) {
var mCoord = coord;
var mName = name;
var mId = id;
var mIsVisible = true;
this.setVisible = function(isVisible) {
mIsVisible = isVisible;
};
this.getCoord = function() {
return mCoord;
};
this.getName = function() {
re... |
version https://git-lfs.github.com/spec/v1
oid sha256:7fcac07a738154aadb4219000b0c9041dee79f6dab526f8de31667167aff67ae
size 1175666
|
version https://git-lfs.github.com/spec/v1
oid sha256:e05823715f1298f342cdaa046fee34c9a0a6663adf36f685b9b4e96ec5653330
size 39131
|
import {DOM} from 'aurelia-pal';
let svgElements, svgPresentationElements, svgPresentationAttributes, svgAnalyzer;
if (typeof FEATURE_NO_SVG === 'undefined') {
/* eslint-disable */
svgElements = {
a: ['class','externalResourcesRequired','id','onactivate','onclick','onfocusin','onfocusout','onload','onmousedow... |
// Copyright 2013-2014 Digital Codex LLC
// You may use this code for your own education. If you use it
// largely intact, or develop something from it, don't claim
// that your code came first. You are using this code completely
// at your own risk. If you rely on it to work in any particular
// way, you're an idio... |
var pkg = require('./package.json'),
gulp = require('gulp'),
header = require('gulp-header'),
eslint = require('gulp-eslint'),
rename = require('gulp-rename'),
sourcemaps = require('gulp-sourcemaps'),
uglify = require('gulp-uglify'),
Server = require('karma').Server;
var banner = `/*
* ${pkg.name} ${pkg... |
module.exports = {
normalizeEntityName: function() {},
afterInstall: function(/* options */) {
return this.addBowerPackageToProject('framework7');
}
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.