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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("jira.example.com") { | |
.aui-lozenge { | |
text-transform: none !important; | |
} | |
#dashboard, | |
#footer-logo, | |
#issue-content, | |
#issuetable > tbody > tr, |
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 | |
define('URL_BASE', 'https://pnwphp2016.dryfta.com'); | |
class PageRetriever { | |
/** @var array */ | |
private $cache = []; | |
/** @var resource */ | |
private $curl; | |
public function __construct() { |
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 | |
//First check the current directory for any QIF files | |
//If one is found, use that name by default | |
foreach(scandir('.') as $file) { | |
if(strtolower(substr($file, -4)) == '.qif') { | |
$filename = $file; | |
break; | |
} | |
} |
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
git clone [email protected]:yourname/repo-name.git | |
cd repo-name | |
git remote add upstream https://github.com/original-user/repo-name.git | |
git checkout master | |
git fetch upstream | |
git rebase upstream/master | |
git push |
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
cd /path/to/your/code | |
mkdir ../counts | |
git log --format=format:"git reset --hard %H&&cloc --skip-uniqueness --force-lang=HTML,twig --sql-project=\"%ai\" --sql=../counts/%H.sql ." --no-merges > ../runme.sh | |
bash ../runme.sh | |
mysql -u root -p stats < grep -h ../counts/* insert |
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 | |
use Symfony\Component\Panther\Client; | |
require 'vendor/autoload.php'; | |
$client = Client::createFirefoxClient(); | |
try { | |
$crawler = $client->request('GET', 'https://www.example.com/'); | |
$client->executeScript(/** @lang JavaScript */ 'function addXMLRequestCallback(callback) { |