code stringlengths 2 1.05M |
|---|
define({
"_widgetLabel": "过滤器",
"toggleTip": "单击以显示/隐藏过滤器设置",
"toggleOn": "按切换按钮以打开当前过滤器",
"toggleOff": "按切换按钮以关闭当前过滤器",
"filterActions": "过滤器操作",
"resetAll": "重置过滤器(自定义除外)",
"turnOffAll": "关闭过滤器(自定义除外)",
"createCustomFilter": "创建自定义过滤器",
"customFilter": "自定义过滤器",
"toggleCustomFilter": "打开或关闭过滤器",
... |
'use strict';
var path = require('path');
var cookieParser = require('cookie-parser');
var session = require('express-session');
var bodyParser = require('body-parser');
var passport = require('passport');
var morgan = require('morgan');
exports = module.exports = function (app) {
var env = app.get('env');
app.se... |
import PropTypes from 'prop-types';
import React from 'react';
export const First = () => <div />;
First.handledProps = ["children"];
First.propTypes = {
children: PropTypes.node
};
export const Second = () => null;
|
const ArticleModel = require('../../db').articles;
import * as ArticleValidation from '../../utils/validation/article';
import { getSlug } from '../../utils/slug';
const sequelize = require('../../db').sequelize;
const updateArticleRequest = async ({title, content, id, previewSize, link, description}) => {
const cur... |
el.addEventListener('click', function () {}, false);
|
import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './redux/create'
import ApiClient from './helpers/ApiClient'
import {Provider} from 'react-redux'
import {Router, browserHistory} from 'react-router'
import {syncHistoryWithStore} from 'react-router-redux'
import ... |
import React, { Component } from 'react';
import Title from '../Title/Title';
import Stats from '../Stats/Stats';
export default class Header extends Component {
render() {
return (
<div className="header">
<Title />
<Stats />
</div>
);
}
}
|
'use babel';
/*eslint-env node*/
/*eslint vars-on-top: 0*/
import async from 'async';
import fs from 'fs';
import less from 'less';
import mkdirp from 'mkdirp';
import path from 'path';
import readline from 'readline';
import postcss from 'postcss';
import postcssPlugins from './postcss-plugins.js';
var inProgress =... |
import $ from 'jquery';
import { $WINDOW, isMobile } from '../helpers';
import 'mobileEvents';
import _debounce from 'lodash.debounce';
import ViewBase from '../view_base';
/**
* アコーディオン
*/
export default class extends ViewBase {
constructor(el) {
super(el);
this.target;
}
initialize() {
super.... |
const ResourceController = require('../Libraries/Expresso/Controllers/ResourceController');
const ExampleModel = require('../Models/ExampleModel');
/**
* @class app/Controllers/ExampleController
*/
class ExampleController extends ResourceController {
/**
* @return {string}
*/
get resource() {
return E... |
export default resolver => (root, args, ctx, info) => {
if (root && root[info.fieldName] !== undefined) {
return root[info.fieldName];
}
return resolver(root, args, ctx, info);
};
|
module.exports = function(config){
config.set({
basePath : './',
files : [
'app/scripts/bower_components/angular/angular.js',
'app/scripts/bower_components/angular-route/angular-route.js',
'app/scripts/bower_components/angular-mocks/angular-mocks.js',
'app/scripts/components/**/*.js'... |
import Ember from 'ember';
import { getContext } from 'ember-test-helpers';
export default function testWrapper(testName, callback, qunit) {
function wrapper() {
var context = getContext();
var result = callback.apply(context, arguments);
function failTestOnPromiseRejection(reason) {
var message;... |
/**
* Course 7
* React Native控件之Switch与Picker组件讲解以及使用
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Switch,
PickerIOS,
ScrollView
} from 'react-native';
import Util from '../utils';
var CAR_MAKES_AND_MODELS = {
amc: {
name: 'AMC',
models: ['AMX', ... |
(function () {
'use strict';
describe('Skills Controller Tests', function () {
// Initialize global variables
var SkillsController,
$scope,
$httpBackend,
$state,
Authentication,
SkillsService,
mockSkill;
// The $resource service augments the response object with met... |
import {
DoubleSide,
PlaneGeometry,
Mesh,
MeshBasicMaterial,
TextGeometry,
Group,
} from 'three';
import {Power0, TimelineMax} from 'gsap';
import {EVENT, INITIAL_CONFIG} from '../constants';
export default class Button {
constructor(parent, font, name, x, y, emitter, width = 0.4, height = 0.2, borderWid... |
/**
* @ngdoc object
* @name appfy.theme.component:aboutBar
**/
(function () {
'use strict';
angular.module('appfy.theme').component('aboutBar', {
bindings: {
ngModel: '='
},
templateUrl: "app/themes/default/components/aboutBar/aboutBar.html",
controller: /*@ngInjec... |
// Generated by CoffeeScript 1.7.1
(function() {
module.exports = {
divisibleBy: function(value, context) {
return (function(_this) {
return function(data, runtime) {
if (_this.test_type("number", data)) {
if (!((data / value) % 1 === 0)) {
return runtime.error(co... |
/**
* exponent-server-sdk@c989bcc62b6ac524582b7fcec9725cd70f503eab
*
* Use this if you are running Node on your server backend when you are working with Exponent
* https://getexponent.com/
*
*/
const fetch = global.fetch;
const Headers = global.Headers;
const BASE_URL = "https://exp.host/";
const BASE_API_URL = ... |
// @flow
declare module 'react-navigation-drawer' {
//---------------------------------------------------------------------------
// SECTION 1: IDENTICAL TYPE DEFINITIONS
// This section is identical across all React Navigation libdefs and contains
// shared definitions. We wish we could make it DRY and impor... |
Intranet.controller('TasksController', ['$scope', '$http', '$modal', function($scope, $http, $modal){
console.log('TasksController was loaded!');
$scope.filter = {
status: [],
priority: [],
name: "",
user: [],
topic: []
};
$scope.$watch('filter', function(){
getTasks();
}, true);
$scope.tas... |
/**
* Represents a View, providing functionality for adding card elements (cards) and choosing and displaying of added
* cards.
*/
define(['View'],
function(View){
function CardPane() {
var _this = new View('<div></div>');
var content = new View('<div></div>');
var currentCardIndex = -1... |
/*
* Module :: extensions.js
* Info : Module for extending libraries into the application.
*/
Core.extend('$', jQuery);
Core.extend('numeral', numeral);
Core.extend('config', config);
//Core.extend('utils', utils); |
module.exports = Object.assign({}, require('./.eslintrc.json'));
|
import { composeWithTracker } from 'react-komposer';
import { Meteor } from 'meteor/meteor';
import { GiveawaySingleCard } from '../../components/giveaways/giveaway-single-card';
import { Loading } from '../../components/loading';
import { Giveaways } from '../../../api/giveaways/giveaways';
const composer = (props, ... |
version https://git-lfs.github.com/spec/v1
oid sha256:1d8ea97ad866f0d98daf8b2466221ed9e68885ceeb318271fc7a2591ca0e1f6b
size 5768
|
/* not yet approved by skill group core team */
module.exports = {
rules: {
// specify curly brace conventions for all control statements
'curly': 0,
// enforces consistent newlines before or after dots
'dot-location': 0,
// disallow lexical declarations in case/default clauses
// http://eslint.org/docs/... |
var Sequelize = require('sequelize'),
config = require('./../config.json').dev,
sequelize = new Sequelize(config.database, config.username, config.password, config);
var db = {};
db.sequelize = sequelize;
db.Sequelize = Sequelize;
module.exports.oauth = require("./oauth.js")(db);
module.exports.User = require('.... |
class ias_infobase {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
GetLifetimeS... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import actions from 'src/actions';
import Aside from 'src/components/Aside';
import UserContainer from 'src/containers/User';
import UsersContainer from 'src/containers/Users';
import RoomsContainer from 'src/containers/Rooms';
class Asid... |
var express = require('express');
var connect = require('connect');
var serveStatic = require('serve-static');
var app = express();
app.use(serveStatic(__dirname + '/built/bin', {'index': ['default.html', 'default.htm']}));
app.use(serveStatic(__dirname + '/public', {'index': ['index.html', 'default.htm']}));
app.lis... |
/**
* Replace an element's inner HTML or return the current value
* @param {string} content - optional
* @returns {object|string} current instance of Grindstone or current value of an element's inner HTML
*/
$.fn.html = function(content) {
var text;
this.each(function() {
if (content || content === '') {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:ab1656eefa472a3582670ce478d374896fc5d04fc97690877899bf4be2d430da
size 78699
|
window.requestAnimationFrame = window['requestAnimationFrame'] || window['mozRequestAnimationFrame'] ||
window.oRequestAnimationFrame || function(callback) {
setTimeout(callback, 16);
};
window.kng = window.kng || {}; // kangaroo namespace
_.extend(kng, {
reset: function() {
this.types = {};
... |
/**
* This module is used to create semi-private properties that have a non-guessable name and
* are not enumerable.
*
* Please note that they still show up when queried using {@code Object.keys}, {@code Object.getOwnPropertyNames} and similar.
*
* @module jidejs/base/Name
*/
define(function() {
var id = +new D... |
System.register(["../util/Config", "./TraceJob"], function(exports_1) {
var Config_1, TraceJob_1;
var TraceWorkerManager;
return {
setters:[
function (Config_1_1) {
Config_1 = Config_1_1;
},
function (TraceJob_1_1) {
TraceJob_1 = Tr... |
const HtmlWebpackPlugin = require('html-webpack-plugin');
const WebpackExternalsPlusPlugin = require('webpack-externals-plus-plugin');
//const WebpackExternalsPlusPlugin = require('../index.js');
const webpack = require('webpack');
const path = require('path');
const root = __dirname;
module.exports = {
entry: {
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: The Date.prototype property "setTime" has { DontEnum } attributes
es5id: 15.9.5.27_A1_T1
description: Checking absence of ReadOnly attribute
---*/
x = Date.prototype.setTime;... |
/**
* Module dependencies.
*/
var express = require('express');
var utils = require('lib/utils');
var accepts = require('lib/accepts')
var restrict = utils.restrict;
var pluck = utils.pluck;
var expose = utils.expose;
var api = require('lib/db-api');
var log = require('debug')('democracyos:citizen');
var app = modu... |
var assert = require('assert');
var async = require('async');
var params = {
"hostname":"localhost",
"port":27017,
"username":"",
"password":"",
"name":"",
"db":"starshard"
};
function Db (name) {
var db = params.db;
if (typeof name !== 'undefined') {
db = 'shard_' + name;
}
this.mongodb = req... |
var BaseClientRouter = require("rendr/client/router");
/**
* Creates an instance of the router.
* @constructor
*/
function Router(options) {
"use strict";
BaseClientRouter.call(this, options);
}
// Set up inheritance on the router.
Router.prototype = Object.create(BaseClientRouter.prototype);
Router.proto... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
import React from 'react';
import {Link} from 'react-router-dom';
import PropTypes from 'prop-types';
import {Navbar, Nav, NavItem} from 'react-bootstrap';
import {LinkContainer} from 'react-router-bootstrap';
import styles from './NavBar.css';
import UserMenuButton from './UserMenuButton';
const NavBar = (props) => {... |
import util from 'util';
import EventEmitter from 'events';
export default class Room extends EventEmitter {
constructor() {
super();
}
}
|
import React, { Component } from 'react';
import Table from '../../../../components/uielements/table';
export default class SortView extends Component {
constructor(props) {
super(props);
this.onChange = this.onChange.bind(this);
this.state = {
dataList: this.props.dataList.getAll()
};
}
on... |
import Ember from 'ember';
import ResetScroll from 'platform-base/mixins/reset-scroll';
import SetupController from 'platform-base/mixins/setup-controller';
export default Ember.Route.extend(ResetScroll, SetupController, {
pageName: 'languages',
global: Ember.inject.service(),
setupController(controller) {
th... |
const build = require('./build');
const buildCSS = require('./builds/build-css');
const buildIndex = require('./builds/build-index');
const build404 = require('./builds/build-404');
const buildArchive = require('./builds/build-archive');
const loadPost = require('./builds/load-post');
const buildPost = require('./build... |
;(function () {
'use strict';
class App {
constructor({el}) {
// save found html elements
this.$menu = el.querySelector('.js-menu');
this.$form = el.querySelector('.js-form');
this.$picture = el.querySelector('.js-picture');
// create object... |
#!/usr/bin/env node
var fs = require('fs'),
connect = require('connect'),
WebSocket = require('faye-websocket'),
path = require('path'),
url = require('url'),
http = require('http'),
send = require('send'),
open = require('opn'),
es = require("event-stream"),
watchr = require('watchr');
require('colors');
var... |
// Generated by CoffeeScript 1.9.1
(function() {
var $, CND, D, HOTMETAL, badge, rpr;
CND = require('cnd');
rpr = CND.rpr.bind(CND);
badge = 'HOTMETAL/MARKDOWN';
HOTMETAL = require('..');
D = require('pipedreams');
$ = D.remit.bind(D);
this.new_parser = function(settings) {
var R, source_refe... |
var db = require('./database/database.js')
const { formatProductList, formatShopperOrders, formatRealShoppers } = require('./format.js')
function run(command, input){
if (command === 'product-list'){
if(!input){
console.log('You must enter a valid grocery section.')
} else {
db.productList(inp... |
import factory from './factory'
let singleton = null
/* istanbul ignore next */
function dynapiSingleton (options = {}) {
return singleton || (singleton = factory(options))
}
export default dynapiSingleton
|
version https://git-lfs.github.com/spec/v1
oid sha256:1a76ac75e4e82793cbd5c756e44966ea27ee607ce0cc63b23f37cfa89dd93271
size 3684
|
function subtract() {
let firstNumber = Number(document.getElementById('firstNumber').value)
let secondNumber = Number(document.getElementById('secondNumber').value)
document.getElementById('result').textContent = firstNumber - secondNumber + ''
} |
/* eslint no-console: [0] */
'use strict'
const Service = require('trails/service')
const Errors = require('proxy-engine-errors')
const _ = require('lodash')
const moment = require('moment')
const TRANSACTION_STATUS = require('../../lib').Enums.TRANSACTION_STATUS
/**
* @module AccountService
* @description 3rd Part... |
/**
* Created by mafinar on 12/26/14.
*/
Router.configure({
layoutTemplate: 'layout'
});
Router.route('/', {name: 'main'}); |
describe("Object.isPrototype", function() {
it("should only return true if the given object is a prototype", function() {
var
_function = function(){},
prototype = _function.prototype;
expect( Object.isPrototype( prototype ) ).toBe(true);
expect( Object.isPrototype( Object.pro... |
version https://git-lfs.github.com/spec/v1
oid sha256:0f157eb2b6444ea9890a0404c3444a6a30c4d76b0251af9792c803e9a32202d2
size 7304
|
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u1321\u12cb\u1275",
... |
var monk = require('monk');
var wrap = require('./monk_wrap.js');
var db = monk('localhost/beer');
var beers = wrap(db.get('beers'));
function escapeRegExp(string){
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
function ResObj() {
this.success = true;
this.error = null;
this.result = {};
};
expor... |
version https://git-lfs.github.com/spec/v1
oid sha256:6323965e17350238a26c7ab6fb5b0209dcd03b4fb2ec86db29bbe6cc383f9470
size 44217
|
#!/usr/bin/env node
/**
* Clones several projects that are known to follow "JavaScript Standard Style" and runs
* the `standard` style checker to verify that it passes without warnings. This helps
* ensure we don't accidentally introduce new style rules that cause previously "good"
* code to start failing with new... |
// @flow
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { List, ListItem, Button } from 'react-native-elements';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { SimpleLineIcons } from '@expo/vector-icons';
import * as moment from 'mom... |
let log_to_console = true;//(process.env.NODE_ENV === 'development');
export const debug_logging = (response) => {
if (log_to_console) {
console.debug("Request Returned", {
'ContentType': response.headers.get('Content-Type'),
'Status' : response.status,
"StatusText" ... |
'use strict';
angular.module('timeIsMoneyApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'btford.socket-io',
'ui.router',
'ui.bootstrap'
])
.config(function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider) {
$urlRouterProvider
.otherwise('/');
$locationProvider.html5... |
/**
* Created by ralemy on 11/16/15.
* Traces a new zone on the floor plan
*/
"use strict";
module.exports = (function (app) {
app.factory("TracerPoint", [function () {
return function (ref, stage, tracer) {
Object.defineProperties(ref, {
X: {
... |
function test() {
var superLongVariable = 'hello world';
var superLongFunction = function(superLongArgument) {
return superLongVariable;
};
return superLongFunction();
} |
var moment = require('moment')
var chai = require("chai")
var chaiAsPromised = require("chai-as-promised")
chai.use(chaiAsPromised)
var assert = chai.assert
var StandingOrder = artifacts.require('StandingOrder')
describe('Default standing order', function () {
let order
let owner = web3.eth.accounts[0]
... |
/* jshint -W097, -W079 */
"use strict";
var gulp = require("gulp");
var concat = require("gulp-concat");
var babel = require("gulp-babel");
var sourcemaps = require("gulp-sourcemaps");
var runPhantom = global.tests.runPhantom;
var filename = global.tests.specifications.knockout.spa.filename;
var specifications = g... |
'use strict';
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
exports.__esModule = true;
exports.ensureEnvironment = ensureEnvironment;
exports.createDataTree = create... |
'use strict';
describe('ecdsa DER codec', function () {
describe('vectors', function () {
var keyPair = new sjcl.ecc.ecdsa.generateKeys(sjcl.ecc.curves.k256);
it('Test Case 1', function () {
var sig = bytes.toBits([147,75,30,161,10,75,60,23,87,226,176,192,23,208,182,20,60,227,201,167,230,164,164,152,... |
/**
* @description - echarts-ng showcase
* @author - bornkiller <hjj491229492@hotmail.com>
*/
// external dependencies
import angular from 'angular';
// internal
import './app.css';
import { ECHARTS_NG } from '../src/index';
// route definitions
import ThemeTemplate from './theme/theme.tpl.html';
import { ThemeCo... |
// 0. dependencies
const express = require('express');
const axios = require('axios');
// 1. Express application - we could also have used the built-in 'http' module
const app = express();
// 2. Constants
const welcomeMsg = `
<h1>This is a sample Express proxy server application</h1>
<p>make a request to http://loc... |
/* 代码整理:大头网 www.datouwang.com */
var curIndex = 0;
var time = 800;
var slideTime = 5000;
var adTxt = $("#banner_img>li>div>.ad_txt");
var adImg = $("#banner_img>li>div>.ad_img");
var int = setInterval("autoSlide()", slideTime);
$("#banner_ctr>ul>li[class!='first-item'][class!='last-item']").click(function () {
sho... |
import AnnotationStoreProvider from './AnnotationStoreProvider';
import D3MultiClick from './D3MultiClick';
import FieldProvider from './FieldProvider';
import Histogram1DProvider from './Histogram1DProvider';
import Histogram2DProvider from './Histogram2DProvider';
import HistogramBinHoverProvider from './HistogramBin... |
var cw = 500, ch = 500;
function makeCanvas(name, transCenter) {
var svg = d3.select('body')
.append('svg')
.attr('class', 'canvas')
.attr({width: cw, height: ch});
var canvas = svg.append('g');
if (transCenter) {
canvas.attr('transform', 'translate(' + cw / 2 + ... |
define( function () {
'use strict';
var emptyArray = [], // no need to create this more than once!
asyncPattern = /async/;
return function ( keypath, signature, debug ) {
if ( !signature.compiled ) {
if ( !signature.get && !signature.set ) {
throw new Error( 'Computed values must have either a get() o... |
require('./font-list-controller');
require('./variations-controller');
var fireClosePopupEvent = function() {
window.postMessage({
type: 'close-popups',
}, "*");
}
document.body.addEventListener('click', function(e) {
fireClosePopupEvent();
});
document.body.addEventListener('keyup', function(e) {
fireCl... |
"use strict";
var SearchPageDirection_1 = require("../Enumerations/SearchPageDirection");
var SearchResultType_1 = require("../Enumerations/SearchResultType");
var SortDirection_1 = require("../Enumerations/SortDirection");
/**
* Represents search mailbox parameters.
*
* @sealed
*/
var SearchMailboxesParam... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('ember-paper/error-message', 'Integration | Component | ember paper/error message', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myPropert... |
/* eslint-disable */
var gulp = require('gulp'),
concat = require('gulp-concat'),
header = require('gulp-header'),
paths = require('../configs/paths.js'),
headerConfig = require('../configs/header.js');
gulp.task('head.javascripts', function() {
return gulp.src(paths.librar... |
import React, { Component, PropTypes } from 'react';
import CookForm from 'components/CookForm/CookForm';
import { createCook } from 'redux/modules/common';
import { show as showToast } from 'redux/modules/toast';
import { connect } from 'react-redux';
import submit from '../submit';
@connect(null, { createCook, showT... |
/*
* The MIT License
*
* Copyright 2017 michael.
*
* 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... |
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
{
path: '/',
component: resolve => require(['views/home'], resolve),
name: 'home'
},
{
path: '/profile',
auth: true,
meta: {
requiresAuth: true
},
component: resolve => require(['vi... |
import mkdirp from 'mkdirp';
const makeDir = (name) => new Promise((resolve, reject) => {
mkdirp(name, err => err ? reject(err) : resolve());
});
export default makeDir; |
module.exports = {
DomHelper: require('./lib/DomHelper.js'),
Eventing: require('./lib/Eventing.js'),
Hitbox: require('./lib/Hitbox.js'),
makeBlob: require('./lib/makeBlob.js'),
Scheduler: require('./lib/Scheduler.js'),
svgColorize: require('./lib/svgColorize.js')
}; |
/**
* Easylife_GridEnhancer extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* that is bundled with this package in the file LICENSE_GRID_ENHANCER.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/mit-license.php
*
* @categor... |
define(function (require) {
// Local modules
var Events = require("src/Events"),
EventEmitter = require("src/EventEmitter");
// Icon element
var $terminalIcon = $("<a id='git-toolbar-terminalicon' href='#'></a>").appendTo($("#main-toolbar .buttons"));
// Icon event
$terminalIc... |
import { cssifyMediaQueryRules, objectReduce, clusterCache, RULE_TYPE, KEYFRAME_TYPE, STATIC_TYPE, FONT_TYPE } from 'fela-utils';
export default function renderToString(renderer) {
var _clusterCache = clusterCache(renderer.cache, renderer.mediaQueryOrder),
fontFaces = _clusterCache.fontFaces,
statics = _... |
window.searchData = [{"t":"Mailer","p":"class/Mailer.html"},{"t":"src/index.coffee","p":"file/src/index.coffee.html"},{"t":"src/modules/mailer.coffee","p":"file/src/modules/mailer.coffee.html"},{"t":"src/test/mailer.spec.coffee","p":"file/src/test/mailer.spec.coffee.html"},{"t":"README.md","p":"extra/README.md.html"},{... |
module.exports = [
]; |
// Generated by CoffeeScript 1.8.0
(function() {
$(function() {
var sessid, sock, updateProgress;
proto = location.protocol == "http:" ? "ws" : "wss"
sock = new WebSocket(proto + (location.href.substring(location.protocol.length - 1, location.href.lastIndexOf('/'))));
sock.onopen = function() {
... |
$(document).ready(function() {
$('#degree').val($("#thesis_ref_degree").val());
});
$(function() {
$('input[name="thesis_ref[type_thesis]"]').on('change', function() {
$("#thesis_ref_degree option:contains(Doutorado)").attr('selected', $(this).val() == 'Tese');
$("#thesis_ref_degree option:cont... |
var FLASH_EVENTS = {
show: "$rs-flash-show",
hide: "$rs-flash-hide"
};
var types = {
success: "alert-success",
info: "alert-info",
warning: "alert-warning",
danger: "alert-danger"
};
var config = {
timeout: null,
static: false
}; |
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val;
* this.next = null;
* }
*/
/**
* @param {ListNode} head
* @param {number} n
* @return {ListNode}
*/
var removeNthFromEnd = function(head, n) {
var temp = head,
pos = head,
count = 0;
while(temp.next !== null){
... |
var http = require('http')
var port = process.env.PORT || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port); |
import React from "react";
import Variable from "./Variable";
import { COMMANDS } from "../maki-interpreter/constants";
export default function Command({ command, variables }) {
const { arg } = command;
let foo = null;
switch (command.opcode) {
case 1:
foo = (
<span>
Variable(
... |
var db = require('mongojs').connect('mongodb://localhost/mongo_feed_test');
var feed = require('../')(db,'events');
var _ = require('glutils');
_.run(function() {
_.p(feed.post({what: 'something happened', who: 'odysseas'},_.p()));
_.p(feed.post({what: 'something else happened', who: 'john'},_.p()));
_.p(feed.pos... |
$(document).ready(function(){
if($("#chart_activity").length > 0){
var stuff = [], contacts = [];
for (var i = 0; i < 7; i += 1) {
stuff.push([i, parseInt(Math.random() * 30)]);
contacts.push([i, parseInt(Math.random() * 30)]);
}
$.plot($("#cha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.