Skip to content

Instantly share code, notes, and snippets.

View 0robustus1's full-sized avatar

Tim Reddehase 0robustus1

View GitHub Profile

endpoint format validation

validating the format of endpoints in PR #173

Contact information about failing apps

Some apps have failed their individual checks, while this PR might be mergeable without additional action we can notify the teams maintaing those apps of the issues. This is a list of their contact information:

@0robustus1
0robustus1 / significances.r
Created October 23, 2016 20:13
Significances in A/B tests with R
commonConversionRate <- function(actual_values, sizes) {
return(sum(actual_values) / sum(sizes))
}
chiValues <- function(actual_values, expected_conversions) {
chi_values <- ((actual_values - expected_conversions)^2) / expected_conversions
return(chi_values)
}
chiValue <- function(actual_values, sizes) {
@0robustus1
0robustus1 / opener-core.el
Created October 20, 2016 20:16
core of opener.el
(defun opener-open-url-in-buffer (url)
; let's do a GET request to the url
(request
url
:parser 'buffer-string
; get response as a string and pass it together with an appropriate
; "file"-name to our buffer function
:complete (let ((buffer-name (opener-filename-for url)))
(function*
(lambda (&key data &allow-other-keys)
logic OWL
ontology Vehicle =
Class: Car
Class: Truck SubClassOf: Car
Class: Pickup SubClassOf: Car
end
ontology ManualVehicle =
Class: Bicycle
[user]
name = "My actual name"
email = [email protected]
[alias]
c = commit
ca = commit --amend
co = checkout
m = merge
mff = merge --ff-only
r = rebase
@0robustus1
0robustus1 / serverprint.pl
Last active August 29, 2015 14:02
Serverprinting done easy
#! /usr/bin/env perl
#use strict;
use warnings;
use Getopt::Std;
use File::Basename;
use constant SCP => "/usr/bin/scp";
use constant SSH => "/usr/bin/ssh";
diff -uNp -r mutt-1.5.22.orig/buffy.c mutt-1.5.22/buffy.c
*** mutt-1.5.23-orig/buffy.c 2014-03-12 11:03:44.000000000 -0500
--- mutt-1.5.23/buffy.c 2014-04-12 15:33:54.000000000 -0500
***************
*** 161,166 ****
--- 161,209 ----
}
}
+ static int buffy_compare_name(const void *a, const void *b) {
@0robustus1
0robustus1 / fix-whitespace.sh
Created May 10, 2014 12:47
Fix whitespace issues inside rails application
#!/bin/bash
# Performs on .rb, .coffee and .sass inside of these directories:
# app/, config/, db/, lib/, spec/, test/
files=$(find app config db lib spec test -iname "*.rb" -o -iname "*.coffee" -o -iname "*.sass")
# Reports fixable errors only, if run with $ONLY_TEST environment variable set.
# For example: `ONLY_TEST=1 ./fix-whitespace.sh`
if [[ -z "$ONLY_TEST" ]]; then
echo "Actually performing changes..."
@0robustus1
0robustus1 / find-development-rails.sh
Created April 9, 2014 11:43
Finding development rails servers inside a given subnet
#!/bin/bash
# The nmap compatible address-range is taken as first (and only) commandline
# argument. The output contains the whole url (including `http://` and the
# port, so it could be used by xdg-open or open. (As long as you're using it
# in a for loop)
port=3000
address_range=$1
all_active_hosts_in_net=$(nmap -sn $address_range)
Prefix: owl: <http://www.w3.org/2002/07/owl#>
Prefix: rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Prefix: xml: <http://www.w3.org/XML/1998/namespace>
Prefix: xsd: <http://www.w3.org/2001/XMLSchema#>
Prefix: rdfs: <http://www.w3.org/2000/01/rdf-schema#>
Ontology: <https://gist.githubusercontent.com/0robustus1/9190241/raw/4262af3b7d7df474f05a319ccfefba2d6b703c7a/imported_ontology.owl>
Class: <http://www.semanticweb.org/ontologies/imported_ontology#ImportedClass_01>
Class: <http://www.semanticweb.org/ontologies/imported_ontology#ImportedClass_02>