jenkins_url
+ /api/json?tree=jobs[name,color]
jenkins_url
+ /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]
var expect = require('expect'); | |
describe.only('Sample', function () { | |
beforeEach(function () { | |
this.currentTest.value = 'Winning!'; | |
}); | |
it('Uses current test data', function () { | |
expect(this.test.value).to.equal('Winning!'); |
var TestUtils = React.addons.TestUtils; | |
var context = {}; | |
var elementWithContenxt = React.withContext(context, function () { | |
return new Element({ | |
prop1: 'property' | |
}); | |
}); |
https://www.npmjs.com/package/v8-profiler | |
'use strict'; | |
var profiler = require('v8-profiler'); | |
profiler.startProfiling(); | |
// ... | |
var cpuProfile = profiler.stopProfiling(); | |
require('fs').writeFileSync(__dirname + '/foo.cpuprofile', JSON.stringify(cpuProfile)); |
# Lint all files in the directory recursivly | |
eslint --fix --ext .js --ext .jsx . |
# Prints all the empty directories in the local dir. | |
find . -type d -empty -print | |
# Removes all the empty directories in the local dir. | |
find . -type d -empty -delete |
@BeforeClass | |
public static void setup() { | |
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "trace"); | |
} |
# Disable the progress bar to speed up npm | |
npm set progress=false |
-- Query a parameter | |
SHOW max_connections; | |
RESET max_connections; | |
SHOW ALL; | |
SELECT * FROM pg_settings; | |
SELECT * | |
FROM pg_settings | |
WHERE name = 'max_connections'; |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You 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 | |
# | |
# Unless required by applicable law or agreed to in writing, software |