This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "settingsReloadIntervalMinutes": 1, | |
| "fullscreen": false, | |
| "autoStart": false, | |
| "lazyLoadTabs": true, | |
| "websites": [ | |
| { | |
| "monolith": "true", | |
| "url": "https://app.google.stackdriver.com/dashboards/1197036787694873609?project=prod-co", | |
| "duration": 20, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| goos: darwin | |
| goarch: amd64 | |
| pkg: puzzles-golang/algos/mergesort | |
| BenchmarkConcurrentMergeSort_20-12 100000 15146 ns/op | |
| BenchmarkConcurrentMergeSort_50-12 50000 32069 ns/op | |
| BenchmarkConcurrentMergeSort_80-12 30000 49633 ns/op | |
| BenchmarkConcurrentMergeSort_200-12 10000 104311 ns/op | |
| BenchmarkConcurrentMergeSort_500-12 10000 221560 ns/op | |
| BenchmarkConcurrentMergeSort_5000-12 500 2779299 ns/op | |
| BenchmarkConcurrentMergeSort_100000-12 20 57669829 ns/op |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package services | |
| import ( | |
| "fmt" | |
| "github.com/go-cmd/cmd" | |
| "github.com/golang/glog" | |
| "time" | |
| ) | |
| type BashExecutor struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _.model.MapEntry; | |
| import _.model.MapType; | |
| import javax.xml.bind.annotation.adapters.XmlAdapter; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class JavaMapAdapter<K,V> extends XmlAdapter<MapType<K,V>, Map<K, V>> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package models | |
| import ( | |
| "encoding/xml" | |
| "errors" | |
| "io/ioutil" | |
| "os" | |
| "gopkg.in/resty.v1" | |
| "crypto/tls" | |
| "encoding/json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getLocation() { | |
| return new Promise(function (resolve, reject) { | |
| resolve('Lucknow'); | |
| }); | |
| } | |
| function getWeather(location) { | |
| return new Promise(function (resolve, reject) { | |
| resolve('It\'s 39 degrees in ' + location); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.gSearchParseResultBundle.find({"units.displayedUrl":"www.toptarif.de/gasvergleich"},{_id:0, units:{$elemMatch:{"displayedUrl" : "www.toptarif.de/gasvergleich"}}}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private byte[] downloadObject(String srcUrl) throws IOException | |
| { | |
| URL url = new URL(srcUrl); | |
| InputStream in = new BufferedInputStream(url.openStream()); | |
| return IOUtils.toByteArray(in); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Copy Jars to remote locations | |
| #!/bin/bash | |
| nodes="192.168.2.70 192.168.2.71 192.168.2.72 192.168.2.73 192.168.2.74 192.168.2.75" | |
| for node in $nodes | |
| do | |
| echo deploy node: $node | |
| ssh -o StrictHostKeyChecking=no user@$node 'mkdir /home/user/vrnet &' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.image.BufferedImage; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import javax.imageio.ImageIO; | |
| import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; | |
| public class SimpleConvertImage { |