commit stringlengths 40 40 | subject stringlengths 1 3.25k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | old_contents stringlengths 0 26.3k | lang stringclasses 3
values | proba float64 0 1 | diff stringlengths 0 7.82k |
|---|---|---|---|---|---|---|---|
e6626fe7d06df4872dec47619823218d60617665 | Remove task | Gruntfile.js | Gruntfile.js | /*jshint node: true, camelcase: false */
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-jshint');
... | JavaScript | 0.999995 | @@ -2268,339 +2268,8 @@
);%0A%0A
-%09grunt.registerTask('convert-check', function () %7B%0A%09%09var files = grunt.file.expand(%5B'lib/checks/**/*.json'%5D);%0A%09%09files.forEach(function (file) %7B%0A%09%09%09var src = grunt.file.readJSON(file);%0A%09%09%09if (src.result) %7B%0A%09%09%09%09src.type = src.result;%0A%... |
1ed09e302d084ed9da245b9e1d8260a19aa96b98 | Fix preserveComments in uglify which was not removing any comments | Gruntfile.js | Gruntfile.js | //jshint maxcomplexity: 12, maxstatements: false, camelcase: false
var testConfig = require('./build/test/config');
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-... | JavaScript | 0.000001 | @@ -2836,22 +2836,139 @@
mments:
-'some'
+function(node, comment) %7B%0A%09%09%09%09%09%09// preserve comments that start with a bang%0A%09%09%09%09%09%09return /%5E!/.test( comment.value );%0A%09%09%09%09%09%7D
,%0A%09%09%09%09%09m
|
22ec68b55d24ff4d55ac75a9bdb27b1efc5c2708 | Disable automatic documentation deployment | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
jshint: {
all: ['Gruntfile.js', 'lib/**/*.js', 'tests/**/*.js'],
options: {
jshintrc: '.jshintrc'
}
},
jsonlint: {
all: ['*.j... | JavaScript | 0 | @@ -2068,18 +2068,8 @@
doc'
-, 'deploy'
%5D);%0A
|
da60111f5761c9508aaef8525266f07bb724d0bc | Clean .grunt-directory | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
/* Task configuration */
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: [ '_SpecRunner.html', 'coverage/', 'dist/' ]
},
watch: {
src: {
files: [ 'Grun... | JavaScript | 0.000009 | @@ -188,16 +188,27 @@
build: %5B
+ '.grunt/',
'_SpecR
|
edf6931d25c151e08b93c9d6d3f77024b6c570ee | Reset disks on startup | app/src/views/disk-view.js | app/src/views/disk-view.js | const SculptureStore = require('@anyware/game-logic/lib/sculpture-store');
const DisksActionCreator = require('@anyware/game-logic/lib/actions/disks-action-creator');
const Disk = require('@anyware/game-logic/lib/utils/disk');
const SerialManager = require('../serial/serial-manager');
const serialProtocol = require('.... | JavaScript | 0.000001 | @@ -219,16 +219,82 @@
/disk');
+%0Aconst GAMES = require('@anyware/game-logic/lib/constants/games');
%0A%0Aconst
@@ -1707,16 +1707,87 @@
if (
+changes.currentGame === GAMES.HANDSHAKE %7C%7C // Reset on startup%0A
changes.
@@ -1851,16 +1851,24 @@
vel') %7C%7C
+%0A
changes
|
7ea8958981f1f84102382cbde3180334f2f95ed5 | Make Gruntfile generate files to right places | Gruntfile.js | Gruntfile.js | var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point) {
return connect['static'](path.resolve(point));
};
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('packag... | JavaScript | 0.000001 | @@ -453,21 +453,23 @@
-basic
+options
: %7B%0A
@@ -485,109 +485,100 @@
s
-rc: %5B'%3C%25= dirs.src %25%3E/%3C%25= pkg.name %25%3E'%5D,%0A dest: '%3C%25= dirs.dest %25%3E/%3C%25= pkg.name %25%3E'%0A
+tripBanners: true,%0A banner: '/*! %3C%25= pkg.name %25%3E - v%3C%25=... |
7cb25548a164ef555d466af0c9fcfb1d15066977 | comment out screwIE8 uglify option because it broke. | Gruntfile.js | Gruntfile.js | "use strict";
var license = [
'/** ',
' * @license twgl.js Copyright (c) 2015, Gregg Tavares All Rights Reserved. ',
' * Available via the MIT license. ',
' * see... | JavaScript | 0 | @@ -4403,32 +4403,34 @@
true,%0A
+//
screwIE8: true,%0A
@@ -4648,16 +4648,18 @@
+//
screwIE8
|
2b672527a7caf373c2baf9493b0ccf481fd06fef | Clean out all dotfiles, not just .htaccess | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
require('time-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// define variables for Gruntfile
config: {
src: 'src',
dist: 'dist',
appFolder: 'app',
componentsFolde... | JavaScript | 0.000002 | @@ -2887,16 +2887,9 @@
%25%3E/.
-htaccess
+*
', '
|
8d649fa2016d2e3ba019e88975efba00d584cd08 | Fix zindex on bluedot overlay | app/views/common/BlueDot.js | app/views/common/BlueDot.js | import React from 'react';
import { View } from 'react-native';
import * as Animatable from 'react-native-animatable';
const BlueDot = ({ dotSize, dotStyle }) => {
const innerWhiteDotSize = dotSize * 0.6,
innerBlueDotSize = dotSize * 0.5;
return (
<View style={dotStyle}>
<Animatable.View
style={{ width: ... | JavaScript | 0.000001 | @@ -1099,33 +1099,33 @@
ze / 2, zIndex:
-3
+4
%7D%7D /%3E%0A%09%09%3C/View%3E
|
bed836ff8cad8915530857f7f3fc8e43edc64fd8 | update jsdoc template | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
//load npm tasks
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
mocha : {
browser : {
//src : ['test/**/index.html'],
... | JavaScript | 0 | @@ -1265,16 +1265,29 @@
rc/*.js'
+, 'README.md'
%5D, %0A
@@ -1347,16 +1347,221 @@
n: 'doc'
+,%0A template : %22node_modules/grunt-jsdoc/node_modules/ink-docstrap/template%22,%0A configure : %22node_modules/grunt-jsdoc/node_modules/ink-docstrap/template/jsdoc.conf.json%22
%0... |
7b03a159147890d149206b23bcde65dda0afc7b2 | fix requirejs exclusions | Gruntfile.js | Gruntfile.js | var path = require('path');
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
},
gruntfile: {
src: 'Gruntfile.js'
},
api: {
src: [
'src/api/**/*.js',
]
},
ui: {
src: [
... | JavaScript | 0.000001 | @@ -2519,16 +2519,28 @@
/(%5E%5C.%7C%5E
+release.*$%7C%5E
bin$%7C%5Ear
|
5fea8764ed28371e0e8b16a3ef3a21e9fe3504f4 | Load config relative to current dir. | Gruntfile.js | Gruntfile.js | /*
** lite-proxyserver
** Design and Development by msg Applied Technology Research
** Copyright (c) 2016 msg systems ag (http://www.msg.group/)
*/
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-connect')
grunt.loadNpmTasks('grunt-connect-proxy')
grunt.loadNpmTasks('grunt-ext... | JavaScript | 0 | @@ -149,16 +149,45 @@
/)%0A */%0A%0A
+var path = require(%22path%22);%0A%0A
module.e
@@ -376,16 +376,37 @@
adTasks(
+path.join(__dirname,
%22grunt-c
@@ -416,8 +416,9 @@
ig%22)
-%0A
+)
%0A%7D;
+%0A
|
b4293fcd47b7d021564ec89771c05ba4842b2818 | update ColGroup | src/_ColGroup/ColGroup.js | src/_ColGroup/ColGroup.js | /**
* @file ColGroup component
* @author liangxiaojun(liangxiaojun@derbysoft.com)
*/
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import SelectMode from '../_statics/SelectMode';
import SelectAllMode from '../_statics/SelectAllMode';
import SortingType from '../_statics/SortingType';... | JavaScript | 0 | @@ -739,22 +739,31 @@
mns.map(
+(
column
+, index)
=%3E colu
@@ -796,16 +796,57 @@
%3Ccol
+key=%7Bindex%7D%0A
style=%7B%7B
@@ -846,16 +846,21 @@
tyle=%7B%7B%0A
+
@@ -898,18 +898,30 @@
mn.width
-,%0A
+ %7C%7C 100,%0A
@@ -965,17 +965,29 @@
minWidth
-... |
16f2105645cb9ad5e466248f01664ec67f50c718 | add svgmin | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
re... | JavaScript | 0.000001 | @@ -3048,26 +3048,26 @@
%7D,%0A
-pn
+sv
g: %7B%0A
@@ -3095,18 +3095,18 @@
mages/*.
-pn
+sv
g',%0A
@@ -3118,21 +3118,19 @@
asks: %5B'
-image
+svg
min'%5D%0A
@@ -3611,24 +3611,38 @@
'clean',%0A
+ 'svgmin',%0A
'concat'
|
30123d1199386de3be9269a585424b416d106609 | Load plugins via 'jit-grunt' | Gruntfile.js | Gruntfile.js | /*
* Rules to build the application.
*
* (c) 2016 Sanjeev Premi (spremi@ymail.com)
*
* SPDX-License-Identifier: BSD-3-Clause
* (http://spdx.org/licenses/BSD-3-Clause.html)
*
*/
'use strict';
module.exports = function (grunt) {
//
// Read project configuration
//
var pkgInfo... | JavaScript | 0 | @@ -416,24 +416,98 @@
')(grunt);%0A%0A
+ //%0A // Load plugins automatically%0A //%0A require('jit-grunt')(grunt);%0A%0A
//%0A // Co
|
8dcdcb904361074ffb9fcf9cd03ba60881a1dfb7 | Add $ grunt all task | Gruntfile.js | Gruntfile.js | var util = require("util");
var os = require("os");
var now = new Date().toISOString();
function shallowCopy(obj) {
var result = {};
Object.keys(obj).forEach(function(key) {
result[key] = obj[key];
});
return result;
}
function getBuildVersion(version) {
var buildVersion = version !== undefined ? version : pr... | JavaScript | 0 | @@ -427,17 +427,16 @@
ion;%0A%09%7D%0A
-%09
%0A%09return
@@ -3457,17 +3457,16 @@
);%0A%09%7D);%0A
-%09
%0A%09grunt.
@@ -4676,11 +4676,66 @@
vlib%22);%0A
+%09grunt.registerTask(%22all%22, %5B%22clean%22, %22test%22, %22lint%22%5D);%0A
%7D;%0A
|
a63e242d2e546ae29bee5e5e9eb9883be09399ac | Use 'spec' reporter for Mocha tests results | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-coffeelint');
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.initConfig({
coffee: {
test: {
expand: true,
cwd: 'te... | JavaScript | 0.000001 | @@ -816,11 +816,12 @@
r: '
-dot
+spec
'%0A
|
49faf37cf41d4c06818a905d320b1b5f6a34dbba | Use kdb instead of code for the key bindings docs | scripts/keybindings.js | scripts/keybindings.js | const table = require('markdown-table');
const fs = require('fs');
function replaceChar(s) {
return s.replace(/ /g, '␣').replace(/\t/g, '↹');
}
function createHeading(name) {
return `# ${name}`;
}
function createHeadingLink(text, name) {
const link = `${name}`
.replace(/^#+/, '')
.replace... | JavaScript | 0 | @@ -692,24 +692,23 @@
unction
-wrapCode
+kbdWrap
(text) %7B
@@ -764,49 +764,24 @@
n %60%3C
-code
+kbd
%3E$%7Btext
-.replace(/%5C%60/g, '%5C%5C%5C%60')%7D%3C/code
+%7D%3C/kbd
%3E%60;%0A
@@ -1372,33 +1372,24 @@
Binding: $%7B
-wrapCode(
node.keys.jo
@@ -1382,24 +1382,37 @@
$%7Bnode.keys.
+map(kbdWrap).
join(%22... |
01c0475772c5aeee1e582b3c4ba480cc45987dfc | change to .ready | js/main.js | js/main.js | $(window).load(function() {
$(".hello").addClass("visible animated fadeInDown");
$(".subtitle").addClass("visible animated fadeInDown");
$(".tiny").addClass("visible animated fadeInDown");
particlesJS.load('particles-js', 'js/particles.json', function() {
console.log('callback - particles.js config loaded')... | JavaScript | 0.000053 | @@ -1,18 +1,21 @@
$(
-window).lo
+document).re
ad
+y
(fun
|
ce91248929bf36098d60f5d2e616ffb1e2f7cd75 | update spec [WIP] | tests/specs/typeOf.spec.js | tests/specs/typeOf.spec.js | 'use strict';
define(
[
'mout-lang-type/lang/typeOf'
],
function ( typeOf ) {
describe(
'mout-lang-type/lang/typeOf',
function () {
it(
'is a function',
function () {
expect( typeof typeOf ).toBe('function');
}
),
it(
... | JavaScript | 0 | @@ -587,17 +587,16 @@
boolean
-s
',%0A
@@ -1588,16 +1588,39 @@
nction%0A%0A
+ // TODO: null%0A%0A
|
79bfc22a8dede6b7d138f48001ce1c293262ec80 | Use port 9000 for webserver | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function (grunt) {
// load all grunt tasks automatically
require('load-grunt-tasks')(grunt);
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
var cfg = {
srcDir: 'source',
buildDir: 'dist',
... | JavaScript | 0.000001 | @@ -3130,11 +3130,11 @@
rt:
-808
+900
0,%0A
|
063622e00a4452ff0a019784cd16dcc9c75c012d | Exclude Node Modules | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// load all grunt tasks matching the `grunt-*` pattern
require('load-grunt-tasks')(grunt);
var files = ['Gruntfile.js'];
grunt.initConfig({
jshint: {
files: files,
options: {
jshintrc: './.jshintrc'
}
... | JavaScript | 0.000021 | @@ -160,16 +160,48 @@
file.js'
+, '**/*.js', '!./node_modules/**
%5D;%0A%0A
|
114cc137338bea7d3da9ac523decfb9c5e35d524 | exclude non-font files | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
var pkg, version, verParts;
pkg = grunt.file.readJSON('package.json');
verParts = pkg.version.split('.');
version = {
full: pkg.version,
major: verParts[0],
minor: verParts[1],
patch: verParts[2]
};
version.majorMinor = version.major + '.' + v... | JavaScript | 0.000016 | @@ -2809,49 +2809,43 @@
//
-Block .DS_Store files%0A if ('
+only fonts%0A var ext =
filename
'.su
@@ -2840,17 +2840,16 @@
filename
-'
.substri
@@ -2855,20 +2855,114 @@
ing(
-0,1) !== '.'
+filename.lastIndexOf('.') + 1, filename.length);%0A if (%5B%22ttf%22, %22svg%22, %22eot%22, %22woff%22%5D.in... |
38179fc08d07cab70a744bf9e7581d1b3d430cb1 | Add watch task for e2e tests | Gruntfile.js | Gruntfile.js | "use strict";
var srcFiles = 'app/**/*.js';
var htmlFiles = 'app/**/*.html';
var specFiles = 'spec/**/*.js';
var specE2eFiles = 'spec-e2e/**/*.js';
var devServerPort = 8084;
var mountFolder = function(connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function(grunt) {
grunt.... | JavaScript | 0.0026 | @@ -1193,32 +1193,127 @@
true%0A %7D%0A
+ %7D,%0A e2e: %7B%0A files: %5BsrcFiles, specE2eFiles%5D,%0A tasks: 'protractor:all'%0A
%7D%0A %7D,%0A
|
92a61b154259aff19c84a304f46048a39e938f48 | Add release task | app/templates/_Gruntfile.js | app/templates/_Gruntfile.js | module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
'*.js', '*.json'
],
options: {
jshintrc: '.jshintrc'
}
},
mochaTest: {
test: {
options: {
reporter: 'spec'
... | JavaScript | 0.000091 | @@ -357,24 +357,116 @@
s'%5D%0A %7D%0A
+ %7D,%0A release: %7B%0A options: %7B%0A file: %5B'package.json', 'bower.json'%5D%0A %7D%0A
%7D%0A %7D);%0A
@@ -553,16 +553,55 @@
-test');
+%0A grunt.loadNpmTasks('grunt-release');
%0A%0A // B
|
763c9ddd05f49d81e73a8282013d830d7cae58e3 | Update main.js | js/main.js | js/main.js |
(function ($) {
"use strict";
$(document).ready(function() {
$(window).scroll(function() {
var b = $("body"), t = b.scrollTop(), h = $("header#site-header");
(t > 0) ? h.addClass("is-sticky") : h.removeClass("is-sticky");
});
});
hljs.configure({
languages: ['cs']
});
hljs.initHighlightin... | JavaScript | 0.000001 | @@ -1,9 +1,8 @@
-%0A
(functio
@@ -248,87 +248,8 @@
%7D);%0A
-%09%0A%09hljs.configure(%7B%0A%09%09languages: %5B'cs'%5D%0A%09%7D);%0A%09%0A%09hljs.initHighlightingOnLoad();%0A
%7D(jQ
|
7d8b01b97d7837d298c4a5ced75dde7b08c37fa6 | Update thumbnail permissions | scripts/permissions.js | scripts/permissions.js | // TODO make user specific
var OSF = 'user-osf-*';
var PARTICIPANT = 'jam-experimenter:accounts-*';
var GLOBAL = '*';
var config = [
[OSF, 'CRUD']
];
var admin = [
[OSF, 'READ'],
[OSF, 'CREATE']
];
var experiment = [
[GLOBAL, 'READ'],
[OSF, 'CREATE']
];
var session = [
[PARTICIPANT, 'CREATE'... | JavaScript | 0 | @@ -467,16 +467,85 @@
D'%5D%0A%5D;%0A%0A
+var thumbnail = %5B%0A %5BPARTICIPANT, 'READ'%5D,%0A %5BOSF, 'CREATE'%5D%0A%5D;%0A%0A
module.e
@@ -663,16 +663,42 @@
profile
+,%0A thumbnail: thumbnail
%0A //
|
4f94ce610e51224075be9a712eb6f4d80d33fa94 | put back site subpath in docs server | Gruntfile.js | Gruntfile.js | "use strict";
var respokeStyle = require('respoke-style');
module.exports = function (grunt) {
var jsHintFiles = ['**/*.js'];
if (grunt.option('file')) {
jsHintFiles = [grunt.option('file').split(' ')];
}
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
... | JavaScript | 0 | @@ -3790,34 +3790,39 @@
dest: '.docs/
+site/
'%0A
-
%7D%0A
@@ -4018,16 +4018,21 @@
'.docs/
+site/
'%0A
@@ -4398,16 +4398,21 @@
'.docs/
+site/
css/docs
@@ -4563,16 +4563,16 @@
rectory%0A
-
@@ -4592,16 +4592,21 @@
'.docs/
+site/
',%0A
|
8868d7525d7a0c6dd73ed1e6e55f6c95a5fdc756 | Rename color temperature properties to match Yeelight | lib/devices/philips-light-bulb.js | lib/devices/philips-light-bulb.js | 'use strict';
const Device = require('../device');
const Power = require('./capabilities/power');
class BallLamp extends Device {
static get TYPE() {
return 'light'
}
constructor(options) {
super(options);
this.type = BallLamp.TYPE;
this.defineProperty('power', {
name: 'power',
mapper: v => v ===... | JavaScript | 0.000043 | @@ -616,20 +616,27 @@
: 'color
-t
+T
emp
+erature
',%0A%09%09%09ma
@@ -683,28 +683,36 @@
.push('color
+:
temp
+erature
');%0A%09%7D%0A%0A%09//
@@ -862,20 +862,27 @@
et color
-t
+T
emp
+erature
() %7B%0A%09%09r
@@ -907,20 +907,27 @@
y('color
-t
+T
emp
+erature
');%0A%09%7D%0A%0A
@@ -1122,20 +1122,27 @@
set... |
e104a75021dfa5a08153bfaaec36c723f122e172 | Fix notify in non-production Grunt configs. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
notify: {
watch: {
options: {
title: 'E.B.U.R.P.',
message: 'Game build complete.'
}
}
},
/**
* Concatenate data fil... | JavaScript | 0 | @@ -4889,14 +4889,8 @@
tify
-:watch
'%5D);
@@ -4895,16 +4895,29 @@
);%0A %7D%0A
+ else %7B%0A
grunt
@@ -4974,24 +4974,27 @@
ffee'%5D);%0A
+
+
grunt.regist
@@ -5053,10 +5053,15 @@
fee'%5D);%0A
+ %7D%0A
%7D;
|
333a0766b3e0cc55f57cdf25bd75a968f778f69a | Allow passing of a hostname for the docs server. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-traceur');
grunt.initConfig({
connect: {
docs: {
options: {
keepalive: true,
open: 'http://localhost:8000/docs'
}
... | JavaScript | 0 | @@ -46,16 +46,67 @@
rict';%0A%0A
+ var host = grunt.option('host') %7C%7C 'localhost';%0A%0A
grunt.
@@ -309,16 +309,42 @@
: true,%0A
+ hostname: host,%0A
@@ -359,25 +359,28 @@
'http://
-localhost
+' + host + '
:8000/do
|
689e113ed4b4459821dc220105ae32412556ed38 | add mochaTest task to watch gruntfile block | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
mochaTest: {
all: {
options: {
reporter: 'spec',
require: 'should',
growl: true
},
src: ['test/**/*_test.js']
}
},
jshint: {
options: {
... | JavaScript | 0 | @@ -631,16 +631,29 @@
untfile'
+, 'mochaTest'
%5D%0A
|
1870e126e89add99148529e244e6749fa9caada9 | make mocha only test index.html | Gruntfile.js | Gruntfile.js | /*global module:true */
module.exports = function( grunt ) {
'use strict';
//
// Grunt configuration:
//
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
//
grunt.initConfig({
// Project configuration
// ---------------------
// specify an alternate install location fo... | JavaScript | 0.000001 | @@ -1149,20 +1149,21 @@
%5B'test/
-**/*
+index
.html'%5D%0A
@@ -4930,11 +4930,68 @@
est');%0A%0A
+ //grunt.registerTask('test', 'server:phantom mocha');%0A%0A
%7D;%0A
|
36f6e1a98d45a87b20bdbb3fac52317d1a61295b | Fix author name | Gruntfile.js | Gruntfile.js | const packageJSON = require('./package.json');
module.exports = (grunt) => {
grunt.initConfig({
'create-windows-installer': {
// Currently only an ia32 (x86) build is offered.
// This is what Github does with atom so it kinda makes sense :)
ia32: {
appDirectory: `dist/${packageJSON.prod... | JavaScript | 0.002071 | @@ -420,16 +420,21 @@
N.author
+.name
,%0A
@@ -552,32 +552,73 @@
ON.productName,%0A
+ owners: packageJSON.author.name,%0A
name: 'G
|
65307cfabd28e72bebcdad391d47c3ca8c21811e | update password pattern | src/app/services/utils.js | src/app/services/utils.js | 'use strict';
angular.module('csyywx')
.factory('utils', function($ionicHistory, $state, $timeout, $ionicPopup) {
return {
passwordPattern: /^(?!\d+$|[a-zA-Z]+$|\W_+$)[\s\S]{6,16}$/,
param: function(obj) {
var str = [];
for(var p in obj) {
str.push(encodeURIComponent(p) + '=' + encodeURIC... | JavaScript | 0.000001 | @@ -165,11 +165,14 @@
%5D+$%7C
+%5B
%5CW
-_
+-_%5D
+$)%5B
|
4abe731975a45332bc6fc10ee5aeb6194a84adb5 | Update file lookup | Gruntfile.js | Gruntfile.js | var
FILES_TO_VALIDATE = [
'lib/**/*.js',
'tests/**/*.js',
'example/**/*.js',
'Gruntfile.js',
// Exclude:
'!**/node_modules/**',
'!**/jspm_packages/**',
'!**/build/**',
'!**/config.js'
],
FILES_TO_TEST = [
'tests/tests*.js'
]
;
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-con... | JavaScript | 0.000001 | @@ -67,18 +67,40 @@
example/
-**
+src/**/*.js',%0A%09%09'example
/*.js',%0A
@@ -136,77 +136,8 @@
de:%0A
-%09%09'!**/node_modules/**',%0A%09%09'!**/jspm_packages/**',%0A%09%09'!**/build/**',%0A
%09%09'!
|
032a4ae51d5476b4690232dcc891b6b5fd999fb3 | Fix build wrong alias | Gruntfile.js | Gruntfile.js | var grunt = require('grunt');
require('load-grunt-tasks')(grunt);
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.initConfig({
'6to5': {
options: {
sourceMap: true,
modules: 'ignore'
},
dist: {
files: [{
expand: true,
cwd: 'src',
src: ['**/*.js', '!intro.js', ... | JavaScript | 0.000001 | @@ -641,120 +641,8 @@
s',%0A
- 'node_modules/gl-matrix/src/gl-matrix/mat4.js',%0A 'node_modules/gl-matrix/src/gl-matrix/vec4.js',%0A
@@ -1064,16 +1064,14 @@
', '
-compress
+uglify
'%5D);
|
24fa641039576868d0d510a38b2c92c5ae19d5c0 | move proxies setting out of individual karma settings files and into Gruntfile, move deciding port for streamingsource into Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// TODO: move files list to own file
var TEST_LIBS = [
'node_modules/karma-jstd-adapter/jstd-adapter.js'
, 'test/libs/sinon.js'
, 'test/libs/sinon-ie.js'
, 'test/libs/*.js'
];
// NB: source files are order sensitive
var OBOE_SOURCE_FILES = [
... | JavaScript | 0 | @@ -30,16 +30,51 @@
unt) %7B%0A%0A
+ var STREAM_SOURCE_PORT = 4567;%0A%0A
// TO
@@ -2147,32 +2147,205 @@
ingleRun: 'true'
+,%0A proxies: %7B%0A '/stream' : 'http://localhost:4567/stream',%0A '/static/json' : 'http://localhost:4567/static/json' %0A %7D
... |
d661db63f3381f9ae069f054ca1d180c870cb7fb | Remove grunt tasks handled by jam. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
clean: {
build: [
"bundles/patterns*.js",
"bundles/patterns*.map"
],
test: [
"_SpecRunner.html"
]
},
requirejs: {
options: {
... | JavaScript | 0 | @@ -63,1943 +63,273 @@
-clean: %7B%0A build: %5B%0A %22bundles/patterns*.js%22,%0A %22bundles/patterns*.map%22%0A %5D,%0A test: %5B%0A %22_SpecRunner.html%22%0A %5D%0A %7D,%0A%0A requirejs: %7B%0A opt... |
9a6c1228f369b07e97232362419d3b059d82422b | Fix spacing | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['javascripts/site.js']
},
concat: {
options: {
banner: '/*\n' +
' Theme Name: Ally\n' +
' Theme URI: http://www.axisphilly.com\n' +
' Descr... | JavaScript | 0.000415 | @@ -2921,17 +2921,16 @@
shint');
-
%0A grunt
|
d2bce9b725770714a899ecdfcb1512bdd64b93dc | firefox is lame | js/main.js | js/main.js | // Add CSS class about JS capability
document.querySelector('body').className += ' has-js ';
// ShowFeatures list button
document.querySelector('#show-features-button')
.addEventListener('click', function(event) {
// Prevent scrolling
event.preventDefault();
// Toggle features
var f... | JavaScript | 0.998816 | @@ -459,8 +459,98 @@
alse);%0A%0A
+// firefox doesn't display subtitles by default%0A$(%22video%22).textTracks%5B0%5D.mode = %22showing%22%0A
|
cba94aa885db0035f8006d23f2195d3ec72e1106 | fix error in grunt-bump config | Gruntfile.js | Gruntfile.js | 'use strict';
var fs = require('fs');
module.exports = function (grunt) {
// load npm tasks
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
jshintFiles: ['Gruntfile.js', 'app/**/*.js', '!app/**/_*.js', 'toplevel/**/*.js', '!toplevel/**/_*.js'],
pkg: gr... | JavaScript | 0.000006 | @@ -1551,22 +1551,8 @@
son'
-, 'bower.json'
%5D,%0A
@@ -1625,10 +1625,9 @@
: %5B'
--a
+.
'%5D,%0A
|
61bafb7fed36a2df2fcf56aba1a6e6de24ba6352 | Include Gruntfile.js | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
require('shelljs/global');
var config = {
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n',
sourceMap: true
},
dist: {
sr... | JavaScript | 0.000001 | @@ -258,33 +258,8 @@
/%5Cn'
-,%0A sourceMap: true
%0A
|
fec7c80f57b407d78dec338379bf2f5a48b39630 | Add some more commands | js/main.js | js/main.js | jQuery(document).ready(function($) {
var e = "tui@huy.im";
$('body').terminal({
echo: function(arg1) {
this.echo(arg1);
},
help: function() {
this.echo("Available commands:");
this.echo("\twhoami display my short brief"... | JavaScript | 0.000015 | @@ -282,42 +282,47 @@
(%22%5Ct
-whoami display my short brief
+about information about this page
%22);%0A
@@ -417,14 +417,14 @@
(%22%5Ct
-help
+whoami
@@ -433,16 +433,71 @@
display
+my short brief%22);%0A this.echo(%22%5Cthelp
this hel
@@ -520,25 +520,28 @@
-%0A
+ ... |
f6fe7fd2e3f302971b7f4da8b5288a7eb635c536 | update Grunt file for different mocha interface | Gruntfile.js | Gruntfile.js | /*global module:false*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['grunt.js', '*.js', 'test/test-backbone-nestify.js'],
options: {
curly: false,
eqeqeq: true,
... | JavaScript | 0 | @@ -532,16 +532,44 @@
l: true,
+%0A expr: true,
%0A%0A
@@ -731,41 +731,8 @@
ue,%0A
- suite: true,%0A
@@ -790,16 +790,82 @@
test:
+ true,%0A describe: true,%0A it:
true%0A
@@ -1002,13 +1002,11 @@
i: '
-qunit
+bdd
'%0A
|
d3f5055774271ff6432082f43d6a5f93bed887d6 | add deploy script | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
"babel": {
options: {
sourceMap: true
},
dist: {
files: [
{
"expand": true,
"cwd": "modules/",
"src": ["**/*.js"],
"dest": "dist",
"ext": ".js"
}]
}
}... | JavaScript | 0.000001 | @@ -649,16 +649,18 @@
lint');%0A
+
%0A grunt
@@ -745,10 +745,51 @@
lint%22);%0A
+ grunt.registerTask(%22deploy%22, %22babel%22);%0A
%7D;
|
c28d561081f49dc852e655a6fa01a88d0d72f256 | Fix typo in Gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
build: {
src: 'aodbe-creative-ng.js',
dest: 'aodbe-creative-ng.min.js'
}
},
jshint: {
src: ['aodbe-creative-ng.js']
}
});
grunt.loadNpmTasks('grunt-cont... | JavaScript | 0.000442 | @@ -136,26 +136,26 @@
src: 'a
-o
d
+o
be-creative-
@@ -178,18 +178,18 @@
dest: 'a
-o
d
+o
be-creat
@@ -246,18 +246,18 @@
src: %5B'a
-o
d
+o
be-creat
|
d4da0e5e6de6e615681b2dbada8cee4206f463db | Add allowSelect as part of the options passed to the tree | src/tree.directive.js | src/tree.directive.js | (function() {
'use strict';
function sequoiaTreeDirective(Tree, BUTTONS){
return {
restrict: 'AE',
replace: true,
templateUrl: 'angular-sequoia.html',
scope: {
'treeNodes': '=sequoiaTree',
'model': '=ngModel',
'template': '=nodeTemplate',
'options': '='
... | JavaScript | 0 | @@ -476,16 +476,35 @@
%7C%7C %7B%7D, %7B
+allowSelect: true,
canEdit:
@@ -693,28 +693,27 @@
ope.
-model ? true : false
+options.allowSelect
;%0A
@@ -2593,50 +2593,8 @@
) %7B%0A
- console.log(scope.allowSelect);%0A
|
14520e8abd809ec52e811422f8bcb0a2e92a5ec6 | add task grunt-contrib-imagemin | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
copy: {
files: {
expand: true,
cwd: 'src/',
src: ['**/*', '!styles/*.less', '!*.less', '!*.html'],
dest: 'build/'
}
},
watch: {
files: ['src/**/*'],
tasks: ['newer:copy', 'newer:less']
},
... | JavaScript | 0.999541 | @@ -1331,16 +1331,263 @@
%7D%0A %7D
+,%0A%0A imagemin: %7B%0A options: %7B%0A cache: false%0A %7D,%0A dist: %7B%0A files: %5B%7B%0A expand: true,%0A cwd: 'src/images',%0A src: '%7B,*/%7D*.%7Bpng,jpg,jpeg%7D',%0A dest: 'build/images'%0A %7D%... |
aeffbf2d7d228fb464640068d1b4136ded25b6ef | update build and update header | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
browser: {
options:{
banner:'/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %>*/\n/*!©2013 Calvin Metcalf @license MIT https://gith... | JavaScript | 0 | @@ -259,33 +259,35 @@
m-dd%22) %25%3E*/%5Cn/*!
-%C2%A9
+(c)
2013 Calvin Metc
@@ -374,17 +374,19 @@
iscuous
-%C2%A9
+(c)
2013 Rub
@@ -454,16 +454,191 @@
miscuous
+*/%5Cn/*!Includes Material from setImmediate Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola @license MIT https://github.... |
c106d1d451f46e99915b004d62f7eabdd61a249a | Add proxy for httParrot in Gruntfile to make it unnecessary to adjust backend uri in app.js for e2e testing. | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
watch: {
livereload: {
options: {
livereload: '<%= connect.server.options.livereload %>'
},
files: [
'**/*.html',
'css/**/*.css',
'img/{,*/}*',
... | JavaScript | 0 | @@ -1022,21 +1022,621 @@
%0A%09%09%09%09%7D%5D%0A
+%09%09%09%7D,%0A%09%09%09testserver: %7B%0A%09%09%09%09options: %7B%0A%09%09%09%09%09port: 1234,%0A%09%09%09%09%09livereload: 35729,%0A%09%09%09%09%09middleware: function (connect, options) %7B%0A%09%09%09%09%09%09var proxy = require('grunt-connect-proxy/lib/utils').p... |
4979e6d212295ddf2260b0784ac4409810b07458 | remove excess slash | Gruntfile.js | Gruntfile.js | "use strict";
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
config: {
outputDir: "dist/",
applicationFiles: grunt.file.readJSON("scripts.json").application,
vendorFiles: grunt.file.readJSON("scripts.json").ven... | JavaScript | 0.000012 | @@ -5940,17 +5940,16 @@
utDir %25%3E
-/
js/app.m
|
8d259e90dc6a43ede89c14780cbc33f18f83f2c1 | fix require paths in gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
'use strict';
if (grunt.option('help')) {
// Load all tasks so they can be viewed in the help: grunt -h or --help.
require('load-grunt-tasks')(grunt);
} else {
// Use jit-grunt to only load necessary tasks for each invocation of grunt.
re... | JavaScript | 0.000001 | @@ -1054,38 +1054,43 @@
-'bower_components/incuna-sass'
+require('incuna-sass').includePaths
,%0A
@@ -1111,26 +1111,17 @@
-'bower_components/
+require('
incu
@@ -1135,16 +1135,30 @@
sitions'
+).includePaths
,%0A
|
aaeb78f398c640dcd24cdcd9eb9b27ea69cfbaad | Enable grunt-watch with mochaTest | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-release');
grunt.initConfig({
mochaTest: {
test: {
options: {
reporter: 'spec',
require: 'coffee-script'
},
src: ['test/**/*.coffee']
}
},
release: {
options: {
... | JavaScript | 0 | @@ -483,16 +483,31 @@
.coffee'
+,'test/**/*.js'
%5D,%0A
@@ -516,17 +516,22 @@
asks: %5B'
-t
+mochaT
est'%5D%0A
|
d185c97146858417345a015fcfbb83e73b365d3f | Update Gruntfile.js watch settings for SASS compilation | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'expanded'
},
files: {
'./public/css/styles.css': './src/assets/sass/styles.scss'
}
},
},
handlebars: {
options: {
namespace: 'JST... | JavaScript | 0 | @@ -1004,16 +1004,10 @@
%0A%09%09%0A
-
+%09%09
ugli
@@ -1543,16 +1543,96 @@
watch: %7B
+%0A%09%09%09sass: %7B%0A%09%09%09%09files: %5B'./src/assets/sass/*.scss'%5D,%0A%09%09%09%09tasks: %5B'sass'%5D%0A%09%09%09%7D,%09%0A
%09%09%09%0A%09%09%09j
|
d93bb83944a93a68741278774dd79ba247621e0e | fix hover titles browser compatibility | js/main.js | js/main.js | /* jshint browser: true, devel: true, indent: 2, curly: true, eqeqeq: true, futurehostile: true, latedef: true, undef: true, unused: true */
/* global $, jQuery, document, Modernizr, Site, Swiper, animationSpeed */
const animationSpeed = 300;
Site = {
mobileThreshold: 1008,
init: function() {
var _this = this;... | JavaScript | 0.000001 | @@ -5844,20 +5844,20 @@
: e.
-scre
+cli
en
+t
Y
-- 70
++ 15
,%0A
@@ -5876,15 +5876,20 @@
: e.
-screenX
+clientX + 15
,%0A
|
0bc9524b1529ebfecbbb7d4f957ce76b2286c389 | update copy-code script | assets/scripts/code-copy.js | assets/scripts/code-copy.js | var codeBlocks = document.querySelectorAll('.code-copy-header + .highlighter-rouge');
var copyCodeButtons = document.querySelectorAll('.copy-code-button');
// return a promise
function copyToClipboard(textToCopy) {
// navigator clipboard api needs a secure context (https)
if (navigator.clipboard && window.isSecure... | JavaScript | 0.000001 | @@ -1,12 +1,73 @@
+document.addEventListener(%22DOMContentLoaded%22, function() %7B%0A
var codeBloc
@@ -140,16 +140,18 @@
ouge');%0A
+
var copy
@@ -213,16 +213,18 @@
ton');%0A%0A
+
// retur
@@ -235,16 +235,18 @@
promise%0A
+
function
@@ -278,16 +278,18 @@
py) %7B%0A
+
+
// navig
@@ -338,16 +338,18 ... |
3e82d934e20c630b0cbc3d66ad3bd1d217962592 | Set grunt-bower-task install option to false. | Gruntfile.js | Gruntfile.js | /*
* Generated on 2014-10-11
* generator-assemble v0.4.11
* https://github.com/assemble/generator-assemble
*
* Copyright (c) 2014 Hariadi Hinta
* Licensed under the MIT license.
*/
"use strict";
// # Globbing
// for performance reasons we're only matching one level down:
// "<%= config.src %>/templates/pages/{... | JavaScript | 0 | @@ -711,19 +711,20 @@
nstall:
-tru
+fals
e,%0A
|
ca34bf3c0ad05f126398dff3493c96756eb997f4 | Add task 'node-inspector' | Gruntfile.js | Gruntfile.js | /*
* Rules to build the application.
*
* (c) 2016 Sanjeev Premi (spremi@ymail.com)
*
* SPDX-License-Identifier: BSD-3-Clause
* (http://spdx.org/licenses/BSD-3-Clause.html)
*
*/
'use strict';
module.exports = function (grunt) {
//
// Read project configuration
//
var pkgInfo... | JavaScript | 0.000028 | @@ -4969,24 +4969,447 @@
%7D%0A %7D%0A
+ %7D,%0A%0A //%0A // Debugging interface to Node.JS applications%0A //%0A 'node-inspector': %7B%0A custom: %7B%0A options: %7B%0A 'web-host': '%3C%25= projCfg.ip %25%3E',%0A 'web-port': '%3C%25= projCfg.port %25%3E',%0A ... |
71235b704d7da106107f572bb09db5720ffb5429 | Update main.js | js/main.js | js/main.js | Parse.initialize("7YyZO6oZNVongKR6pluyULEkMEmvLVRtVZvd6OXn", "JTOrsTnWqTBhxqxFMEvPdOUzDd9Ro01JqpiAF003");
window.fbAsyncInit = function() {
Parse.FacebookUtils.init({ // this line replaces FB.init({
appId : '971388552927772', // Facebook App ID
status : true, // check Faceboo... | JavaScript | 0.000001 | @@ -1940,24 +1940,26 @@
s%22);%0D%0A
+//
Parse.User.l
@@ -1973,18 +1973,16 @@
;%0D%0A
-//
FB.logo
|
236da35ab6ec6ab38e4f0c8526ac236b0d7f3ffe | fix gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt, {
pattern: ['grunt-*']
});
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
config: {
'cssSrcDir': 'src/sass',
'cssTargetDir': 'css',
'jsSrcDir': '... | JavaScript | 0.000005 | @@ -1797,21 +1797,118 @@
-'
dev
-'
+: %7B%0A src: 'assets/%3C%25= config.cssTargetDir %25%3E/*.css'%0A %7D,%0A dist
: %7B%0A
@@ -2316,18 +2316,32 @@
opy:dev'
+,'postcss:dev'
%5D%0A
-
@@ -2436,16 +2436,21 @@
'postcss
+:dist
',%0A
@@ -2518,24 +2518,... |
27f0e1675c9536bcb54cb41d7540b6570d2f1352 | ADD day7 part2 | 2021/day7/day7.js | 2021/day7/day7.js | import { readFileSync } from 'fs';
const input = readFileSync('day7.txt', 'utf8')
const lines = input.split(/\r?\n/)
const numbers = lines[0].split(',').map(Number);
let min = Math.min(...numbers);
let max = Math.max(...numbers);
console.log('min: ' + min + ' max: ' + max);
let array = [...Array(max - min + 1).keys()... | JavaScript | 0.000012 | @@ -159,19 +159,20 @@
umber);%0A
-%0Ale
+cons
t min =
@@ -191,21 +191,17 @@
numbers)
-;%0Alet
+,
max = M
@@ -266,19 +266,20 @@
+ max);%0A
-%0Ale
+cons
t array
@@ -332,16 +332,40 @@
+ min);%0A
+%0Afunction part1() %7B%0A
let sums
@@ -371,16 +371,20 @@
s = %5B%5D;%0A
+
array.fo
@@ -397,24 +397,28 @@
... |
d9a091f674eb892c4c2b4112e275524e49a1ee8a | allow snowflakes to be generated dynamically | src/util/Snowflake.js | src/util/Snowflake.js | const Long = require('long');
// Discord epoch (2015-01-01T00:00:00.000Z)
const EPOCH = 1420070400000;
let INCREMENT = 0;
/**
* A container for useful snowflake-related methods.
*/
class SnowflakeUtil {
constructor() {
throw new Error(`The ${this.constructor.name} class may not be instantiated.`);
}
/**
... | JavaScript | 0 | @@ -885,79 +885,474 @@
* @
-returns %7BSnowflake%7D The generated snowflake%0A */%0A static generate() %7B
+param %7Bnumber%7CDate%7D %5Btimestamp=Date.now()%5D Timestamp or date of the snowflake to generate%0A * @returns %7BSnowflake%7D The generated snowflake%0A */%0A static generate(timestamp = Date.now())... |
dfab4a62f49ea37446aae1a4905bb490c424b50a | remove watch-digs-dev task | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function gruntfile(grunt) {
let loadGruntConfig = require('load-grunt-config');
let pkg = grunt.file.readJSON('package.json');
let digsDevPkg;
try {
digsDevPkg = grunt.file.readJSON('node_modules/digs-dev/package.json');
} catch (ignored) {
digsDevPkg = pkg;
}
/**
... | JavaScript | 0.000103 | @@ -1345,82 +1345,8 @@
%7D%0A%0A
- grunt.registerTask('watch-digs-dev', %5B'concurrent:watch-digs-dev'%5D);%0A %0A
lo
|
a220c915b45a93c3ae53c48ec7d2852505881549 | Update gruntfile.js | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n' +
' * <%= pkg.title %> v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
' * Copyright <%= grunt.template.today("yyyy") %> <%= p... | JavaScript | 0.000001 | @@ -436,16 +436,135 @@
nner %25%3E'
+,%0A output: %7B%0A ascii_only: true,%0A comments: false%0A %7D
%0A
@@ -1640,38 +1640,8 @@
%22%5D,%0A
- //dest: 'js',%0A
@@ -1770,43 +1770,8 @@
: %7B%0A
- fast: %22... |
c9e1263a9ad33e1fbd818d76aff95253f349f5a7 | Change copyright header | Gruntfile.js | Gruntfile.js | /*
backgrid
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
Licensed under the MIT license.
*/
// jshint globalstrict:true, node:true
"use strict";
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
clean: {... | JavaScript | 0 | @@ -6,16 +6,28 @@
backgrid
+-moment-cell
%0A http:
@@ -55,16 +55,28 @@
backgrid
+-moment-cell
%0A%0A Copy
|
d75e8fbe6a1e2efc756f096329324c1ae51692fd | Rearrange loading of the node modules | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-expres... | JavaScript | 0.000001 | @@ -28,16 +28,60 @@
runt) %7B%0A
+%09grunt.loadNpmTasks('grunt-contrib-watch');%0A
%09grunt.l
@@ -400,52 +400,8 @@
n');
-%0A%09grunt.loadNpmTasks('grunt-contrib-watch');
%0A%0A%09g
@@ -1701,15 +1701,70 @@
app/
+js/
**/*',%0A
+%09%09%09%09%09'app/index.html',%0A%09%09%09%09%09'app/styles/**/*.scss',%0A
%09%09%09%... |
463597dec12489c7d843569110c754b47b64f135 | Refactor and add event on maximized module | src/util/maximized.js | src/util/maximized.js | (() => {
"use strict";
var store = new WeakMap();
module.exports = win => {
var load = () => {
var data;
if (!store.has(win)) {
data = {
w: 0, h: 0, maximized: false
};
} else {
data = store.get(win);
}
return data;
};
var check = (w,... | JavaScript | 0 | @@ -105,24 +105,8 @@
%3E %7B%0A
- var data;%0A
@@ -138,22 +138,30 @@
-data =
+store.set(win,
%7B%0A
@@ -174,86 +174,286 @@
: 0,
- h: 0, maximized: false%0A %7D;%0A %7D else %7B%0A data = store.get(win
+%0A h: 0,%0A set maximized(v) %7B%0A thi... |
57b115db17198c4e9e08c7fdeba3a77aab83415c | Update left menu from props. | application/layout/index.js | application/layout/index.js | var builder = require('focus').component.builder;
var React = require('react');
var AppHeader = require('./app-header');
var stylableBehaviour = require('../../mixin/stylable');
var contentActionsMixin = {
mixins: [stylableBehaviour],
/** @inheriteddoc */
render: function renderActions() {
return (
<div... | JavaScript | 0 | @@ -230,16 +230,121 @@
viour%5D,%0A
+ getDefaultProps: function getDefaultLayoutProps()%7B%0A return %7B%0A AppHeader: AppHeader%0A %7D;%0A %7D,%0A
/** @i
@@ -358,16 +358,16 @@
ddoc */%0A
-
render
@@ -491,19 +491,96 @@
%3C
-AppHeader /
+this.props.AppHeader /%3E%0A %3Cdiv data-focus='men... |
a957fea69bf74d66265322b2fe8c3008e7a9e948 | fix formula cps | js/main.js | js/main.js |
//déclaration des variables
var compteur = 0;
var coeff_a_click =1;
var coeff_x_click=1;
var degats_click = coeff_a_click*coeff_x_click;
var tab_ids = new Array;
var q = new Array; //structure à remplacer par tablerau à 2 dimensions
//equation math pour cps
var coeff_a_cps = 1;
var coeff_b_cps = 0;
var coeff_x_cps = 0... | JavaScript | 0.0006 | @@ -48,93 +48,24 @@
var
-coeff_a_click =1;%0Avar coeff_x_click=1;%0Avar degats_click = coeff_a_click*coeff_x_click
+degats_click = 1
;%0Ava
@@ -192,109 +192,13 @@
ar c
-oeff_a_cps = 1;%0Avar coeff_b_cps = 0;%0Avar coeff_x_cps = 0;%0Avar cps=coeff_a_cps*coeff_x_cps+coeff_b_cps
+ps=0;
%0Aset
@@ -335,251 +335,8 @@
*... |
2cd9acff83e1f45ed52666d446a9c74bb60f0e27 | Update Gruntfile.js to compile jQuery + sheeper for docs/ | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Je préfère définir mes imports tout en haut
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-jekyll');
var jsSrc = [
... | JavaScript | 0 | @@ -312,16 +312,62 @@
Src = %5B%0A
+ 'bower_components/jquery/dist/jquery.js',%0A
'jqu
@@ -408,16 +408,26 @@
= 'd
-ist/main
+ocs/assets/js/demo
.js'
@@ -985,163 +985,8 @@
%7D,%0A
- copy: %7B%0A docs: %7B%0A expand: true,%0A cwd: 'dist/',%0A src: %5B%0A '**/*'%0A ... |
8aebdecf1d1348e30d1ef2a587c2d0206a7b4272 | Change build directory and add junit report | Gruntfile.js | Gruntfile.js | /*!
* Copyright 2014-2015 CoNWeT Lab., Universidad Politecnica de Madrid
*
* 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/LICENSE-2.0
*
... | JavaScript | 0 | @@ -2814,20 +2814,21 @@
chive: '
-dist
+build
/%3C%25= pkg
@@ -5583,16 +5583,119 @@
nbul'),%0A
+ junit: %7B%0A path: 'build/test-reports'%0A %7D,%0A
|
fd1654b28c3ebcac1c7cfe1cde3a5d26fd896da4 | Add timestamp to packaged zip file | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// time
require('time-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Compress and zip only the files required for deployment to the server. Exclude all dev dependencies.
compress: {
main: {
options: {
a... | JavaScript | 0.000001 | @@ -372,17 +372,17 @@
.today('
--
+_
yyyy-mm-
@@ -383,16 +383,22 @@
yy-mm-dd
+_HH-MM
') + '.z
|
6d822ea5bb9810cb4391dd79700f76bccc342e92 | create link on create torrent page | js/main.js | js/main.js | var createTorrent = require('create-torrent')
var dragDrop = require('drag-drop')
dragDrop('body', newTorrent)
function newTorrent (files) {
window.files = files
createTorrent(files, function (err, torrent) {
if (err) console.error(err.stack || err.message || err)
window.torrent = torrent
var url = U... | JavaScript | 0 | @@ -416,12 +416,14 @@
d =
-true
+'file'
%0A
@@ -446,14 +446,73 @@
a.
-click(
+textContent = 'download .torrent'%0A document.body.appendChild(a
)%0A
|
ae93e755e3442b22bba429f9f5568d8e603b32ea | add json files in local/ | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
var projectFiles = ['*.js', 'bin/**/*.js', 'local/**/*.js', 'local/**/*.json', 'spec/**/*.js'];
// Project configuration.
grunt.initConfig({
"jsbeautifier": {
src: projectFiles,
options: {
js: {
indentSize: 2
}
},
},
wat... | JavaScript | 0 | @@ -109,16 +109,31 @@
*.json',
+ 'local/*.js*',
'spec/*
|
91c7d7f5acc82d76cf2937d9b7c56a30e6dda758 | Update Gruntfile.js | Gruntfile.js | Gruntfile.js | /**
* Grunt tasks:
* - grunt : The default task. Alias for `grunt serve` task below
* - grunt serve : watch files and run a static server
* - grunt watcher : watch files without static server
* - grunt compile : compile scss, js & compress images
* - grunt compile... | JavaScript | 0 | @@ -586,34 +586,8 @@
*/%0A%0A
-var opn = require('opn')%0A%0A
modu
@@ -1650,16 +1650,44 @@
ion() %7B%0A
+%09%09var opn = require('opn');%0A
%09%09opn('h
|
9ee19908493cdf48fa87efb11869d4f1bf5aca12 | Revert "Revert "update: compiled the dropdown directive"" | Gruntfile.js | Gruntfile.js | 'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
module.exports = function (grunt) {
// load all grunt tasks
require('load-grunt-tasks')(grunt);
// configurable pat... | JavaScript | 0 | @@ -4109,16 +4109,25 @@
kerUtils
+,dropdown
%7D.js', '
|
73b03e65d9766b7497a23233b1f354d9613437e6 | remove semis | src/utils/make-ids.js | src/utils/make-ids.js | var content = document.querySelector('.js-toc-content')
var headings = content.querySelectorAll('h1, h2, h3, h4, h5, h6, h7')
var headingMap = {}
Array.prototype.forEach.call(headings, function(heading) {
var id = heading.id ? heading.id : heading.textContent.trim().toLowerCase()
.split(' ').join('-').replace(... | JavaScript | 0.005495 | @@ -187,16 +187,17 @@
function
+
(heading
@@ -347,17 +347,16 @@
/ig, '')
-;
%0A headi
@@ -416,9 +416,8 @@
: 0
-;
%0A i
|
e71a9e32f5773ce99fa4de353a21a2049d535fd8 | Reconnect after configured timeout #19 - removing stop-server for travis-ci | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'test/**/*.js'],
options: {
globals: {
jQuery: true
}
}
},
uglify: {
my_target: {
... | JavaScript | 0 | @@ -1901,36 +1901,16 @@
jasmine'
-, 'exec:stop_server'
%5D);%0Agrun
@@ -1966,28 +1966,8 @@
ine'
-, 'exec:stop_server'
%5D);%0A
|
2458646102051833d978f40dbf1c44b895fb48b5 | change command permissione exec | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
bin: ['<%= pkg.project.directories.bin %>'],
build: ['<%= pkg.project.directories.build %>']
},
mkdir: {
all: {
options: {
create: [
... | JavaScript | 0.000007 | @@ -1100,32 +1100,37 @@
command: '
+sudo
make -j8 install
|
dd0a958e9a05cb9721d3f2911fdaf02523645c6e | Update main.js | js/main.js | js/main.js | requirejs.config({
baseUrl: 'js/lib',
paths: {
'pako': 'pako.min',
'jquery':'jquery.min',
'text':'text',
'validate':'validate.min'
}
,
config: {
text: {
useXhr: function (url, protocol, hostname, port){
// allow cross-domain requests
return true;
}
}
}
});
require([
'pako',
'... | JavaScript | 0 | @@ -371,20 +371,17 @@
date) %7B%0A
-
+%09
%22use str
@@ -386,20 +386,17 @@
trict%22;%0A
-
+%09
var comm
@@ -414,16 +414,26 @@
resource
+,is_srcdoc
;%0A%09var u
@@ -590,16 +590,104 @@
urce%22);%0A
+%09is_srcdoc = false;%0A%0A%09if(resource === %22html%22)%7B%0A%09%09resource = getHashPayload(location);%0A... |
11b0263451ffc2b77a44a4fcfde451ea2fed109b | disable cascade | Gruntfile.js | Gruntfile.js | 'use strict';
const path = require('path');
const sass = require('node-sass');
const autoprefixer = require('autoprefixer');
const pkg = require('./package.json');
const banner = `/*!
* Bootswatch v${pkg.version}
* Homepage: ${pkg.homepage}
* Copyright 2012-${new Date().getFullYear()} ${pkg.author}
* Licensed und... | JavaScript | 0.000002 | @@ -2649,16 +2649,34 @@
refixer(
+%7B cascade: false %7D
)%0A
|
d29392a7194dfa8b016d2003b9bf7b906ace701d | Switch to a github access token for release process | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-release");
grunt.initConfig({
release: {
options: {
github: {
repo: "sebz/airvantage.js",
usernameVar: "GITHUB_USERNAME",
passwordVar: "GITHUB_PASSWORD"
... | JavaScript | 0 | @@ -234,68 +234,19 @@
-usernameVar: %22GITHUB_USERNAME%22,%0A password
+accessToken
Var:
@@ -258,16 +258,20 @@
HUB_
-PASSWORD
+ACCESS_TOKEN
%22%0A
|
712ca0debfa0947794c58ee223cfabb1adf75d1c | Fix perf jshint task | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
indent: 2,
latedef: true,
newcap: true,
noarg: true,
quotmark: tru... | JavaScript | 0.999946 | @@ -1503,22 +1503,25 @@
src: %5B'
+test/
perf
-/*
.js'%5D%0A
|
7642e63068d5d7d4225fe423c54e3876f6c1b3d7 | Remove a11y until phantomJS segfault is fixed, run tests before release | Gruntfile.js | Gruntfile.js | /**
* Grunt Task Runner
*
* This is simply to facilitate local development. To build any files, use the
* according Metalsmith plugin.
*/
module.exports = function(grunt) {
// Get any options
// type takes 'prerelease', 'patch', 'minor', 'major'
var type = grunt.option('type') || 'patch';
// Load all gr... | JavaScript | 0 | @@ -6304,16 +6304,24 @@
ease', %5B
+'test',
'bump:'
@@ -6395,16 +6395,19 @@
ild'
+/*
,
-
'a11y'
+*/
%5D);%0A
|
b5aa2673b5f551c4e68ce42ac1f67eabe1e4d89f | Fix babylon dep | src/check-dependencies.js | src/check-dependencies.js | 'use strict';
const _ = require('lodash');
const exec = require('child_process').exec;
const fs = require('./lib/fs');
const npmInstall = require('./npm-install');
const path = require('path');
const pkg = require('../package.json');
const prettyjson = require('prettyjson');
const configHelper = require('./lib/helper-... | JavaScript | 0.000001 | @@ -329,72 +329,8 @@
s');
-%0Aconst parser = require('./check-dependencies-depcheck-parser');
%0A%0Afu
@@ -2744,16 +2744,82 @@
heck');%0A
+ const parser = require('./check-dependencies-depcheck-parser');%0A
const
|
832de601130c3e594c8da56e641178a33fd6bbe8 | Add 'src' to loadpath | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Modules
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('bootcamp');
// Grunt Tasks
grunt.initConfig({
dir : {
src : 'src',
dist : 'dist'
},
p... | JavaScript | 0.000002 | @@ -2685,16 +2685,17 @@
adPath:
+%5B
'./node_
@@ -2720,49 +2720,27 @@
ist'
- // or './bower_components/bootcamp/dist'
+, '%3C%25= dir.src %25%3E'%5D
%0A
|
b6decd60042fabb4e3968476b6576dce1df31b74 | Clean the gruntfile. | Gruntfile.js | Gruntfile.js | /*
* grunt-manifest-concat
* https://github.com/mcavallo/grunt-manifest-concat
*
* Copyright (c) 2015 Mariano Cavallo
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var path = require('path');
grunt.initConfig({
// Before generating any new files, remove any prev... | JavaScript | 0 | @@ -266,172 +266,45 @@
-// Before generating any new files, remove any previously-created files.%0A clean: %7B%0A tests: %5B'tmp'%5D%0A %7D,%0A%0A // Configuration to be run (and then tested).
+clean: %7B%0A tests: %5B'tmp'%5D%0A %7D,%0A
%0A
@@ -1051,27 +1051,8 @@
%7D,%0A%0A
- // Uni... |
0ab20f746d7cb480deccf201f340c59e0f77eda9 | update gruntfile | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
name: '<%= pkg.name %>.<%= pkg.version %>',
services_files: [
'src/js/services/*.js'
],
diagram_files: [
'src/js/Diagram/*.j... | JavaScript | 0.000001 | @@ -5424,16 +5424,22 @@
'src/js/
+Chart/
flotlib/
|
d77f841c4a7152d2b1ca450693c889380a8064ef | set grunt default task | Gruntfile.js | Gruntfile.js | module.exports = function (grunt) {
grunt.initConfig({
clean: {
test: ['results/']
},
jasmine_node: {
options: {
forceExit: true,
match: '.',
matchall: true,
extensions: 'js'
},
test: ['test/specs/']
}
});
grunt.loadNpmTasks('grunt-contrib-c... | JavaScript | 0.000001 | @@ -362,24 +362,67 @@
ne-node');%0A%0A
+ grunt.registerTask('default', %5B'test'%5D);%0A
grunt.regi
|
9f8b603b53e758db0b8569ce761a6351a53db680 | fix missing build/shariff.min.css | Gruntfile.js | Gruntfile.js | 'use strict';
var browsers = [
'last 2 versions',
'ie 9',
'ie 10',
'Firefox ESR',
'Opera 12.1'
];
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '\n/*!\n * <%= pkg.title || pkg.name %> - v<%= pkg.vers... | JavaScript | 0.000003 | @@ -6554,24 +6554,41 @@
'less:dist',
+ 'less:dist_min',
'browserify
|
5342a3b5703223a2688a0ce931cc9c118786f494 | Add 'CMDR' to list of phrases in rat names where the API will tell you to fuck off | src/classes/Validators.js | src/classes/Validators.js | import Permission from './Permission'
import RegexLiteral from './RegexLiteral'
import { UnprocessableEntityAPIError } from './APIError'
import { URL } from 'url'
export const IRCVirtualHost = /^[a-z][a-z0-9.]{3,64}$/u
export const IRCNickname = /^[A-Za-z_\\`\[\]{}]([A-Za-z0-9_\\`\[\]{}]{1,29})?$/u
const forbiddenCMDR... | JavaScript | 0 | @@ -353,16 +353,24 @@
, '%5Bps%5D'
+, 'CMDR'
%5D%0A%0A// la
|
a30ca61481f947764adbb9b93989dc690833f880 | Update main.js | js/main.js | js/main.js | ---
layout: null
sitemap:
exclude: 'yes'
published: true
---
$(document).ready(function () {
$('a.research-button').click(function (e) {
if ($('.panel-cover').hasClass('panel-cover--collapsed')) return
currentWidth = $('.panel-cover').width()
if (currentWidth < 960) {
$('.panel-cover').addClass('... | JavaScript | 0.000001 | @@ -723,13 +723,13 @@
%7D%0A
+
%0A
-/*
if (
@@ -833,18 +833,16 @@
l %7D%7D
-index.html
+research
') %7B
@@ -906,10 +906,8 @@
%0A %7D
-*/
%0A%0A
|
a190f04abeb6c056bde47436d1da5ffeb2c0984d | Update coverage values to match current | Gruntfile.js | Gruntfile.js | 'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
allFiles: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js', 'index.js'],
options: {
jshintrc: '.jshintrc',
}
},
... | JavaScript | 0 | @@ -737,11 +737,10 @@
es:
-100
+98
,%0A
@@ -774,17 +774,17 @@
ments: 9
-9
+6
%0A
|
fad7aa9d9a840b01f047be42d3358056294354dc | Update Gruntfile | Gruntfile.js | Gruntfile.js | var webpack = require('webpack');
module.exports = function(grunt) {
grunt.initConfig({
modernizr: {
build: {
"parseFiles": true,
"customTests": [],
"devFile": "./node_modules/modernizr/src/Modernizr.js",
"dest": "./assets/js/cust... | JavaScript | 0.000001 | @@ -1073,17 +1073,16 @@
-loader'
-,
%0A
@@ -1102,18 +1102,34 @@
- query:
+%7D,%0A
%7B%0A
@@ -1159,31 +1159,28 @@
- presets: %5B'es2015'%5D
+test: /pnotify%5C.js/,
%0A
@@ -1196,33 +1196,77 @@
-%7D
+loader: 'imports?global=%3Ewindow,this=%3Ewindow... |
7b00652316b41af8ef7ba709961617132bf32475 | remove redundant log statement | assets/javascript/sketch.js | assets/javascript/sketch.js | // Flocking system
// Based on chapter 6 of Nature of Code by Daniel Shiffman
// http://natureofcode.com/book/chapter-6-autonomous-agents/
//
// Rewritten for PaperJS and optimized by Bob Corporaal - https://reefscape.net
function startPaper() {
paper.setup('canvas');
var nrBoids = 60;
// Create a new floc... | JavaScript | 0.018069 | @@ -1073,26 +1073,4 @@
r);%0A
-console.log('wait%E2%80%A6');%0A
|
7be744b8199e0cbf517b13ef5833a85959d8cd10 | Fix build task. | Gruntfile.js | Gruntfile.js | /*
The MIT License (MIT)
Copyright (c) 2014 Julian Xhokaxhiu
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, modif... | JavaScript | 0.000002 | @@ -2845,16 +2845,18 @@
('build'
+,
%5B%0A
|
73d5d8a491738d27c0c7fb6f2608ca7e4ecd0579 | fix build export name | Gruntfile.js | Gruntfile.js | process.env.NODE_ENV = process.env.NODE_ENV || 'development';
module.exports = function(grunt) {
var path = require('path');
var mainWrapperTemplate = [
'(function (module) {', '<%= src %>', '})(function (root) {',
'return Object.defineProperty({}, \'exports\', {',
'set: function (... | JavaScript | 0.000001 | @@ -87,24 +87,55 @@
on(grunt) %7B%0A
+ var EXPORT_NAME = 'Dable';%0A
var path
@@ -360,41 +360,27 @@
t%5B%5C'
-%3C%25= grunt.config(%5C'pkg.name%5C') %25%3E
+' + EXPORT_NAME + '
%5C'%5D
@@ -439,41 +439,27 @@
t%5B%5C'
-%3C%25= grunt.config(%5C'pkg.name%5C') %25%3E
+' + EXPORT_NAME + '
%5C'%5D;
|
b6bfd3e62c499fc16591fa54bd2fb2f41c6608a4 | Support for run on mac (I think...) | Gruntfile.js | Gruntfile.js | var isWin = /^win/.test(process.platform);
var isMac = /^darwin/.test(process.platform);
var isLinux32 = /^linux/.test(process.platform);
var isLinux64 = /^linux64/.test(process.platform);
var os = "unknown";
if (isWin)
os = "win";
if (isMac)
os = "mac";
if (isLinux32)
os = "linux32";
if (isLinux64)
o... | JavaScript | 0 | @@ -363,16 +363,46 @@
nwExec =
+ %22%22;%0A%0Aif (!isMac)%0A nwExec =
%22cd cac
@@ -454,28 +454,103 @@
c%22;%0A
-console.log(nwExec);
+else%0A nwExec = %22cd cache/%22 + os + %22/%22 + nwVer + %22 && open -n -a node-webkit ../../../src%22;%0A%0A
%0Acon
|
abe2ab45a7f04689570b0286c3e5a9d5c67c1ca0 | Update main.js | js/main.js | js/main.js | var id = null;
var id2 = null;
function clamp(num, min, max) {
if (num < min)
num = min;
if (num > max)
num = max;
return num;
}
function randEverySec(button) {
id2 = window.setTimeout(change(),3000);
id = window.setInterval(function() {
var random1 = 10 * (5 - Math.floor(Math.random() * 1))... | JavaScript | 0.000001 | @@ -897,19 +897,21 @@
var
-div
+items
= docum
@@ -924,16 +924,17 @@
tElement
+s
ById(id)
@@ -935,16 +935,98 @@
Id(id);%0A
+ for (var i = 0, len = arr.length; i %3C len; i++) %7B%0A var div = items%5Bi%5D;%0A
div.
@@ -1089,10 +1089,16 @@
%22none%22;%0A
+ %7D%0A
%7D%0A
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.