Skip to content

Instantly share code, notes, and snippets.

View derveloper's full-sized avatar
:shipit:

Tristan Leo derveloper

:shipit:
View GitHub Profile
@derveloper
derveloper / only-bikeroutes.conf
Last active September 19, 2022 10:09
bikerouter.de profiles
#
# A fastbike could be a racing bike or a speed pedelec.
# But also at night or in rainy whether you might want
# to fallback to this one.
#
# Structure is similar to trekking.brf, see this for documenation.
#
---context:global # following code refers to global config
@derveloper
derveloper / build-qcow2.nix
Created September 25, 2020 07:08 — forked from tarnacious/build-qcow2.nix
Build a bare bones bootable nixos qcow2 image suitable for running with libvirt/qemu/kvm.
{ config, lib, pkgs, ... }:
with lib;
{
imports =
[
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
./machine-config.nix
];
package cc.vileda.devmatch
import com.github.davidmoten.rx2.flowable.Transformers
import io.vertx.core.DeploymentOptions
import io.vertx.core.json.JsonObject
import io.vertx.reactivex.core.AbstractVerticle
import io.vertx.reactivex.core.Vertx
import java.util.concurrent.atomic.AtomicInteger
{
"components": {"schemas": {"ExampleSchema": {
"properties": {"foo": {"type": "string"}},
"type": "object"
}}},
"info": {
"title": "jjjj",
"version": "1.0"
},
"openapi": "3.0.0",
#!/usr/bin/env boot
(set-env! :dependencies '[[org.clojure/clojure "1.8.0"]
[http-kit "2.2.0"]
[org.clojure/data.json "0.2.6"]])
(require '[org.httpkit.client :as http])
(require '[clojure.data.json :as json])
(require '[boot.cli :refer [defclifn]])
Verifying that "derveloper.id" is my Blockstack ID. https://onename.com/derveloper
KNN Classifiaction of fnordeingang opening times
=================================================
WEDNESDAY 2016-11-23T16:51
THURSDAY 2016-11-24T17:11
SATURDAY 2016-11-26T01:57:30
SUNDAY 2016-11-27T16:47:30
MONDAY 2016-11-28T18:40
TUESDAY 2016-11-29T17:56
WEDNESDAY 2016-11-30T16:51
import com.sun.crypto.provider.DHKeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
public class DHKeyTest
{
public static void main(String[] args) throws NoSuchAlgorithmException
{
@derveloper
derveloper / train.coffee
Last active August 28, 2016 22:10
Hubot script for training hubot with facebook's fastText neural network - https://github.com/facebookresearch/fastText
fs = require 'fs'
execSync = require('child_process').execSync
tmp = require('tmp')
execSync('wget -c https://github.com/facebookresearch/fastText/archive/master.tar.gz')
execSync('tar xvfz master.tar.gz && cd fastText-master && make && cp fasttext ../')
module.exports = (robot) ->
robot.respond /train \"(.+)\" (.+)/i, (res) ->
@derveloper
derveloper / console.txt
Created July 6, 2016 19:06
kiste bier ist mir
fooDispatch function dispatch(action) {
return _dispatch(action);
}
store.js?5dc3:13fooNext function (action) {
console.log("barDispatch", dispatch.toString());
console.log("barNext", next.toString());
next(action);
}
store.js?5dc3:17barDispatch function dispatch(action) {
return _dispatch(action);