code stringlengths 2 1.05M |
|---|
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
'use strict'... |
function openPagina(pagina) {
$.ajax({
url: pagina,
type: 'GET',
dataType: 'html'
})
.done(function() {
console.log("success");
})
.fail(function() {
console.log("error");
})
.always(function(data) {
console.log("complete");
$('#divDinamica').html(data);
});
};
function salvarCliente() {
/... |
// Original source: https://github.com/jprichardson/create-output-stream
// Licence MIT
var path = require('path');
var _fs = require('fs');
var mkdir = require('mkdirp');
function createOutputStream (file, options) {
var dirExists = false;
var dir = path.dirname(file);
options = options || {};
var fs = optio... |
#!/usr/bin/env node
/**
* Module dependencies.
*/
var app = require('../app');
var debug = require('debug')('mailapp:server');
//changed this to be https
var https = require('https');
var fs = require('fs');
/**
* Get port from environment and store in Express.
*/
var port = normalizePort(process.env.PORT || '... |
/**
* Created by surendra on 1/9/16.
*/
'use strict';
(function(){
angular.module('dashboard.tasks.directive',[])
.directive('allTasksDirective',function () {
return{
restrict:'E',
templateUrl :"/app/partials/all-tasks.html"
};
})
}()); |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import reducers from './reducers';
import InfiniaStores from './reducers/infinia.js'
import App from './App';
require('../css/main.cs... |
// Source: http://thenewcode.com/359/Create-An-Auto-Centered-Responsive-Google-Map
(function() {
"use strict";
function _loadMap(details) {
var myLatlng = new google.maps.LatLng(details.lat, details.lng),
googleMap = new google.maps.Map(document.querySelector(details.selector), {
zoom: 17,
... |
module.exports.getCursorPosition = function getCursorPosition(cb) {
var wasRaw = process.stdin.isRaw;
if (!wasRaw)
process.stdin.setRawMode(true);
process.stdin.once('data', function(buf) {
if (!wasRaw)
process.stdin.setRawMode(false);
var coords = buf.toString().replace(/[^0-9;]/g, '').split(';... |
import I from 'immutable'
import { makeSearchLink } from '../lib/navigation'
const SET_SEARCH_TEXT = 'planck/search/SET_SEARCH_TEXT'
const initialState = I.fromJS({ searchText: '', queryLink: {} })
const actions = {
[SET_SEARCH_TEXT](state, action) {
return state
.set('searchText', action.payload.searchT... |
// flow-typed signature: 7655938e717133dd32430e1124520671
// flow-typed version: <<STUB>>/babel-eslint_v^10.1.0/flow_v0.158.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work wit... |
/**
* @fileoverview Rule to require or disallow line breaks inside braces.
* @author Toru Nagashima
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = re... |
"use strict";
var Loggers = require("../utils/logger");
var Achievement = require("../game/game_objects").Achievement;
var AchievementsController = function () {
this.client = null;
};
function prepareAchievements(viewmodel, achievementCategories, earned) {
var total = 0;
for (var i = 0; i < achievementC... |
import Ember from 'ember';
const {
Service,
getWithDefault,
assert,
get,
set,
merge,
A: emberArray,
String: { dasherize }
} = Ember;
const { keys } = Object;
export default Service.extend({
/**
* Cached adapters to reduce multiple expensive lookups.
*
* @property _adapters
* @private
... |
var factory = require('./factory.js');
module.exports.readUsuario= function (request,response) {
var tabla = request.params.collection;
var param = request.params.param;
var value = request.params.value;
var object = factory.findCollectionByName("Usuario");
var existe = false;
if (object !== null)
{
exi... |
import * as ActionTypes from '../action-types';
export function updateContact (id, props) {
return {
type: ActionTypes.UPDATE_CONTACT,
id: id,
props: props
};
}
export function createContact (props) {
return {
type: ActionTypes.CREATE_CONTACT,
props: props
};
}
export function deleteConta... |
import React, {PropTypes} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import HomePage from '../components/dashboard/Dashboard';
import Loading from '../components/common/Loading';
import GenList from '../components/dashboard/GenList';
import Header from '../components/He... |
const songs = require('./songs/index');
function getSongsList(songs){
let songList = "";
for(let i = 0; i < Object.keys(songs).length; i ++){
let name = songs[i][0];
songList += "> "+name+ "\n";
}
console.log("PRINTING SONG LIST: ", songList);
return songList;
}
module.exports = {
"fady": "it mea... |
(function () {
var MORE_DEET = "A more detailed error message may be visible in your browser's Javascript console";
function errToString(err) {
var s = '';
var gotSomething = false;
if (err.line || err.lineno)
s += 'At line ' + (err.line || err.lineno) + ' col ' + (err.col || err.colno) ... |
'use strict';
const { createController } = require('../index');
const supertest = require('supertest');
const assert = require('assert');
const db = require('./db');
describe('DELETE /<model>/<id>', () => {
before(async () => {
await db.sequelize.sync({ force: true });
await db.author.bulkCreate([
{ id: 1, na... |
import Context from './context.js';
export default function run(sourceText){
const context = new Context();
return context.run(sourceText);
} |
var express = require('express');
var fs = require("fs");
var path = require('path');
var router = express.Router();
/* GET home page. */
router
.get('/', function(req, res, next) {
res.render('index', { 'title': 'catchi','presentationId' : '','upload':''});
})
.post('/',function(req,res,next) {
... |
;(function() {
"use strict";
var demo = window.demo = {};
demo.simple = {};
var LoginView = xin.ui.Outlet.extend({
clicked: function(evt) {
evt.preventDefault();
alert('axxxx');
}
});
demo.simple.LoginView = LoginView;
xin.$(function() {
... |
{
"package": "node",
"name": "slideUp",
"doc": "http://docs.kissyui.com/docs/html/api/core/node/slideUp.html",
"desc": "",
"tip": "",
"demo": []
} |
define(function(require) {
'use strict'
var game = require ('shared/game');
var render = require ('client/render') (
document.getElementById('paper').getContext('2d'),
document.getElementById('smooth-enable')
);
var getInput = require ('client/input');
gamesync.runGame (game, render, getInput);
... |
var socket = io();
socket.on('rdy', function (data) {
effacerContenu();
preparerContenu();
partieCourante.id = data.idPartie;
partieCourante.adversaire = data.adversaire;
partieCourante.jid=data.jid;
ecrireVersus(data.joueur, data.adversaire);
if(data.commence == 1) {
ecrireEtat(0); // A vous de jou... |
exports.append = function (req, res, next) {
'use strict';
req.isAdmin = req.headers.referer.toLowerCase().indexOf('admin') > -1 && req.isAuthenticated();
next();
}; |
var updateUsers = function () {
var selections = {
group: $('#form-groups').val(),
search: $('#form-search').val()
};
var groupCheck = selections.group == '' ? false : true;
var searchCheck = selections.search == '' ? false : true;
$('#user-list').html('');
for (var key in use... |
require([
'./engine'
],
function (engine) {
$(engine.start);
}
);
|
'use strict';
// Namespace miapp
var miapp;
if (!miapp) miapp = {};
miapp.Xml = (function()
{
// Constructor
function Xml()
{
this.version = "0.1";
}
// Public API
Xml.isXml = function (elm) {
// based on jQuery.isXML function
var documentElement = (elm ? elm.ownerDoc... |
/*
* App Actions
*
* Actions change things in your application
* Since this boilerplate uses a uni-directional data flow, specifically redux,
* we have these actions which are the only way your application interacts with
* your appliction state. This guarantees that your state is up to date and nobody
* messes i... |
// All code points in the `Caucasian_Albanian` script as per Unicode v8.0.0:
[
0x10530,
0x10531,
0x10532,
0x10533,
0x10534,
0x10535,
0x10536,
0x10537,
0x10538,
0x10539,
0x1053A,
0x1053B,
0x1053C,
0x1053D,
0x1053E,
0x1053F,
0x10540,
0x10541,
0x10542,
0x10543,
0x10544,
0x10545,
0x10546,
0x10547,
... |
define(function(require, exports, module) {
require('ckeditor');
var Widget = require('widget');
Validator = require('bootstrap.validator');
var NotePane = Widget.extend({
attrs: {
editor: null,
content: '',
timer: null,
plugin: null
},
... |
/**
* Module dependencies.
*/
var utils = require('../utils/utils');
var invoke = utils.invoke;
var clone = utils.clone;
/**
*
* invoke tick instant
*
* @module
*
* @param {String} key
* @param {Object} val
* @param {Function} cb
*
*/
exports.execSync = function(key,val,cb){
th... |
/**
* Component class is a parent for all classes in Spectangular and contains the API for all actions.
*
* The component element is specified in the configuration (selector).
*
* Example:
* Spectangular.button({selector: '[ng-click=\"showListBottomSheet($event)\"]'}).click();
*
* The selector is css selector... |
import { Class, Modal } from '../mixin/index';
import { $, docElement, extend, isFunction, isString, promise, query, toJQuery } from '../util/index';
export default function (UIkit) {
UIkit.component('modal', {
mixins: [Modal],
props: {
center: Boolean,
container: Boolean... |
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Larave... |
import { injectReducer } from '../../store/reducers'
export default (store) => ({
path: 'app',
indexRoute: require('./routes/Dashboard').default(store),
getChildRoutes(partialNextState, cb) {
require.ensure([], (require) => {
cb(null, [
require('./routes/DataGraph').default(store),
req... |
/*! scripts package 2014-09-12 */
!function(a){a.fn.select=function(b){{var c={};a.extend(!0,c,b)}return this.each(function(){})}}(jQuery,window,document); |
$(document).ready(function() {
// Handler for .ready() called.
$("#show-ori-painting").click(function(){
console.log('aaa');
if ($("#canvas").css('background-image') !== "none"){
$("#canvas").css('background-image','');
}
else{
$("#canvas").css('background-image','url(../images/ori-pain... |
import gulp from 'gulp'
import browserSync from 'browser-sync'
import watch from 'gulp-watch'
import githubPages from 'gulp-gh-pages'
import source from 'vinyl-source-stream'
import gutil from 'gulp-util'
import browserify from 'browserify'
import babelify from 'babelify'
import babel from 'gulp-babel'
import runSequen... |
window.App = {
scrollBottom: function () {
var $messages = $('.messages');
if (Session.get('autoScroll')) {
$messages.animate({scrollTop: $messages.get(0).scrollHeight}, 500);
imagesLoaded($messages.get(0), function () {
$messages.animate({scrollTop: $messages.get(0).scrollHeight}, 500);
});
}
}
}; |
var searchData=
[
['releasepointer',['releasePointer',['../class_storage_manager.html#ac2d760901a3b7b5cd9e830f7992d8504',1,'StorageManager']]],
['removevariable',['removeVariable',['../class_storage_manager.html#a257d70bad26e2b6e3ab1241f3725830e',1,'StorageManager']]]
];
|
'use strict';
const Async = require('async');
const Boom = require('boom');
const EscapeRegExp = require('escape-string-regexp');
const Joi = require('joi');
const internals = {};
internals.applyRoutes = function (server, next) {
const Site = server.plugins['hapi-mongo-models'].Site;
server.route({
... |
'use strict';
var ctrlName = 'FeedCtrl';
/**
* @ngdoc object
* @name FeedCtrl
* @description
* This is the main controller of this application.
* It processes the menu slide and displays the loaded feed.
*/
angular.module(appName)
.controller(ctrlName, ['loadService', '$scope', function(load, $scope) {
... |
const update = require('react-addons-update');
const {
SAVE_WIKODE,
SET_MODAL,
SET_MESSAGE
} = require('./constants');
function getMessage(action) {
switch (action.type) {
case SET_MESSAGE:
return action.message
case SAVE_WIKODE:
return 'The document was successfully saved';
default:... |
'use strict';
const Lib = require('../lib/lib.js');
const ModelError = require('./modelerror.js');
const User = module.exports = {};
/**
* Returns User details (convenience wrapper for single User details).
*
* @param {number} id - User id or undefined if not found.
* @returns {Object} User details.
*... |
var fs = require('fs');
var path = require('path');
var http2 = require('..');
var tls = require('tls');
var exists = fs.existsSync;
var stat = fs.statSync;
var read = fs.createReadStream;
var join = path.join;
// Advertised protocol version
var implementedVersion = http2.ImplementedVersion;
// Bunyan logger
var log... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
window.onload = function () { return Main.initialize(); };
var... |
// This is the main entry JS file for the DEVELOPMENT environment
'use strict';
require('angular');
module.exports = angular.module('myApp',
[
require('./common/common').name,
require('./env/dev').name, // Development Environment Configuration
require('./modules').name
])
.config(require('./appConfig'))
.c... |
/**
* SQLite client library for Node.js applications
*
* Copyright © 2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import sqlite3 from 'sqlite3';
import Database from './Database';
co... |
'use strict';
angular.module('ipWatcherApp')
.controller('SettingsCtrl', function ($scope, User, Auth) {
$scope.errors = {};
$scope.changePassword = function(form) {
$scope.submitted = true;
if(form.$valid) {
Auth.changePassword( $scope.user.oldPassword, $scope.user.newPassword )
... |
describe('continue', function() {
var SLICE_SIZE = 50
, cont;
beforeEach(function() {
cont = new Continuation();
});
afterEach(function() {
expect(cont.running()).toBeFalsy();
expect(cont.finished()).toBeTruthy();
})
it("should have no completion callback initially, but be able to set one", function... |
/**
* some polify
*
* @method some
* @param {Function} callback (description)
* @param {Object} context (description)
* @return {boolean} (description_of_the_return_value)
*/
function some(callback, context) {
"use strict";
if (this === null || this === undefined) {
throw new ... |
import require, { has } from 'require';
import { environment } from 'ember-environment';
import Application from '../system/application';
let bootstrap = function() { };
let bootstrapModuleId = 'ember-template-compiler/system/bootstrap';
if (environment.hasDOM && has(bootstrapModuleId)) {
bootstrap = require(bootst... |
//test for protractor to see if its working
describe('angularjs homepage todo list', function() {
it('should add a todo', function() {
browser.get('https://angularjs.org');
element(by.model('todoList.todoText')).sendKeys('write first protractor test');
element(by.css('[value="add"]')).click();
var t... |
define([], function () {
var trans = {
//--- MENU ---
registration: 'registration',
login: 'login',
logout: 'log out',
account: 'account',
home: 'home',
blog: 'blog',
testing: 'testing',
russian: 'russian',
english: 'english',
... |
/**
* @license Angular Auth module for AngularJS
* (c) 2014 Marnus Weststrate (https://github.com/marnusw)
* License: MIT
*/
'use strict';
angular.module('mw.resourceGuard')
/**
* @ngdoc provider
* @name ResourceGuardProvider
* @kind function
*
* @description
*
*
*/
.provider('ResourceGuard', function Re... |
`outer${{a: {b: 1}}}bar${`nested${function(){return 2;}}endnest`}end` |
// @flow
import { Survey } from './ActionTypes';
import callAPI from 'app/actions/callAPI';
import { surveySchema } from 'app/reducers';
import type { Thunk } from 'app/types';
import moment from 'moment-timezone';
import type { SurveyEntity } from 'app/reducers/surveys';
export function fetchSurvey(surveyId: number)... |
var BufW = require('../lib/bufw');
var BufR = require('../lib/bufr');
var BN = require('../lib/bn');
var should = require('chai').should();
describe('BufW', function() {
it('should create a new buffer writer', function() {
var bw = new BufW();
should.exist(bw);
});
describe('#set', function() {
... |
cordova.define("org.apache.cordova.device-motion.accelerometer", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright owners... |
////////////////////////////////
// parent() - get the direct parent of all matched elements
// usage - $('.selector').parent();
public.prototype.parent = function()
{
var elements = [];
this.forEach(this.elements, function(element, index)
{
elements[index] = element.parentNode;
});
this.... |
/**
* Adds font size and face options
*
* @author John Dyer (http://j.hn/)
*/
docs.plugins.push({
init: function(docManager) {
var
// FONT face
fontFamilyOptions = [
{name: 'Default'},
{name: 'Georgia'},
{name: 'Geneva'},
{name: 'Baskerville'}
],
renderFontFamilyOption = function(i... |
version https://git-lfs.github.com/spec/v1
oid sha256:f2372f24fceaacdd0f124cc4336bfd489aede9b8c56a0deb6e1df990958c400d
size 71800
|
version https://git-lfs.github.com/spec/v1
oid sha256:055f14eef9daf216c1e143a224ba344ccb5ff7a7bde96b768e2b8dc0371da0bf
size 232
|
$(document).ready(function () {
$('nav ul.sf-menu').superfish({
autoArrows: false,
animation: {opacity:'show', height:'show'}
});
});
|
import React, {Component, PropTypes} from 'react';
import Template from './Template';
import Label from '../../src/Label';
import Input from '../../src/Input';
import ToggleSwitch from '../../src/ToggleSwitch';
import IconChooser from './IconChooser';
import * as Icons from '../../src/Icons/dist';
import styles from ... |
var express = require('express');
var redis = require('redis');
var moment = require('moment');
var router = express.Router();
var config = require('../config.json');
var my_dropbox = require('../lib/my_dropbox');
my_dropbox.check_for_new_img();
var redis_client = redis.createClient();
redis_client.on('conn... |
import Ember from 'ember';
import layout from '../templates/components/star-rating';
export default Ember.Component.extend({
layout: layout,
tagName: 'div',
classNames: ['rating-panel'],
rating: 0,
maxRating: 5,
item: null,
"on-click": '',
stars: Ember.computed('rating', 'maxR... |
import classNames from 'classnames';
import React, { Component } from 'react';
class ControlButton extends Component {
render() {
let {
label,
active,
disabled,
...rest
} = this.props;
let cx = classNames(
'btn btn-default', {
'active': active,
'disabled': d... |
git://github.com/kvendrik/responsive-images.js.git
|
/*
* Communicate Messages
*
* This contains all the text for the Communicate component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.containers.Communicate.header',
defaultMessage: 'This is Communicate container !',
},
});
|
const circles = [
{
uid: '',
slug: '/',
creator: 'APP',
type: 'STRING',
string: 'Home page',
},
{
uid: '',
slug: 'privacy-policy',
creator: 'APP',
type: 'STRING',
string: 'Some privacy policy text',
},
{
uid: '',
slug: 'terms-of-service',
creator: 'APP',
... |
'use strict';
var Votes = require('../models/votes.js');
function OptionHandler () {
this.getOptions = function (req, res) {
Votes.findOne({ 'id': req.params.vote })
.exec(function (err, result) { if (err) { throw err; } res.json(result); });
};
this.addOption = function (req, res) {
if(req.query.opti... |
var express = require('express'),
router = express.Router(),
temp = require('../lib/temp'),
util = require('util'),
data = require('../lib/data-sqlite'),
MCP9808 = new require('mcp9808');
/* GET users listing. */
router.get('/current-temp', function(req, res) {
temp.current(function(current_temp)... |
var db = require('../models')
exports.index = function(req, res){
res.render('index', {
title : 'Home'
});
}
|
var generators = require('yeoman-generator');
var updateNotifier = require('update-notifier');
var pkg = require('../../package.json');
var fs = require('fs');
var plugins = require('./assets.json').data;
var inquirer = require('inquirer');
var _ = require('lo... |
'use strict';
describe('Controller: MainCtrl', function () {
// load the controller's module
beforeEach(module('rexeluxioApp'));
var MainCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
MainCtrl = $cont... |
var Mongoose = require('mongoose');
/**
* Lost Gallery Schema and Model
*/
var LostGallerySchema = new Mongoose.Schema({
// fields are defined here
"author": String,
"title": String,
"date": Date, // for sorting with date
"time": String, // for display without GMT
"location": String,
"description... |
/**
* The structure of the modules object which is used and consecutively extented throughout many of the different steps within the entire test suite eventually will have the following structure:
* {
* <module_name>:
* {
* "dir": <module_directory_path>,
* "outputDescription": <output_description>,
* "configs":
* ... |
// --------------------------------------------------------------------------------------------------------------------
//
// proxy.js - the proxy server which proxies all the other services
//
// --------------------------------------------------------------------------------------------------------------------
//
// ... |
import estap from '../../lib';
const test = estap();
test('check some numbers', t => {
t.is(10, 10);
t.is(10 + 10, 20);
});
|
var shutdown = {};
shutdown.icon = "assest/white_circle_loader.gif";
shutdown.text = "Shutting Down";
shutdown.holder;
shutdown.container = "body";
shutdown.init = function() {
shutdown.drawContainer();
shutdown.addData();
setTimeout(shutdown.destroy, 5000);
}
shutdown.drawContainer = function() {
shutdown.hol... |
app.post("/accounts/:id/status", function (req, res) {
var accountId = req.params.id == "me" ? req.session.accountId : req.params.id;
models.Account.findById(accountId, function (account) {
status = {
name: account.name,
status: req.param("status", "")
};
account... |
import React from 'react'
import { View } from 'react-native'
import { BarChart, Grid, YAxis } from 'react-native-svg-charts'
class BarChartExample extends React.PureComponent {
render() {
const fill = 'rgb(134, 65, 244)'
const data = [50, 10, 40, 95, -4, -24, null, 85, undefined, 0, 35, 53, -53, 2... |
/**
* @module Graph/helper
* @description
* Offers a series of methods that isolate logic of Graph component and also from Graph rendering methods.
*/
/**
* @typedef {Object} Link
* @property {string} source - the node id of the source in the link.
* @property {string} target - the node id of the target in the l... |
Meteor.startup(function () {
AutoForm.setDefaultTemplate("semanticUI");
}); |
import Topic from '../components/topic';
export default {
path: 'topics/:id/view',
component: Topic
};
|
const _ = require('lodash');
const { getContainerNames, CompletionItemKind } = require('./comm');
function transType(type) {
switch (type) {
case 'NumericLiteral':
return 'number';
case 'StringLiteral':
return 'string';
case 'BooleanLiteral':
return 'bool';
case 'TableConstructorExp... |
import dynamic from 'next/dynamic'
import React from 'react'
import {GeoJSON} from 'react-leaflet'
import * as C from 'lib/constants'
import colors from 'lib/constants/colors'
const AddTripPatternLayer = dynamic(() => import('./add-trip-pattern-layer'))
const AdjustSpeedLayer = dynamic(() => import('./adjust-speed-la... |
var Class = require('js-class'),
assert = require('assert'),
Try = require('evo-elements').Try,
sandbox = require("sandboxed-module"),
BlobStore = require('../lib/BlobStore');
describe('BlobStore', function () {
var StubEngineOp = Class(process.EventEmitter, {
constructor: function (ma... |
/**
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v25.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics ... |
(function () {
'use strict';
angular
.module('schools')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
function routeConfig($stateProvider) {
$stateProvider
.state('schools', {
abstract: true,
url: '/schools',
template: '<ui-view/>'
})
.s... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-c912e9d
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.input
*/
mdInputContainerDirective.$inject = ["$mdTheming", "$parse"];
inputTextareaDirective.$inj... |
module.exports = function(k) {
// Remove any strings in (brackets)
k = k.replace(/\(.*\)/g, "");
// Strip whitespace
k = k.replace(/^[ \t]*|[ \t]*$/g, "");
// Replace whitespace
return k.toLowerCase().replace(/(-|\ )/g, "_");
};
|
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
/**
* @description truncate text to a specified length.
* **notice: the length donot include the length of ellipses string,
* this mean the origin string will but cat to specific length and then append the ellipses string**
* the default length is 30, default ellipses string is `'...'`
* @example
* ```
* {{ 'th... |
import React from 'react';
import { array, string } from 'prop-types';
import styles from './AdditionalDetails.scss';
import DetailsRow from './DetailsRow';
const AdditionalDetails = ({ languages, publisher, spaceRequired, website }) => (
<div className={styles.AdditionalDetails}>
<p className={styles.Title}>Ad... |
define([
'knockout',
'durandal/activator',
'durandal/events',
'durandal/system'
], function(
ko,
activator,
events,
system
) {
'use strict';
var activeItem = activator.create();
var router = {
_stubProps: {
currentActivation: '',
currentInstruction: '',
activateDefered: null
},
handlers: [... |
var less, tree;
// Node.js does not have a header file added which defines less
if (less === undefined) {
less = exports;
tree = require('./tree');
less.mode = 'node';
}
//
// less.js - parser
//
// A relatively straight-forward predictive parser.
// There is no tokenization/lexing stage, the input i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.