smashing install bc4014fa61f08b31f3d42a5e78c49d9b
ratp.scss
: adjust background-color and font-size to your preference.ratp.rb
: configure with the desired stops and directions.
import jenkins.model.* | |
def matchedJobs = Jenkins.instance.items.findAll { job -> | |
job.name =~ /my_regex_here/ | |
} | |
matchedJobs.each { job -> | |
println job.name | |
//job.delete() | |
} |
This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).
Matrix multiplication is a mathematical operation that defines the product of
// keep track of the loaded libraries | |
const loadedLibraries = [] | |
function registerLibraryLoaded(id) { | |
// record the libs only if the array doesn't contain the same already | |
if (loadedLibraries.indexOf(id) < 0) { | |
loadedLibraries.push(id) | |
} | |
} |
Suppose you have two classes that should be registered with Spring context exclusively, e.g. only one of the beans must exist in the context at any time based on some boolean property value. Of course you can do it by adding explicit if
condition into your @Configuration
class. But if the classes have no common interface it may be quite cumbersome. As an alternative you can use @ConditionalOnProperty
annotation on your classes, e.g.:
@Service
@ConditionalOnProperty(name = "use-left-service", havingValue = "true", matchIfMissing = false)
public class LeftService
package main | |
import ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"sort" |