Skip to content

Instantly share code, notes, and snippets.

View gist:77d534be7b149221a8bff792d47e91d1
import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;
@Component
public class FileSplitterRoute extends RouteBuilder {
@Override
public void configure() throws Exception {
System.out.println("Configuring camel routes...");
@CubikNeRubik
CubikNeRubik / index.js
Created Apr 21, 2021
RxJS. Delayed output
View index.js
const { interval, of } = Rx;
const { concatAll, map, first, delay } = RxOperators;
of(...[1,2,3,4]).pipe(
map(val =>
of(val).pipe(
delay(1000),
first(),
)
),
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created Apr 21, 2021
gstreamer-devel v1.18.4 - Passed - Package Tests Results
View 1.RegistrySnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1953236517-242735908-2433092285-500</user>
<keys>
<key installerType="Msi" displayName="GStreamer 1.0 (Development Files)" displayVersion="1.18.4">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A724380E-5978-4AC8-ABE0-C2536EB43E11}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{A724380E-5978-4AC8-ABE0-C2536EB43E11}]]></UninstallString>
View untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
View geojson2polyline
class GeoJsonUtil{
geojson2Leaflet(geojson , vectorConfig){
let shapes = [];
for(let i = 0, len = geojson.features.length; i < len; ++i){
let feature = geojson.features[i];
feature.id = feature.properties[vectorConfig.idField?vectorConfig.idField:'id']
feature.name = feature.properties[vectorConfig.nameField?vectorConfig.nameField:'name']
let geom = this._reverseLatLng(feature.geometry)
let shape = null
let opt = vectorConfig.style
View Potential Maintainers
Maintainers:
06kellyjac: cosign, cosign, cosign, cosign
lesuisse: cosign, cosign, cosign, cosign
kalbasit: cosign, cosign, cosign, cosign
View Changed Paths
x86_64-darwin cosign
i686-linux cosign
x86_64-linux cosign
aarch64-linux cosign
View untrusted-lvl5-solution.js
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
View openpanzer-save.json
{"scenario":{"name":"Narvik","maxTurns":22,"date":"1940-07-14T23:00:00.000Z","atmosferic":1,"latitude":2,"ground":1,"turnsPerDay":2,"dayTurn":0,"reinforcements":{"3":[{"row":10,"col":4,"unit":{"eqid":369,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":11,"facing":0,"flag":23,"destroyed":false,"transport":null,"carrier":548,"moveLeft":6,"ammo":12,"fuel":43,"hasAnimation":false,"hits":0,"experience":162,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":3,"id":1},{"row":10,"col":5,"unit":{"eqid":347,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":11,"facing":0,"flag":23,"destroyed":false,"transport":null,"carrier":548,"moveLeft":4,"ammo":5,"fuel":0,"hasAnimation":false,"hits":0,"experience":183,"entrenchmen
View OkhttpIntercaptor.java
package com.hjq.demo.http.request;
import com.google.gson.Gson;
import com.hjq.demo.http.response.RsaResp;
import com.hjq.demo.other.DebugLogUtil;
import com.hjq.demo.other.IntentKey;
import com.hjq.demo.other.rsa.RSAUtils;
import com.hjq.toast.ToastUtils;
import com.jh.qiti.util.StringUtil;