Skip to content

Instantly share code, notes, and snippets.

@cschomburg
cschomburg / ResultPrinter.php
Created May 25, 2020 11:28
PHPUnit Cobertura ResultPrinter
<?php
declare(strict_types=1);
namespace App\Test\TestSuite\Runner;
use App\Test\TestSuite\Coverage\Cobertura;
use Nette\Utils\FileSystem;
use PHPUnit\Framework\TestResult;
use PHPUnit\TextUI\ResultPrinter;
@cschomburg
cschomburg / keybase.md
Last active July 29, 2020 11:34
Keybase

Keybase proof

I hereby claim:

  • I am cschomburg on github.
  • I am cschomburg (https://keybase.io/cschomburg) on keybase.
  • I have a public key ASCQz9_5Wral2LTehGSaUXLNzJZEeS_eS5vXKx_NPA7wCAo

To claim this, I am signing this object:

package gormtest
import (
"testing"
"github.com/jinzhu/gorm"
_ "github.com/mattn/go-sqlite3"
)
type Post struct {
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
<input id="title" placeholder="Title" />
<input id="body" placeholder="Body" />
<input id="post" type="button" value="Push" />
/* SCSS example from http://ethanschoonover.com/solarized compiled to CSS */
/* light is default mode, so pair with general html definition */
html, .light {
background-color: #fdf6e3;
color: #657b83;
}
html *, .light * {
color: #657b83;
}
local LFX = LibStub("LibFx-1.1")
local rotate = LFX.New{
frame = MyTexture,
anim = "Rotate",
deg = 360,
duration = 5,
loop = true,
}
package main
import "fmt"
func main() {
var n int;
fmt.Println("Bitte Zahl eingeben: ");
fmt.Scanln(&n);
a, b := 0, 1
-- Multiple item-buttons per bagSlot
-- Untested and probably inefficient
function Implementation:UpdateSlot(event, bagID, slotID)
-- Existing code here - maybe also exclusive filtering
-- Cycle through containers which should be non-exclusive
for id, container in pairs(self.contByID) do
-- Find the button for the slot in the container, if any.
-- optionsTable
local frameStacks = {
["main"] = {
frames = {},
firstPos = { "RIGHT", UIParent, "RIGHT", -65, -85 },
nextPos = { "BOTTOM", "TOP", 0, 15 },
nextColPos = { "BOTTOMRIGHT", "BOTTOMLEFT", -15, 0 },
},
}
// ==UserScript==
// @name WoWInterface Forum Filter
// @namespace http://xconstruct.net
// @description Colors search rows by different subforums
// @include http://www.wowinterface.com/forums/search.php?searchid=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
// ==/UserScript==
(function() {