This file contains 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
// ==UserScript== | |
// @name Fork-Checker | |
// @namespace https://github.com/Koopzington | |
// @version 0.1 | |
// @description When looking on a GitHub repository, this script checks if you already have a fork of it on your account. | |
// @author koopzington@gmail.com | |
// @match https://github.com/*/* | |
// @grant GM_xmlhttpRequest | |
// ==/UserScript== |
This file contains 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 | |
namespace Application\Service; | |
use DateTime; | |
class BarService | |
{ | |
protected $dateTime; | |
This file contains 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
grep -hoR 'Zend\\\w*' module/ | sort | uniq |
This file contains 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/php | |
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
// Path to file was passed to the script, find out FQCN of the class with the power of PSR4 mapping! | |
$file = substr(getcwd() . '/' . $argv[1], 0, -4); | |
$namespaces = include __DIR__ . '/vendor/composer/autoload_psr4.php'; | |
foreach ($namespaces as $namespace => $paths) { | |
if (strpos($file, $paths[0]) === 0) { |
This file contains 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
// ==UserScript== | |
// @name GIVE ALL THE LLAMAS - Group Memberlist | |
// @namespace http://github.com/koopzington/ | |
// @version 1.2.3 | |
// @description Script to let your browser automatically click you One-Click-Llama-Buttons on memberlists of groups | |
// @author Koopzington | |
// @match https://*.deviantart.com/modals/memberlist* | |
// @match https://www.deviantart.com/*/modals/memberlist* | |
// @downloadURL https://gist.githubusercontent.com/Koopzington/a13d421ff3bf65f49b3348b5dc0d7962/raw/give-all-the-llamas.user.js | |
// @grant none |
This file contains 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
// ==UserScript== | |
// @name dA Hotkeys | |
// @namespace https://koopzington.github.com/ | |
// @version 0.4 | |
// @description DeviantArt also has Hotkeys now! | |
// @author Koopzington@gmail.com | |
// @match https://*.deviantart.com/* | |
// @downloadURL https://gist.github.com/Koopzington/e5a9d0d52630355e7a07b314eac19f7f/raw/da-hotkeys.user.js | |
// @grant none | |
// ==/UserScript== |
This file contains 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 php | |
<?php | |
/** | |
* DISCLAIMER: Even though I tried my best to prevent anything bad from happening, | |
* I can't guarantee that your code won't break after using this script on it. | |
* | |
* What does this script do? | |
* It replaces all occurences of $FooBar and $foo_bar with properly camelCased $fooBar. | |
* Replacements also include references to class properties like $this->foo_bar and $this->FooBar | |
* |
This file contains 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 | |
namespace Foo\Validator; | |
use Zend\Validator\ValidatorInterface; | |
final class LicensePlateValidator implements ValidatorInterface | |
{ | |
const FORMATS = [ | |
// Germany (Total Length: 8 characters excluding spaces, No leading zeros, can end in E or H) |
This file contains 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 | |
require 'vendor/autoload.php'; | |
require 'proxygrabber.php'; | |
const XML_FILE_NAME = 'data/anime-titles.xml'; | |
const ARCHIVE_NAME = 'data/anime-titles.gz'; | |
/** | |
* Decompresses a gunzip arhive |
This file contains 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
Replace 3-line comments with one-liner: | |
/** | |
* @var Adapter $adapter | |
*/ | |
/** @var Adapter $adapter */ | |
Search: \/\*\*\n.*(\@.*).*\n.*\*\/ | |
Replace: \/\*\* $1 \*\/ |
OlderNewer