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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug unit tests", | |
"type": "node", | |
"request": "launch", |
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 | |
baseDir=~/Dropbox | |
externalDriveDir=/Volumes/Expansion | |
declare -a localDirs=("Documents" "Music" "Photos" "Shared" "Videos") | |
for dir in "${localDirs[@]}" | |
do | |
echo "======================= Synchronizing ${dir} =======================" |
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
name: "Lint PR Title" | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
lint-pr-title: |
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: '@typescript-eslint/parser', | |
parserOptions: { | |
project: 'tsconfig.json', | |
sourceType: 'module' | |
}, | |
plugins: [ | |
'@typescript-eslint/eslint-plugin', | |
'max-params-no-constructor', | |
'security', |
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
const { pathsToModuleNameMapper } = require('ts-jest'); | |
const { compilerOptions } = require('./tsconfig.json'); | |
const moduleNameMapper = Object.keys(compilerOptions.paths).reduce((acc, curr) => { | |
return { | |
...acc, | |
[curr]: '<rootDir>' + compilerOptions.paths[curr] | |
} | |
}, {}) |
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
class CaesarCipher { | |
private characters = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; | |
private shift = 4; | |
public decrypt(value: string): string { | |
return value.toString().split("") | |
.map(v => this.shiftNumber(Number(v))).join(""); | |
} | |
private shiftNumber(x: number): number { |
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
function isPalindrome1(word) { | |
const len = word.length; | |
for (let i = 0; i < len / 2; i++) { | |
if (word[i] !== word[len-1-i]) { | |
return false; | |
} | |
} | |
return 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
<?php | |
/** | |
* Simplify/fix the code below by knowing that you can use php 7.3-7.4: | |
*/ | |
class User { | |
public $name; | |
public $lastName; | |
protected $age; | |
public function __construct($name, $lastName, $age) |
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
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.1 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.10 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.100 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.1000 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.1001 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.1002 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.1003 to /run/media/jonathas/Elements/recovered_photos | |
==> Copying images from: /run/media/jonathas/Elements/Recovery/recup_dir.1004 to /run/media/jonathas/Elements/recovered_photos | |
==> Cop |
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 | |
for branch in `git branch -r|grep -v ' -> '|cut -d"/" -f2,3`; do git checkout $branch; git fetch; done; | |
for branch in `git branch`; do git push -u github $branch; done; | |
git push --tags github | |
NewerOlder