Skip to content

Instantly share code, notes, and snippets.

View Wolfsblvt's full-sized avatar

Wolfsblvt Wolfsblvt

View GitHub Profile
@Wolfsblvt
Wolfsblvt / game\gameplay\damage\damageManagerProcessor.ws
Last active February 6, 2023 19:34
4.01 hotfix Merge "damageManagerProcessor.ws" Vanilla x modCriSloMoCR
/***********************************************************************/
/** © 2015 CD PROJEKT S.A. All rights reserved.
/** THE WITCHER® is a trademark of CD PROJEKT S. A.
/** The Witcher game is based on the prose of Andrzej Sapkowski.
/***********************************************************************/
sad
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
namespace TestsCreatorCommands
{
public class CustomCodeAction : CodeAction
using System.Composition;
using System.Threading;
using System.Threading.Tasks;
using EnvDTE;
using EnvDTE80;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@Wolfsblvt
Wolfsblvt / TestsCreatorCommands.cs
Created May 17, 2017 09:32
Class tot test refactoring option to add test project
using System.Composition;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace TestsCreatorCommandss
@Wolfsblvt
Wolfsblvt / bash function
Created May 1, 2015 13:18
Function to make upstream to "upstream"
setupstream = "!f() { \
local rem=$(git remote | grep -v '^origin$') \
if [ \"$(wc -l <<<\"$rem\")\" -gt 1 ]; then \
echo 'Too many remotes.' >&2 \
return \
fi \
if [ -z \"$rem\" ]; then \
echo 'No non-origin remote found.' >&2 \
return \
fi \
@Wolfsblvt
Wolfsblvt / module.php
Created April 30, 2015 22:25
acp module with magic
<?php
/**
*
* Highlight Unread Posts
*
* @copyright (c) 2015 Wolfsblvt ( www.pinkes-forum.de )
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
* @author Clemens Husung (Wolfsblvt)
*/
@Wolfsblvt
Wolfsblvt / gist:c61f32748a05ced57da0
Created April 27, 2015 13:02
extension scrutiniuzer config
checks:
php: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
general:
linefeed_character: newline
@Wolfsblvt
Wolfsblvt / display.php
Last active August 29, 2015 14:14
Parsing function for mentions
/**
* Replace all mentions inside of a text with full username_string and mention name
*
* @param string $text the original text
* @return string the text with replaced mentions
*/
public function replace_mentions_for_display($text)
{
$start_time = microtime(true);