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
#!/usr/bin/env python | |
import requests | |
import collections | |
import argparse | |
def get_failing_tests_by_block(base_url): | |
url = base_url + '/testReport/api/json' | |
response = requests.get(url) |
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
--- a/inc/media.php 2018-12-28 17:46:14.000000000 +0100 | |
+++ b/inc/media.php 2018-08-20 21:05:55.000000000 +0200 | |
@@ -1084,6 +1084,15 @@ | |
$w = (int) $info[0]; | |
$h = (int) $info[1]; | |
+ if ($meta) { | |
+ $orientation = media_getTag('Orientation', $meta); | |
+ if ($orientation == 3 || $orientation == 6) { | |
+ $tmp = $h; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Inspired by http://blog.worldofcoding.com/2013/03/formatting-git-patches-for-partially.html | |
# This calls git log to get a list of commits that affect a certain file pattern and then exports each of them into a file | |
# If the exported commits shall be limited to these files, another pathspec could be added in the second git log call. | |
# The code is split into several lines to make it more readable, but all ";" are there such that all line breaks could be removed. | |
c=0; | |
git log --oneline --reverse -- your/pathspec.* |cut -d' ' -f1 | while read a; | |
do | |
c=$[c+1]; |
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
# This file also fails to compile with error error: redefinition of ‘std::vector<int, std::allocator<int> > __pyx_convert_vector_from_py_int(PyObject*)’. Note that it only fails when I have another definition without the fused type. | |
from libcpp.vector cimport vector | |
cdef extern from "test.h": | |
cdef cppclass _TestClassInt "TestClass<int>": | |
vector[double] toDouble(const vector[int] &items) except + | |
cdef cppclass _TestClassChar "TestClass<char>": | |
vector[double] toDouble(const vector[char] &items) except + |
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
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php | |
index 95e2af0..9edd8be 100644 | |
--- a/lib/exe/indexer.php | |
+++ b/lib/exe/indexer.php | |
@@ -16,15 +16,16 @@ if(!defined('NL')) define('NL',"\n"); | |
// check if user abort worked, if yes send output early | |
$defer = !@ignore_user_abort() || $conf['broken_iua']; | |
-if(!$defer){ | |
+$output = isset($_REQUEST['debug']) && $conf['allowdebug']; |
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
#!/bin/bash | |
command="$1" | |
expression="$2" | |
$command | |
inotifywait -r -m --format '%f' -e close_write "$PWD" | while read file; do | |
if echo "$file" | grep "$expression"; then | |
$command |
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
<?php | |
class s9y2blogger { | |
private $database = NULL; | |
private $errors = array(); | |
private $curEntry = array(); // current entry of the parser | |
private $inPublished = false; | |
public function __construct() { |
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
#!/usr/bin/ruby | |
require 'net/http' | |
require 'cgi' | |
require 'rexml/document' | |
require 'optparse' | |
require 'time' | |
options = { | |
:lang => 'de', |
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
/* This bookmarklet tries to find the first selected link and opens the QR code. When no link is selected the current URL is used. */ | |
javascript:(function(){%20function%20openqr(url){window.open('http://api.qrserver.com/v1/create-qr-code/?data='+encodeURIComponent(url)+'&size=700x700&qzone=6');}%20var%20selected,dl,i;%20dl%20=%20document.links;%20if%20(window.getSelection%20&&%20window.getSelection().containsNode)%20{%20/*%20mozilla%20*/%20for(i=0;%20i<dl.length;%20++i)%20{%20if%20(window.getSelection().containsNode(dl[i],%20true))%20{%20selected%20=%20true;%20openqr(dl[i].href);%20break;%20}%20}%20}%20if%20(!selected)%20{%20/*ie,%20or%20mozilla%20with%20no%20links%20selected%20*/%20openqr(document.URL);%20}%20})(); | |
/* This bookmarklet uses the current URL. On some pages the above bookmarklet doesn't work/always uses an unwanted URL. If you experience this issue or don't need selected links try this one. */ | |
javascript:(function(){window.open('http://api.qrserver.com/v1/create-qr-code/?data='+encodeURICompo |
NewerOlder