code stringlengths 2 1.05M |
|---|
$(document).ready(function() {
var currentIndex = 1;
var sectionAnchors = ['profile', 'about-me', 'qualifications', 'career', 'education', 'projects'];
var sectionNames = ['', 'About Me', 'Qualifications', 'Career', 'Education', 'Projects']
var loadedProgressBars = false;
$('#fullpage').fullpage({
anchors: ... |
/**
* Created by sqchen on 12/2/14.
*/
// 这是一棵组织架构树
// 使用方法
// var orgTree = require('hrtx2.comp.OrgTree');
// 1. 最简单的初始化方式
// var tree = new orgTree(); // 这样就可以了。
// $('...').html(tree.render())// tree.render()就是返回的html片段
// tree.on('onCreateSuccess', function() {}); // 还可以监听事件,详细看代码吧
// 2. 自定义参数方式
// var tree = n... |
/*global define*/
define(
['dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/_base/html',
'dojo/on',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'jimu/BaseWidgetSetting',
'jimu/dijit/Message',
'jimu/dijit/ServiceURLInput',
... |
var vows = require('vows'),
assert = require('assert'),
mockery = require('../mockery'),
sinon = require('sinon');
var mock_fake_module = {
foo: function () {
return 'mocked foo';
}
};
var tests = {
"when a substitute is registered": {
setup: function () {
mockery.r... |
"use strict";
//uglifyjs contextService.js -b --comments all
/**
*Mabo Services
*/
angular.module("service.contextService", []).factory("contextService", function() {
return {
/*
get context
*/
get: function() {
return {
l... |
/*global describe, it, beforeEach, afterEach, expect, it */
const underTest = require('../src/tasks/register-authorizers'),
destroyObjects = require('./util/destroy-objects'),
genericTestRole = require('./util/generic-role'),
create = require('../src/commands/create'),
shell = require('shelljs'),
path = require('p... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
import {assert} from '@ciscospark/test-helper-chai';
import sinon from '@ciscospark/test-helper-sinon';
import {cappedDebounce} from '@ciscospark/common';
import lolex from 'lolex';
describe('common', () => {
describe('cappedDebounce()', () =>... |
/*!
* FullCalendar v1.6.4 Google Calendar Plugin
* Docs & License: http://arshaw.com/fullcalendar/
* (c) 2013 Adam Shaw
*/
(function($) {
var fc = $.fullCalendar;
var formatDate = fc.formatDate;
var parseISO8601 = fc.parseISO8601;
var addDays = fc.addDays;
var applyAll = fc.applyAll;
fc... |
require.config({
shim: {
app: {
deps: ['jquery', 'gumby', 'init']
},
gumby: {
deps: ['jquery']
},
plugins: {
deps: ['jquery']
},
init: {
deps: ['jquery', 'gumby', 'retina', 'fixed', 'skiplink', 'toggleswitch', 'c... |
version https://git-lfs.github.com/spec/v1
oid sha256:ce2bbb4ac2723a5a4af4b39bb0880f0eace622a7a81c926a8e87a006e75ce222
size 64156
|
/* Software License Agreement (BSD License)
*
* Copyright (c) 2009-2011, Kevin Decker kpdecker@gmail.com
*
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms, with or
* without modification, are permitted provided that the following conditions
* are met:
*
* Re... |
/*! punch-snippet-helpers - v0.0.2 - 2013-10-06
* Copyright (c) 2013 ; Licensed */
!function(){"use strict";var a,b,c;a=require("underscore"),b={ga:{property_id:"",domain:""},typekit:{id:""}},c={google_analytics_js:function(){return"<script type='text/javascript'>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(... |
// //////////////
// Math Library!
//
// ////////////////////////////
// Check these links later
// Rotation-box-collision-detection: www.ragestorm.net/tutorial?id=22
// Also look for box-onAxis-collision (menu stuff maybe?)
function GameMath() {
var local = {}
local.intRandom = function(min, max) {
return parse... |
var mmCmfFieldStringPlugin = function () {
this.fieldType = 'string';
this.enabled = false;
this.bindEvents();
};
mmCmfFieldStringPlugin.prototype.bindEvents = function () {
var $this = this;
$(document).on(this.fieldType + '.init.MMCmfContentFieldEditor', function ($event, $data) {
$th... |
import React from 'react'
import { Link, IndexLink } from 'react-router'
import styles from './TopMenuDesktopNav.css'
import Icon from '../../../components/Icon/Icon'
const TopMenuDesktopNav = ({ navs }) => {
return (
<nav className={styles.main}>
<ul>
{navs.map((n, i) => <DesktopNavItem key={i} {.... |
webpackJsonp([99219681209289],{401:function(t,e,n){"use strict";function u(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(49),l=u(r),f=n(69),o=u(f),a=n(68),d=u(a),i=n(3),c=u(i),s=function(t){function e(){return(0,l.default)(this,e),(0,o.default)(this,t.apply(this,arguments))}return(0,d.default)(e,t),e.... |
Session.setDefault("activePage","");
Template.sidebarTemplate.helpers({
"realTime":function(){
return Session.get("currentTime");
},
"isMyPageActive":function(page){
return page===Session.get("activePage");
},
//下面的辅助函数是为了界面多语言
"langSystemManagement":function(){
return S... |
import React, { Component } from 'react'
import { Input, Label, Menu } from 'semantic-ui-react'
export default class MenuExampleSizeVerticalSmall extends Component {
state = { activeItem: 'inbox' }
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
const { activeItem } = this... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
/**
* @typedef {Object} event - a dom event
* @property {Object} target - a dom target.
* @property {*} target.value - the value
*/
/**
* A basic Select Class used for creating html select tags.
*
* @class
*/
class Select extends Co... |
jQuery(function ($) {
var selected = [];
//init datatable
function renderCheckbox(id) {
return '<label class="position-relative">' +
'<input ' + (selected.indexOf(id) > -1 ? 'checked' : '') + ' type="checkbox" class="ace merge-cb" value=' + id + ' />'
+ '<span class="... |
/**
* P1PP library
* Author: Eric Cestari <ecestari@process-one.net>
*
* This library will open an XMPP socket using the best transport available.
* Once connection has been established, it will suscribe to PubSub nodes on the given service
* For each publication event, it will call the user provided `publish(id,... |
export default {
data: {},
}; |
(function() {
'use strict';
/**
* @todo Complete the test
* This example is not perfect.
* The `link` function is not tested.
* (malarkey usage, addClass, $watch, $destroy)
*/
describe('directive malarkey', function() {
var $log;
var vm;
var el;
beforeEach(module('quickSight'));
... |
var mod_extsprintf = require('extsprintf');
console.log(mod_extsprintf.sprintf('hello %25s', 'world'));
mod_extsprintf.printf('hi there\nvia %20s\n', 'printf');
mod_extsprintf.fprintf(process.stderr, 'sent to std%6s %03d\n', 'err', 7);
|
angular.module("umbraco")
.controller("uScheduler.DeleteController", ['$scope', '$location', '$routeParams', 'navigationService', 'treeService', 'notificationsService', 'uScheduler.Resource',
function($scope, $location, $route, nav, tree, notification, resource) {
$scope.delete = function(id) {... |
import {
Platform,
StyleSheet,
} from 'react-native';
const DEBUG = true;
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'column',
backgroundColor: '#233445',
justifyContent: 'center',
},
icon: {
color: '#2c3e50',
alignSelf: 'center',
},
label: {
marginTop: 10,
color... |
(function(){dust.register("elements/button",body_0);function body_0(chk,ctx){return chk.write("<button>").reference(ctx.get(["title"], false),ctx,"h").write("</button>");}return body_0;})(); |
'use strict';
// MODULES //
var isNumber = require( 'validate.io-number-primitive' ),
isArrayLike = require( 'validate.io-array-like' ),
isTypedArrayLike = require( 'validate.io-typed-array-like' ),
isMatrixLike = require( 'validate.io-matrix-like' ),
ctors = require( 'compute-array-constructors' ),
matrix = req... |
/**
* Unit test for the PropTypes.object validator
*/
import EmberObject from '@ember/object'
import {afterEach, beforeEach, describe} from 'mocha'
import sinon from 'sinon'
import {
itSupportsUpdatableOption,
itValidatesOnUpdate,
itValidatesTheProperty,
spyOnValidateMethods
} from 'dummy/tests/helpers/valid... |
/**
* Graphology isGraphConstructor
* ==============================
*
* Very simple function aiming at ensuring the given variable is a
* graphology constructor.
*/
/**
* Checking the value is a graphology constructor.
*
* @param {any} value - Target value.
* @return {boolean}
*/
module.exports = func... |
import printHello from '#test-fallback#/print-hello.js';
import printGoodbye from '#test-fallback#/print-goodbye.js';
printHello();
printGoodbye(); |
import { icon } from 'dummy/helpers/icon';
import { module, test } from 'qunit';
/* global L */
module('Unit | Helper | icon', function () {
test('it works', function (assert) {
let result = icon([], {
iconUrl: 'custom-url.png'
});
assert.ok(result);
assert.ok(result instanceof L.Icon);
as... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
'use strict';
const fs = require('fs')
, combine = require('combine-errors')
module.exports = function open (file, flags, mode, done) {
if (typeof mode === 'function') {
done = mode, mode = undefined
}
fs.open(file, flags, mode, (err, fd) => {
if (err) return done(err)
done(null, fd, function ... |
'use strict';
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
//AD: group can have any unique name except those in config.userRoles
var GroupSchema = new Schema({
name: String,
info: String,
active: Boolean
});
module.exports = mongoose.model('Group', GroupSchema); |
import React from 'react'
import { render } from 'react-dom'
render(
<div>Hello React!</div>,
document.getElementById('app')
)
|
import passport from 'passport';
import mongoose from 'mongoose';
import path from 'path';
import config from '../config';
const User = mongoose.model('User');
/**
* Module init function.
*/
module.exports = function initPassport() {
// Serialize sessions
passport.serializeUser((user, done) => {
done(null, ... |
var d3 = require('d3');
var moment = require('moment');
/**
* Created by denis.vergnes on 23/08/2015.
*/
(function (global) {
'use strict';
var config = {
dataSource: 'http://localhost:8080/api/report',
colors: ['#3366CC', '#DC3912', '#FF9900', '#109618', '#990099', '#FF3300', '#CC6633', '#1... |
const run = require("./steps/index");
module.exports = [
run.isPackagePrivate,
run.fetchUpstream,
run.getCurrentBranchVersion,
run.checkExistingPrereleaseIdentifier,
run.setPrereleaseIdentifier,
run.gitMergeUpstreamBranch,
run.gitShortLog,
run.previewLog,
run.askSemverJump,
run.updateVersion,
run.gitDiff,
... |
'use strict';
var cluster = require('cluster'),
os = require('os'),
redis = require('redis'),
fs = require('fs'),
MEGABYTE = 1024 * 1024,
PACKAGE_INFO = JSON.parse(fs.readFileSync(__dirname+'/../package.json'));
module.exports = GatewayServer;
function GatewayServer() {
this.wo... |
import createStore from 'fluxible/addons/createStore';
export default createStore({
storeName: 'TimeStore',
initialize: function () {
this.time = new Date();
},
handleTimeChange: function (payload) {
this.time = new Date();
this.emitChange();
},
handlers: {
'CHAN... |
var Promise = require('bluebird') // Promise library
, fs = require("promised-io/fs"); // Promises around fs calls
;
exports.fileStatus = function (filePath) {
// Return a promise right away
return new Promise(function (fulfill, reject) {
return fs.stat(filePath)
.then(function (stat) ... |
/****************************************************************************************
Copyright (c) 2017, Juan Carlos Labrandero.
For conditions of distribution and use, see copyright notice in LICENSE
****************************************************************************************/
import moment from... |
var Router = require('./router.js');
var PromisePipe = require('../../src/PromisePipe')();
var Promise = require('es6-promise').Promise;
module.exports = function PPRouterFactory(){
var router = new Router();
var renderer = null;
var stateConfig = {};
var initContext = function(){
return {};
}
functio... |
// A visualization of Cause of Death data from the Centers for Disease Control.
//
// Details of the data can be found here:
// https://github.com/curran/data/tree/gh-pages/cdc/mortality
//
// Curran Kelleher
// 2/13/2014
//
var dataModuleURL = 'http://curran.github.io/data/cdc/mortality/mortality.js';
require([dataMod... |
// test/main.js
var should = require('should');
var smarthome = require('../lib/main');
describe('smarthome', function() {
describe('create api object', function() {
it('returns a smarthome object', function() {
//TODO...............
});
});
});
|
import {resolve, normalize, basename, extname, dirname, join} from 'path';
function factory (less) {
class PatternFileManager extends less.FileManager {
constructor (options) {
super();
this.options = options;
}
static isRelativePath (path) {
return normalize(path) !== resolve(path);
}
supports (... |
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { actions as trackActions } from '../redux/modules/tracks'
import styles from './AlbumsView.scss'
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import ListItem from 'material-ui/lib/lists/li... |
var path = require('path'),
q = require('q'),
fs = require('q-fs'),
nodefs = require('fs'),
utility = require('./utility'),
data = require('./data'),
template = require('./template'),
defer = q.defer,
reject = q.reject,
ref = q.ref,
homeDirectory = process.env[(process.platform =... |
'use strict';
// Products controller
angular.module('products')
.controller('ProductsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Products', 'Categories',
function($scope, $stateParams, $location, Authentication, Products, Categories) {
$scope.authentication = Authentication;
$sco... |
"use strict";
require('datejs');
var path = require('path');
var fs = require('fs');
var revjsion = require('revjsion');
var uuid = require('node-uuid');
var itemIds = [];
var items = {};
var load = function () {
var filePath, data, itemFilePath, itemData, item;
filePath = path.join(exports.dataDir, 'items.json')... |
import dispatcher from 'Dispatcher';
//------------------------------------------------------------------------------
export default function attachListener(target, listenerSrc = null) {
const listener = listenerSrc || target.constructor.listener;
const componentWillUnmount = target.componentWillUnmount || null;
... |
/**
* Created by Administrator on 2017/3/21.
*/
document.write('<script src="/static/layer_mobile/jquery.min.js"></script>');
document.write('<script src="/static/layer_mobile/layer.js"></script>');
function dawnConfirm(msg,url) {
layer.open({
content: msg
,btn: ['是', '否']
,yes: function(... |
'use strict';
angular.module('core').controller('HeaderController', ['$scope', '$location', 'Authentication', 'Menus', '$timeout', '$mdSidenav', '$mdUtil', '$log',
function($scope, $location, Authentication, Menus, $timeout, $mdSidenav, $mdUtil, $log) {
$scope.authentication = Authentication;
$scope.isCollapsed =... |
module.exports = {
"env": {
"node": true
},
"extends": [
'eslint:recommended',
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
}... |
var Synth, AudioSynth, AudioSynthInstrument;
!function(){
var URL = window.URL || window.webkitURL;
var Blob = window.Blob;
if(!URL || !Blob) {
throw new Error('This browser does not support AudioSynth');
}
var _encapsulated = false;
var AudioSynthInstance = null;
var pack = function(c,arg){ return [new Uin... |
jssor_sliderb_starter = function (containerId) {
//Reference http://www.jssor.com/development/slider-with-slideshow-no-jquery.html
//Reference http://www.jssor.com/development/tool-slideshow-transition-viewer.html
var _SlideshowTransitions = [
//Fade in R
... |
export function addTax(amount, taxRate) {
return amount + (amount * taxRate);
}
|
myApp.onPageInit("categoria", function (page) {
var myCategoriaController = new categoriaController();
// agrego el evento on click del boton de agregar
$$('#agregarCategoria').on('click', guardar);
// funciones auxiliares!
function guardar() {
// obtengo el json del form
var data... |
var server = require('nodebootstrap-server');
server.setup(function(runningApp) {
// runningApp.use(require('express-session')({secret: CONF.app.cookie_secret, resave: false, saveUninitialized: false}));
// Choose your favorite view engine(s)
runningApp.set('view engine', 'handlebars');
runningApp.engi... |
/*
* The MIT License
*
* Copyright 2015 Tetrinity.
*
* 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, modi... |
import bodyParser from 'body-parser';
import chalk from 'chalk';
import compress from 'compression';
import connectMongo from 'connect-mongo';
import express from 'express';
import expressValidator from 'express-validator';
import favicon from 'serve-favicon';
import flash from 'express-flash';
import logger from 'morg... |
describe("m.deferred()", function () {
"use strict"
// Let unchecked exceptions bubble up in order to allow meaningful error
// messages in common cases like null reference exceptions due to typos.
// An unchecked exception is defined as an object that is a subclass of
// Error (but not a direct instance of Error... |
function Snake(){
this.show = function(){
fill(255);
//draw the snake tail
for(var i=0;i<this.tail.length;i++){
rect(this.tail[i].x, this.tail[i].y, pixel_size, pixel_size);
}
//draw the snake head
rect(this.pos.x, this.pos.y, pixel_size, pixel_size)
}
this.update = function(){
... |
(function() {
angular.module('notely')
.config(usersConfig);
usersConfig.$inject = ['$stateProvider'];
function usersConfig ($stateProvider) {
$stateProvider
.state('sign-up', {
url: '/sign-up',
template: '<sign-up></sign-up>'
});
};
})();
|
/**
* @class JsonApiDataStoreModel
*/
class JsonApiDataStoreModel {
/**
* @method constructor
* @param {string} type The type of the model.
* @param {string} id The id of the model.
*/
constructor(type, id) {
this.id = id;
this._type = type;
this._attributes = [];
this._relationships ... |
/**
* Created by xiaobiao on 2016/11/9.
*/
require(["dojo/_base/lang", "dijit/Tree"], function (lang, Tree) {
lang.extend(Tree, {
randomAttribute: "value"
});
});
|
module.exports = function(err, res) {
console.log(err);
res.status(500).json({ msg: 'server errored' });
};
|
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({about:"Tentang",add:"Tambah",all:"Semua",apply:"Terapkan",auth:{logOut:"Keluar",signIn:"Masuk"},back:"Kembali",cancel:"Batal",change:"Ubah",clear:"Kosongkan... |
module.exports = function condition (fn) {
const timeoutError = new Error('Condition timed out: ' + fn.toString())
Error.captureStackTrace(timeoutError, condition)
return new Promise((resolve, reject) => {
const intervalId = global.setInterval(() => {
if (fn()) {
global.clearTimeout(timeout)
... |
/*global define*/
define([
'./Cartesian3',
'./defaultValue',
'./defined',
'./defineProperties',
'./DeveloperError',
'./freezeObject',
'./Math'
], function(
Cartesian3,
defaultValue,
defined,
defineProperties,
DeveloperEr... |
const shouldTrim = {
clean: true,
reduced: true,
root: true,
}
/** return the document as text */
exports.text = function (options) {
options = options || {}
//are we showing every phrase?
let showFull = false
if (this.parents().length === 0) {
showFull = true
}
// cache roots, if necessary
if ... |
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the term... |
/* eslint-disable quotes */
describe('performanceObserver', () => {
let browserMock;
let performanceMock;
let observeResourcePerformance;
let PerformanceObserverConstructorArgs;
let PerformanceObserverMock;
let resourceMatcher;
let onEnd;
let clock;
beforeEach(() => {
self.DEBUG = false;
jes... |
import { Container } from 'pixi.js';
import { TRIANGLE, SQUARE, HEXAGON, CIRCLE } from '../../constants';
import State from './State';
export default class Player extends Container {
constructor() {
super();
this.states = {};
this.types = [CIRCLE, SQUARE, TRIANGLE, HEXAGON];
this.types.forEach(this.... |
/**
* Represents an Issue.
*/
define(['jidejs/base/ObservableProperty', './User'], function(ObservableProperty, User) {
"use strict";
function Issue(original) {
installer(this);
this._issue = original;
this.title = original.title;
this.body = parseMarkdown(original.body);
this.issueUrl = original.html_url... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
export class CodeCard extends Component {
static propTypes = {
title: PropTypes.string.isRequired,
source: PropTypes.string.isRequired
}
render() {
const { title, source } = this.props
return (
... |
'use strict'
const BaseNode = require('./base')
const idom = require('incremental-dom')
module.exports = class HTMLNode extends BaseNode {
constructor(template) {
super(template)
this.before = null
this.fragment = null
}
render() {
const value = this.value
if (value !== this.before) {
... |
import * as actions from 'actions/alert_actions';
import '../testHelper';
describe('AlertActions', () => {
const initialState = { submitting: false, created: false };
const expectedState = { submitting: false, created: true };
test('submits and creates an alert, then resets it', () => {
expect(reduxStore.get... |
/**
* WPGlobus Admin Debug.
* Interface JS functions
*
* @since 1.8.1
*
* @package WPGlobus
* @subpackage Debug
*/
/*jslint browser: true*/
/*global jQuery, console*/
(function($) {
"use strict";
if ( 'undefined' === typeof WPGlobusAdminDebug ) {
return;
}
var api = {
init: function(args) {
setTim... |
"use strict";
require([__dirname + "/file.js"], function (file)
{
/* Uploads a single file represented by a HTML5 FileEntry object.
*/
function upload(file, target, cbContext, fileCallback, finishedCallback)
{
function createMonitoringXhr()
{
var xhr = $.ajaxSettings.xhr()... |
(function() {
'use strict';
angular.module('iTravelApp')
.controller('GoogleMapCtrl', function ($scope, uiGmapGoogleMapApi) {
// Do stuff with your $scope.
// Note: Some of the directives require at least something to be defined originally!
// e.g. $scope.markers = [... |
const fs = require('fs');
const path = require('path');
const rulesPath = './ruleSets';
const overridersPath = './overriders';
const configs = (...paths) => [].concat(...paths.map(pathName => fs.readdirSync(path.resolve(__dirname, pathName)).map(name => require.resolve(`${pathName}/${name}`)).sort()));
module.export... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createComplexClass = void 0;
var _complex = _interopRequireDefault(require("complex.js"));
var _number = require("../../utils/number");
var _is = require("../../utils/is");
var _factory = require("../../utils/factory");
functio... |
import DS from 'ember-data';
var Item = DS.Model.extend({
title: DS.attr('string'),
body: DS.attr('string')
});
Item.reopenClass({
FIXTURES: [
{ id: 1, title: 'Title A', body: 'Body A' },
{ id: 2, title: 'Title B', body: 'Body B' },
{ id: 2, title: 'Title B', body: 'Body B' },
{ id: 2, title: 'Ti... |
/*!
* Connect - urlencoded
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, qs = require('qs');
/**
* Parse x-ww-form-urlencoded request bodies,
* providing the parsed object as `req.body`.
*
* @param {O... |
var express = require('express');
var router = express.Router();
// Auth middleware
router.all('*' , function (req, res, next) {
if (!req.cookies.is_login) {
res.redirect('/user/login');
res.end();
}
next();
});
// Home page
router.get('/', function(req, res) {
res.render('index' , {title: 'Loged in... |
'use strict';
module.exports = function() {
return process.env;
}; |
import events from '../datas/events.json';
import EmitterManager from './EmitterManager';
class VisibilityManager {
constructor() {
this.onVisibilityChange = this.onVisibilityChange.bind(this);
this._hidden = '';
let visibilityChange;
if (typeof document.hidden !== 'undefined') {
this._hidden = 'hid... |
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { connect } from 'react-redux'
import { pick } from 'lodash'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import Toggle from 'material-ui... |
define([], function() {
return {
name: "object",
constantInitializer: function(Dicta, callback) {
var model = new Dicta();
model.read("../dicta/coretest/object/constantInitializer.dicta", function() {
var a_p = model.get("a.p");
if (a_p !... |
$(document).ready(function() {
$('.acao-visualizar').click(function() {
$('#modal-visualizar').modal('toggle');
});
$('.acao-remover').click(function() {
$('#modal-remover').modal('toggle');
});
});
function inserirLinhaTabela()
{
t_length = document.querySelector('tbody tr').childElementCount;
t... |
import 'core-js/stable';
import 'regenerator-runtime/runtime';
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference... |
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('yarn-receipt-entries'); |
var path = require('path');
module.exports = function (req, res) {
res.sendFile(path.join(__dirname, '../public/html/index.html'));
}; |
import { connect } from 'react-redux';
import { Map } from '../components/Map';
import {
geolocate,
nearbyLocations,
getLocations,
handleMarkerClick,
mapCenter
} from '../actions';
const mapDispatchToProps = dispatch => {
return {
geolocate: () => dispatch(geolocate()),
getLocations: (googleMapsLo... |
//noinspection JSUnresolvedVariable
import Exponent from 'exponent';
import React from 'react';
import {
StyleSheet,
Text,
View,
SegmentedControlIOS
} from 'react-native';
import {StackNavigator} from 'react-navigation';
//noinspection NpmUsedModulesInstalled
import RNCalendarReminders from 'react-native-calend... |
/*
* This program is distributed under the terms of the MIT license:
* <https://github.com/v0lkan/talks/blob/master/LICENSE.md>
* Send your comments and suggestions to <me@volkan.io>.
*/
window.Caller = {
callMeMaybe: function () {
var self = this;
setTimeout(function () {
console... |
/**
* Javascript Bindings that apply to changing of permissions
* in the admin tools
*/
(function( yourcode ) {
yourcode( window.jQuery, window, document );
} (function( $, window, document ) {
var baseURL = $("head base").attr( "href" );
$(function( ) {
var IDs = $("#ids").val( );
var incBG = $("#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.