🤷♀️
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
npx code-complexity . --limit 20 --sort ratio | |
# You can also use --filter '**/*.js' to use glob patterns to filter files |
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
yarn | |
yarn storybook |
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
<details> | |
<summary>Install via NPM</summary> | |
```bash | |
npm install --save react-in-out-textarea | |
``` | |
</details> | |
<details> | |
<summary>Install via yarn</summary> |
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
ModuleNotFoundError: Module not found: Error: Can't resolve 'http' in 'E:\programming\getworkrecognized.com\node_modules\validate-vat\lib' | |
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. | |
This is no longer the case. Verify if you need these module and configure a polyfill for it. | |
If you want to include a polyfill, you need to: | |
- add an alias 'resolve.alias: { "http": "stream-http" }' | |
- install 'stream-http' | |
If you don't want to include a polyfill, you can use an empty module like this: | |
resolve.alias: { "http": false } |
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": "getworkrecognized.com", | |
"private": true, | |
"version": "0.0.1", | |
"scripts": { | |
"dev": "nodemon", | |
"build": "next build && tsc --project tsconfig.server.json", | |
"start": "ts-node --project tsconfig.server.json server/index.ts", | |
"typeorm": "ts-node -r tsconfig-paths/register --project tsconfig.server.json ./node_modules/typeorm/cli.js", | |
"create-or-update-leadership-principles": "ts-node --project tsconfig.server.json server/scripts/createOrUpdateLeadershipPrinciples", |
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 { Entity, Column, PrimaryGeneratedColumn } from "typeorm"; | |
@Entity() | |
export class BetaEmail { | |
@PrimaryGeneratedColumn() | |
id: number; | |
@Column() | |
email: string; |
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
# Get all entries like Melissa, Melli. | |
# Not depending on how many characters are wildcarded. | |
SELECT * FROM example_table WHERE example_column LIKE 'Mel%'; | |
# Get all entries like Meli, Melo. | |
# Depending on how many characters are wildcarded. | |
SELECT * FROM example_table WHERE example_column LIKE 'Mel_'; | |
# Or for multiple characters, here 2 | |
SELECT * FROM example_table WHERE example_column LIKE 'Mel__'; |
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
public class DynamicFrameDecodeBase64 { | |
public static DynamicFrame unBase64( | |
DynamicFrame df, | |
final String base64ColumnName, | |
final String dataColumnName | |
) { | |
RDD unboxRecords = df | |
.records() | |
.mapPartitions( |
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
SELECT * FROM example_table WHERE example_column ~* 'mel'; |
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
SELECT * FROM example_table WHERE example_column ILIKE '%mel%'; |