code stringlengths 2 1.05M |
|---|
/*global img_list emoticon_list triangle_img setClipboardText*/
//่ทๅ่ขซ@็็จๆท๏ผๅ่กจๅผๅงไบ index 1
function get_at_name_list( str ){
var name_list = Array();
var patt_at_name = RegExp("<a.*?href=\"/member/(.*?)\">", "g");
name_list[0] = "t";
for (let i=1; name_list[i-1]; ++i){
name_list[i] = patt_at_name.e... |
module.exports = {
// So parent files don't get applied
root: true,
globals: {
preval: false,
},
env: {
es6: true,
browser: true,
node: true,
jest: true,
},
extends: ['plugin:import/recommended', 'airbnb'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType... |
var buildDefer = function(constructor, config, isNative) {
if(!isNative && config.defer) {
var defer = this.library[config.defer];
if(config.deferredFuncs) { //If we need to remap deferred functions
constructor.defer = function() {
var deferred = defer();
if(config.deferredFu... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.9.1 (2021-08-27)
*/
(function () {
'use strict';
... |
/**
* @author Bilal Cinarli
*/
var optimize = function(gulp, options, plugins) {
gulp.task('optimize', function() {
return gulp.src(options.config.paths.app + '**/*.{gif,jpg,png,svg}')
.pipe(plugins.imagemin({
progressive: true,
svgoPlugins: [{remov... |
'use strict';
//Participants service used to communicate Participants REST endpoints
angular.module('participants').factory('Participants', ['$resource',
function($resource) {
var Participant = $resource('participants/:participantId', { participantId: '@_id'
}, {
update: {
method: 'PUT'
}
});
ang... |
import React from 'react';
import { render } from 'react-dom';
import { applyMiddleware, compose, createStore } from 'redux';
import { createBrowserHistory } from 'history';
import { routerMiddleware, connectRouter } from 'connected-react-router';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';... |
/**
* Given a positive integer, print all possible sum combinations using positive integers.
* For example, if we are given input '5', these are the possible sum combinations.
1, 4
2, 3
1, 1, 3
1, 2, 2
1, 1, 1, 2
1, 1, 1, 1, 1
* @param target
* @param current_sum
* @param start
* @pa... |
/**
* Mixin for exposing functionality of switching active module
* Encapsulates actions.loadModule call
*/
var actions = require('../actions');
var ModuleActivationMixin = {
activateModule: function (name) {
actions.loadModule(name);
}
};
module.exports = ModuleActivationMixin;
|
function indice(){
} |
/**
* NWT mysql driver
* @constructor
*/
function NWTmysql(config, model) {
this.model = model;
var mysql = require('mysql');
this.client = mysql.createClient({
host: config.host,
port: config.port,
user: config.username,
password: config.password,
});
this.client.query('USE '+config.database);
var ... |
var prompt = require("prompt");
var Prompt = module.exports.Prompt = function Prompt(logger){
prompt.logger = logger;
prompt.message = "prompt".magenta;//"[Turret]".grey;
prompt.delimiter = ": ";
return prompt;
}; |
var mongoose = require('mongoose');
var User = mongoose.model('User');
exports.signup = function(req, res) {
var _user = req.body.user;
User.findOne({
name: _user.name
}, function(err, user) {
if (err) {
console.log(err);
}
if (user) {
return res.redirect('/#/login');
} else {
user = new User(_... |
'use strict';
var _ = require('lodash');
var chalk = require('chalk');
var aws = require('./lib/aws.js');
var conf = require('./lib/conf.js');
var prettyprint = require('./lib/prettyprint.js');
module.exports = function (grunt) {
grunt.registerTask('ec2_list', 'Lists instances filtered by state. Defaults to `run... |
๏ปฟconst crypto = require('crypto'),
path = require('path');
const hashFolder = require('../index.js');
console.log(`Known hash algorithms:\n'${crypto.getHashes().join(`', '`)}'\n`);
const dir = path.resolve(__dirname, '../');
hashFolder
.hashElement('README.md', dir)
.then(result => {
console.log('\nCreate... |
var express = require("express");
var app = express();
var user = require("./user.js");
var bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
app.use('/user',user);
app.use(express.static(__dirname + '/static'));
app.listen(8900); |
const _ = require('lodash');
const passport = require('passport');
const request = require('request');
const InstagramStrategy = require('passport-instagram').Strategy;
const LocalStrategy = require('passport-local').Strategy;
const FacebookStrategy = require('passport-facebook').Strategy;
const TwitterStrategy = requi... |
/**
* Created by bluewaitor on 16/1/1.
*/
var q = require('q');
var defer = q.defer();
function printError(err){
console.log(err.message);
}
defer.promise.then(null, printError);
setTimeout(defer.reject, 300, new Error("REJECTED!"));
|
'use strict'
const {STRING} = require('sequelize')
module.exports = db => db.define('drills', {
name: STRING,
url: STRING
})
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jss')) :
typeof define === 'function' && define.amd ? define(['exports', 'jss'], factory) :
(global = global || self, factory(global.jssPluginDefaultUnit = {}, global.jss));
}(this, function (exp... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
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, key)) { target[key] = source[key]; } }... |
var gulp = require('gulp');
var pug = require('gulp-pug');
var less = require('gulp-less');
var minifyCSS = require('gulp-csso');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps');
gulp.task('html', function(){
return gulp.src('templates/pug/*.pug')
.pipe(pug())
.pipe(gulp.dest... |
'use strict'
const fs = require('fs');
module.exports = (__filePath, binary) => {
try {
if (binary.pipe) {
return binary.pipe(fs.createWriteStream(__filePath));
} else {
return fs.writeFileSync(__filePath, binary);
}
} catch (e) {
console.error(e)
}
... |
/* global angular */
(function () {
"use strict";
var app = angular.module('generator');
app.controller('GeneratorCtrl', ['$scope', 'codeService',
function ($scope, codeService) {
$scope.tableModel = {};
$scope.chainingMethodsSortable = {
containment: "par... |
'use strict';
angular.module('<%= scriptAppName %>')
.controller('<%= classedName %>Ctrl', function ($scope) {
$scope.foo = 'foo';
});
|
/*
* grunt
* http://gruntjs.com/
*
* Copyright (c) 2013 "Cowboy" Ben Alman
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
*/
'use strict';
var grunt = require('../grunt');
// Nodejs libs.
var fs = require('fs');
var path = require('path');
// The module to be exp... |
var babel = require('gulp-babel');
var concat = require('gulp-concat');
var eslint = require('gulp-eslint');
var gulp = require('gulp');
var ignore = require('gulp-ignore');
var inject = require('gulp-inject-string');
var watch = require('gulp-watch');
// Stupid stupid stupid Node
function clone(a) {
return JSON.pars... |
import React from 'react';
import Navigation from './navigation';
import PropTypes from 'prop-types';
import Content from './content';
import RoundedToggle from './rounded_toggle';
import GithubSlugger from 'github-slugger';
import debounce from 'lodash.debounce';
import { brandNames, brandClasses } from '../custom';
i... |
import React, { Component } from 'react';
import { connect } from "react-redux";
import Window from "components/Window";
import WindowContent from "components/Window/Content";
import Toolbar from "components/Toolbar";
import Panes from "components/Panes";
import Pane from "components/Panes/Item";
import Tabs from "com... |
/**
* Module dependencies.
*/
import sendRequest from './send-request';
/**
* Expose `Request` module
* @param {WPCOM} wpcom - wpcom instance
*/
export default function Req( wpcom ) {
this.wpcom = wpcom;
}
/**
* Request methods
*
* @param {Object|String} params - params object
* @param {Object} [query] - qu... |
define(function() {
"use strict";
function MultiMap() {
this._map = {};
}
MultiMap.prototype = {
put: function(key, val) {
var entries = this._map[key];
if (entries == null) {
entries = [];
this._map[key] = entries;
}
entries.push(val);
return this;
},
putAll: function(key, vals) ... |
/*jshint node:true*/
'use strict';
var path = require('path');
var existsSync = require('exists-sync');
var chalk = require('chalk');
var EOL = require('os').EOL;
module.exports = {
normalizeEntityName: function() {
// this prevents an error when the entityName is
// not specified (since that doesn't actua... |
// ----------------------------------------------------------------------------
// File: Extendable.js
//
// Copyright (c) 2014 VoodooJs Authors
// ----------------------------------------------------------------------------
/**
* Creates an extendable type.
*
* Extendable provides some aspects of a classical inh... |
(function () {
'use strict';
angular
.module('coupons')
.run(menuConfig);
menuConfig.$inject = ['menuService'];
function menuConfig(menuService) {
menuService.addMenuItem('topbar', {
title: 'Coupons',
state: 'coupons',
type: 'dropdown',
roles: ['*']
});
// Add the... |
/* eslint-disable no-new */
import $ from 'jquery';
import NewCommitForm from '../new_commit_form';
import EditBlob from './edit_blob';
import BlobFileDropzone from '../blob/blob_file_dropzone';
import initPopover from '~/blob/suggest_gitlab_ci_yml';
import { disableButtonIfEmptyField, setCookie } from '~/lib/utils/co... |
goog.require('ngeo.AutoProjection');
goog.require('ngeo.proj.EPSG21781');
describe('ngeo.AutoProjection', () => {
let ngeoAutoProjection;
beforeEach(() => {
inject(($injector) => {
ngeoAutoProjection = $injector.get('ngeoAutoProjection');
});
});
it('Get coordinates from a string', () => {
... |
import React, {Component, PropTypes} from 'react';
import {Link} from "react-router";
import {Akkad} from "akkad";
class Landing extends Component {
render() {
const {children} = this.props;
return (
<div>
<h2>
Welcome to the Akkad example App!!
... |
var MySql = require('../../../../src/dialect/my-sql');
describe("MySql Select", function() {
beforeEach(function() {
this.dialect = new MySql();
this.select = this.dialect.statement('select');
});
describe(".lock()", function() {
it("sets the `FOR UPDATE` flag", function() {
this.select.fro... |
/**
* @file isBreached command
* @author Sankarsan Kampa (a.k.a k3rn31p4nic)
* @license GPL-3.0
*/
exports.exec = async (Bastion, message, args) => {
if (!args.name) {
return Bastion.emit('commandUsage', message, this.help);
}
args.name = args.name.join('');
let breachedSite = await Bastion.methods.m... |
import callAPI from './api';
import { loadBracket } from './brackets';
import { loadBracketRounds } from './bracket_rounds';
import { loadMatchReport } from './match_reports';
import { loadTeam } from './teams';
const matchLoaders = {
bracketId: loadBracket,
bracketRound: (id, deps, match) => loadBracketRounds({
... |
//= require ./vendor/jquery-1.11.0
//= require ./vendor/jquery.cookie
//= require ./vendor/jquery.ba-bbq.min
//= require ./vendor/handlebars-v1.3.0
//= require ./vendor/ember
//= require ./vendor/ember-data
//= require foundation
//= require ./learn_lti_engine
|
var mproc = require('..');
exports['define and simple run'] = function (test) {
test.async();
var processor = mproc.createProcessor();
processor.use(function (message, next) { message++; next(null, message); })
.use(function (message) { test.equal(2, message); test.done() });
p... |
'use strict';
angular.module('phocket.directive.photo', ['phocket.directive.tag'])
.directive('photo', function () {
function getRatio (width, height) {
return height / width;
}
function getImageUrl (width, photo) {
var height = parseInt(width * getRatio(photo.width, photo.height), 10);
return [
'http... |
$(document).ready(function(){
$('#login').click(function(){
window.location.href = "login";
});
function showError(error){
$('#error').html(error);
}
$('#submit').click(function(){
var login = $('#login_text').val(),
email = $('#email').val(),
passw... |
var app = angular.module ('timesTrailer',
['Assets',
'Editor',
'Canvas',
'Article',
'Timeline',
'ConfigService',
'SlidesService',
'AssetService',
'cfp.hotkeys',
'UploadService',
'ui.sortable']);
app.directive("scroll", function ($window) {
return function($scop... |
'use strict'
var path = require('path')
var child = require('child_process')
var http = require('http')
var util = require('util')
var connect = require('connect')
var serveStatic = require('serve-static')
exports.setup = function(program) {
var state = {}
var config = require(path.join(process.cwd(), (program.c... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var unit = exports.unit = function unit(props, propName, componentName) {
if (!/(pt|px|em|rem|vw|vh|%)$/.test(props[propName])) {
return new Error('Invalid prop `' + propName + '` supplied to' + ' `' + componentName + '`. Vali... |
Package.describe({
name: 'remcoder:grapnel',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: '',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting docume... |
$(function () {
services.initialize();
contactForm.initialize();
// retina display
if (window.devicePixelRatio >= 1.2) {
$("[data-2x]").each(function () {
if (this.tagName == "IMG") {
$(this).attr("src", $(this).attr("data-2x"));
} else {
... |
function changeStyle(req, res) {
var style = req.body.style;
console.log("style submited: " + style);
console.log("style in session: " + req.session.style);
switch (style) {
case 'hackey':
req.session.style = 'hackey.css';
break;
case 'girlie':
req.ses... |
/**
* Copyright (c) 2007 Kelvin Luck (http://www.kelvinluck.com/)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* $Id: jquery.datePicker.js 3739 2007-10-25 13:55:30Z kelvin.luck $
* Amends by Mi... |
function LetterCountI(str) {
var arrStr = str.toLowerCase().split(' ');
console.log(arrStr);
var res = {};
for (var i = 0; i < arrStr.length; i++) {
// arrStr[i]
var thisWord = arrStr[i];
console.log(res);
res[thisWord] = {};
// console.log(res);
res[thisWord]["highest"] = 0;
for ... |
/**
* @module Wallets
* @desc [MangoPay Wallets API Reference](https://docs.mangopay.com/endpoints/v2.01/wallets)
*/
var Service = require('../service');
var Wallet = require('../models/Wallet');
var Transaction = require('../models/Transaction');
var Wallets = Service.extend({
/**
* Create new wallet
... |
search_result['876']=["topic_00000000000001F2.html","OrganizationProfileController.GetAllCountries Method",""]; |
var concat = require('concat-stream')
var lamos = require('./')
var pump = require('pump')
var stringToStream = require('string-to-stream')
var tape = require('tape')
var examples = require('./examples').map(function (example) {
if (example.lamos) {
example.lamos = example.lamos.join('\n')
}
return example
}... |
var GliderTrackModel = Backbone.Model.extend({
urlRoot: '#',
defaults: {
reference_designator: "",
type: "LineString",
coordinates:[[]],
}
});
var GliderTrackCollection = Backbone.Collection.extend({
url: '/api/uframe/glider_tracks',
model: GliderTrackModel,
parse: function(respo... |
๏ปฟ๏ปฟ/* http://keith-wood.name/countdown.html
Traditional Chinese initialisation for the jQuery countdown extension
Written by Cloudream (cloudream@gmail.com). */
(function($) {
$.countdown.regionalOptions['zh-TW'] = {
labels: ['ๅนด', 'ๆ', 'ๅจ', 'ๅคฉ', 'ๆ', 'ๅ', '็ง'],
labels1: ['ๅนด', 'ๆ', 'ๅจ', 'ๅคฉ', 'ๆ', 'ๅ', '็ง'],
... |
import React from 'react';
import MainHeader from './MainHeader';
require ('../css/AboutMain.css');
export default class AboutMain extends React.Component{
render() {
return (
<main className="AboutMain main-body">
<MainHeader {...this.props} />
<section className="container">
<h1>ๅ
ณไบๆ</h1>
<p... |
/**
* ๅนถ่กๆง่กๅผๆญฅไปปๅก:
* parallel ็ๅ็ๆฏๅๆถๅนถ่กๅค็ๆฏไธไธชๆต็จ,ๆๅๆฑๆป็ปๆ,ๅฆๆๆไธไธชๆต็จๅบ้ๅฐฑ้ๅบ
*
* I need to run multiple tasks that doesn't depend on each other and when they all finish do something else
* Then you should use async.parallel.
* @type {async|exports}
*/
var async = require('async');
console.time('parallel');
async.parallel([
... |
class Delay extends Module {
constructor(moduleLabel, ...pins) {
super(moduleLabel, ...pins);
this.inputNode = actx.createGain();
this.outputNode = actx.createGain();
this.feedbackNode = actx.createGain();
this.feedbackNode.gain.value = 0.9;
this.delayNode = actx.createDelay(5);
this.in... |
/**
* Created by johnschroeder on 7/14/15.
*/
var fs = require("fs");
var glob = require("glob");
var Q = require("q");
var reload = function() {
var db = require("./imp_services/impdb").connect();
var path = process.cwd()+'/config/StoredProcedures/';
var grandQuery = "\n#Add 'USE imp_db_dev' or 'USE imp... |
'use strict'
export TextBody from './text_body'
export Container from './container'
export Composition from './composition'
|
import React from 'react'
// EVENTS
class Toggle {
update(model) {
return { model: !model }
}
}
// APP
export default {
init() {
return { model: true }
},
update(model, event) {
return event.update(model)
},
view(model, dispatch) {
const onClick = () => dispatch(new Toggle())
co... |
import { renderToDOM } from 'lib/application'
renderToDOM( document.getElementById('application') )
|
const chrome = require('..')
try {
chrome()
.goto('https://cn.bing.com/').viewport(1440).scrollTo(1, 1).screenshot().end().then((data) => {
console.log('base64 Data length:', data.length)
})
} catch (e) {
console.log(e)
chrome().end()
}
|
๏ปฟ// jQuery to collapse the navbar on scroll
$(window).scroll(function () {
if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
});
// jQuery for page scrolling feature - requires jQuery... |
function stop () {
var handlers = this.handlers;
for (var key in handlers) {
handlers[key].stop();
};
//_.forIn(handlers, function (handler) {
// handler.stop();
//});
};
HandlerController = function () {
this.handlers = [];
};
HandlerController.prototype.set = function (name) {
var oldHandler = this.handle... |
#!/usr/bin/env node
require("Make").main();
|
var pg = require('pg');
var url = require('url');
var config = {};
if (process.env.DATABASE_URL) {
// Heroku gives a url, not a connection object
// https://github.com/brianc/node-pg-pool
var params = url.parse(process.env.DATABASE_URL);
var auth = params.auth.split(':');
config = {
user: auth[0],
p... |
module.exports = (function () {
function selectionSort(array){
for (let i = 0; i < array.length - 1; i++) {
let minPos = i;
for (let j = i + 1; j < array.length; j++) {
minPos = array[j] < array[minPos] ? j : minPos;
}
let temp = array[i];
... |
// Run using
// node examples/tour.js
var sys = require("sys");
var redis = require("redis-node");
var client = redis.createClient(); // Create the client
client.select(2); // Select database 2
// Assign the string "world" to the "hello" key.
// You can provide a callback to handle the respon... |
/**
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* http://code.google.com/p/blockly/
*
* 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.apache.org/licenses/... |
$(document).ready(function(){
window.setInterval(function() {
$('.timeleft').each(function(){
var lastHeartbeat, timeout, timeleft,
days, hours, minutes, seconds,
aliveOKClass, aliveKOClass;
lastHeartbeat = $(this).data('lastheartbeat') * 1000;
... |
๏ปฟ/**
* @license Modifica e usa come vuoi
*
* Creato da TurboLab.it - 01/01/2014 (buon anno!)
*/
CKEDITOR.plugins.add( 'tliyoutube', {
icons: 'tliyoutube',
init: function( editor ) {
editor.addCommand( 'tliyoutubeDialog', new CKEDITOR.dialogCommand( 'tliyoutubeDialog' ) );
editor.ui.... |
(function() {
'use strict';
exports.typeAheadfromList = function(req, res, next) {
var query = io.url.parse(req.url, true).query,
re = new RegExp(query.fromName, 'i');
var options = {
find: {
name: {
$regex: re
}
},
name: 'InvoiceFromAddress',
r... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Model Schema
*/
var ModelSchema = new Schema({
model: {
type: String,
default: '',
required: 'Please fill Make name',
trim: true
},
created: {
type: ... |
var arr1 = [1,2,3];
var arr2 = [4,5,6];
function concat(arr1,arr2){
var arrNew = [];
arr1.forEach((ele)=>{
arrNew.push(ele);
})
arr2.forEach((ele)=>{
arrNew.push(ele);
})
return arrNew;
}
console.log(concat(arr1,arr2));
console.log(arr1,arr2);
|
var lines = before.value.trim().split('\n');
var headers = 'startTime endTime duration transcript notes translation phonemic phonetic'.split(' ');
function labelLine(line) {
var o = {};
var parts = line.split('\t');
headers.forEach(function (header, i) {
o[header] = parts[i]
});
return o;
}
// have ... |
version https://git-lfs.github.com/spec/v1
oid sha256:44499e36574867617d49feb4df3b7299f2f9125f688b36b1529a57be9e86c468
size 2851
|
const root = '/domains/';
class Domains {
/**
* `Domains` constructor.
*
* @param {WPCOM} wpcom - wpcom instance
* @return {Undefined} undefined
*/
constructor( wpcom ) {
if ( ! ( this instanceof Domains ) ) {
return new Domains( wpcom );
}
this.wpcom = wpcom;
}
/**
* Get a list of suggested ... |
version https://git-lfs.github.com/spec/v1
oid sha256:f40e892c7a6b7af39f2f826ecf56c8020a80169d03f94a5c57f5443ca35d0988
size 896
|
/**
* Sails.js plugin loader
* Has to be used as config.moduleLoaderOverride
* For now this won't work wit `sails lift`
*
* Lot's of the code is from sails moduleloader hook
*/
var path = require('path');
var async = require('async');
var _ = require('lodash');
var buildDictionary = require('sails-build-diction... |
$(() => {
$('#visualizing-simplex__plotly-div').ready(() => drawPolytope('visualizing-simplex__plotly-div', false, false, false));
$('#visualizing-simplex__plotly-extremes-div').ready(() => drawPolytope('visualizing-simplex__plotly-extremes-div', true, false, false));
$('#visualizing-simplex__plotly-path-... |
var compose = require('ksf/utils/compose');
var _Evented = require('ksf/base/_Evented');
var onOffEvent = require('../utils/onOffEvent');
var capitalize = require('lodash/string/capitalize')
/**
Layouter qui positionne et dimensionne tous les enfants ร la mรชme position et dimension que lui-mรชme
*/
module.exports = com... |
/**
* @fileoverview Tests for camelcase rule.
* @author Nicholas C. Zakas
*/
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var eslintTester = require("../../../lib/tests/eslintTester"... |
version https://git-lfs.github.com/spec/v1
oid sha256:2a70bd7ec46f9c208c0f2203576a15958775a6c151e558982cb75739cd5a236f
size 37902
|
MLoader.define(["tests/js/simple"], function(simple) {
return {
"onedependency": simple
};
});
|
var app = app || {};
(function(){
app.TestButton = React.createClass({displayName: "TestButton",
handleClick: function() {
this.props.submitTestTask(this.props.btnType);
},
render: function() {
return ( React.createElement("button", {onClick: this.handleClick,
... |
for(var a in b); |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('bricks-grid', 'Integration | Component | bricks grid', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle an... |
var through = require('through2'),
gutil = require('gulp-util'),
lyonesse = require('lyonesse'),
PluginError = gutil.PluginError,
extend = require('util')._extend;
module.exports = function (options) {
function write (f, enc, cb){
var self = this;
if (f.isNull()) {
s... |
/**
* @fileoverview ๅฎไนไบTagNameๆไธพๅผ. ๆไธพไบๆๆHTMLๆ ็ญพๅๅๆฌไบW3C HTML 4.01ๅ
็ด ๅHTML5่ๆก.
* References:
* http://www.w3.org/TR/html401/index/elements.html
* http://dev.w3.org/html5/spec/section-index.html
*
* @author Leo.Zhang
* @email zmike86@gmail.com
*/
/**
* Enum of all html tag names specified by the... |
'use strict';
/**
* Module dependencies.
*/
var acl = require('acl');
// Using the memory backend
acl = new acl(new acl.memoryBackend());
/**
* Invoke Articles Permissions
*/
exports.invokeRolesPolicies = function () {
acl.allow([{
roles: ['admin'],
allows: [{
resources: '/api/articles',
pe... |
var searchData=
[
['has_5fstatus',['has_status',['../a00168.html#a75ab58b901d242ae27e36bd39b23a54f',1,'tds_socket']]],
['hour',['hour',['../a00178.html#ae9f0348efe607ac7333eac841be46333',1,'tdsdaterec']]],
['how_20to_20add_20a_20new_20type',['How to add a new type',['../a00002.html',1,'']]]
];
|
const {app, BrowserWindow} = require('electron');
let win;
function createWindow() {
win = new BrowserWindow({width: 800, height: 600});
win.loadURL(`file://${__dirname}/index.html`);
win.on('closed', () => {
win = null;
});
win.toggleDevTools();
}
// create window when app starts
app.on('... |
$(document).ready(function() {
// ScrollAppear
if (typeof $.fn.scrollAppear === 'function') {
$('.scrollappear').scrollAppear();
}
// Zooming
new Zooming(
{customSize: '100%', scaleBase: 0.9, scaleExtra: 0, enableGrab: false}
).listen('img[data-action="zoom"]');
// Share buttons
$('.article-s... |
angular.module('mean.icu.ui.autofocus', [])
.directive('autofocus', function() {
function link($scope, $element) {
$element[0].focus();
$scope.onEnter = function($event) {
if ($event.keyCode === 13) {
$event.preventDefault();
$element.parent().find('.tex... |
angular
.module('knotz-app')
.controller('navbarCtrl', function ($scope, userService, modalService, $state) {
$scope.navCollapsed = false;
$scope.currentState = $state;
$scope.state = $state.current.name;
/**
* Shows a modal.
*/
$scope.showModal = funct... |
$require('../node_modules/redux/dist/redux.js')
|
var PLUGIN_NAME = 'GROUPER';
$(document).ready(function() {
$(function() {
FastClick.attach(document.body);
});
if (parent.isTeacher) {
var numberOfGroups = parent.document.students.numberOfGroups;
var groupType = parent.document.students.groupType;
// console.log(numberOfGroups);
$("#button... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.