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 | |
set_time_limit(0); | |
interface PerformanceTest | |
{ | |
public function test($numberOfIteraftion); | |
} | |
class PerformanceTester |
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
# System-wide .bashrc file for interactive bash(1) shells. | |
if [ -z "$PS1" ]; then | |
return | |
fi | |
# Support for GIT branch and status info | |
# @see http://www.bramschoenmakers.nl/en/node/624 | |
# @see http://denis.tumblr.com/post/71390665/adding-bash-completion-for-git-on-mac-os-x-snow-leopard | |
if [ -f /etc/git-completion.bash ]; then | |
. /etc/git-completion.bash |
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
javascript:void(function(){%20var%20divId%20=%20'tmLprDiv'%20+%20Math.floor(Math.random()*1000000);%20var%20inputId%20=%20'tmLprUrl'%20+%20Math.floor(Math.random()*1000000);%20var%20divTag%20=%20document.createElement("div");%20divTag.setAttribute("align","center");%20divTag.id%20=%20divId;%20divTag.style.font%20="9pt%20Verdana";%20divTag.style.margin%20=%20"0px%20auto";%20divTag.style.position%20=%20"absolute";%20divTag.style.top%20=%20"10px";%20var%20left%20=%20(screen.width%20-%20350)%20/%202;%20divTag.style.left%20=%20left%20+%20"px";%20divTag.style.padding%20=%20"10px";%20divTag.style.border%20=%20"3px%20solid%20red";%20divTag.style.background%20=%20"white";%20divTag.style.width%20=%20"350px";%20divTag.style.zIndex%20=%20"999";%20divTag.innerHTML%20=%20"<div%20style='float:right;color:red;font-weight:bold;margin:-5px;%200px%2010px%200px;cursor:pointer;'%20onclick='document.body.removeChild(document.getElementById(\""%20+%20divId%20+%20"\"));'>X</div><br%20style='clear:right;'/><div>Landing%20page%20URL:% |
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
[user] | |
name = Jan Majek | |
email = [email protected] | |
[push] | |
# Pushes only curent branch upstream (as opposed to "matching" (default) which would push all branches) | |
# default = upstream | |
[credential] | |
# helper = osxkeychain | |
[help] | |
# If there is only one matching command, it will execute it after X dediseconds (1/10s) |
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 | |
t( | |
array( | |
'www.notft.com', | |
'ft.com', | |
'.ft.com', | |
'x.ft.com.au', | |
'x.ft.com', | |
), |
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 | |
$test = "Copy from here -->" . $foo . "<-- to here and pasting will escape the quotes -->\" . $foo . \"<--"; | |
$test = 'Copy from here -->' . $foo . '<-- to here and pasting will escape the quotes -->\' . $foo . \'<--'; | |
$test = " | |
lorem ipsum | |
" . $foo . " // copy this line | |
\" . $foo . \" // the quotes get escaped on pasting | |
"; |
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
{"version":1,"resource":"file:///Users/jan.majek/Projects/boilerplate-typescript/src/actions/download.ts","entries":[{"id":"Z0XS.ts","timestamp":1667820526418},{"id":"eGHD.ts","timestamp":1667904802020},{"id":"gU3A.ts","timestamp":1667906605037},{"id":"D2AS.ts","timestamp":1667906636984},{"id":"u9Ow.ts","timestamp":1667906783440},{"id":"dfBB.ts","timestamp":1667906812352},{"id":"zW6W.ts","timestamp":1667906921326}]} |
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
module.exports = { | |
"parser": "babel-eslint", | |
"env": { | |
"jest/globals": true, | |
"browser": true, | |
"es6": true | |
}, | |
"settings": { | |
"ecmascript": 6, | |
"jsx": true |
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
import debug from 'debug'; | |
import express, { NextFunction, Request, Response } from 'express'; | |
const testRouter = express.Router(); | |
const delay = async (wait: number, label: string) => | |
new Promise(resolve => { | |
debug('yncx:delay:start')({ wait, label }); | |
setTimeout(() => { | |
debug('yncx:delay:end')({ wait, label }); |
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
#!/bin/bash | |
# GITS: https://gist.github.com/jancimajek/c744675a13da3357a7e9d3959b6b1d3b | |
echo "[git fetch]" | |
git fetch | |
NEEDS_UPDATE=$(git log HEAD..origin/master --oneline | wc -l) | |
if [ $NEEDS_UPDATE -eq 0 ] | |
then |
OlderNewer