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
type T = | |
| { x: true, y: string | null } | |
| { x?: never, y: string } | |
or | |
if ("x" in t) { | |
console.log(t.x) |
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 | |
declare(strict_types = 1); | |
namespace App\Kafka; | |
use RdKafka; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputInterface; |
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 | |
class Base62 | |
{ | |
const BASE_OCT = 8; | |
const BASE_DEC = 10; | |
const BASE_HEX = 16; | |
const BASE_62 = 62; |
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 | |
startCommit=$2 | |
initialCommit=`git rev-parse HEAD` # commit of the repository before we start the work | |
file='cloc-stats.csv' | |
# use sed to remove duplicate lines with commit ID, git-rev-list not fully accepting my format, arrrgh | |
if [[ $1 = "--help" || $1 = "-h" ]]; then | |
echo "Generate 'cloc per commit' stats from a GIT repository by following the parent links from the given commit." |
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
10 New Year’s Resolutions Every Web Developer Should Make | |
========================================================= | |
1 - Learn a New Language, Framework or Methodology | |
-------------------------------------------------- | |
We must continue learning about the latest technologies. | |
2 - Get Better At What You Know | |
-------------------------------- | |
Set aside some time to also focus on existing languages and software. |