Skip to content

Instantly share code, notes, and snippets.

View igeligel's full-sized avatar
🤷‍♀️
Shifting bits around the world

Kevin Peters igeligel

🤷‍♀️
Shifting bits around the world
View GitHub Profile
npx code-complexity . --limit 20 --sort ratio
# You can also use --filter '**/*.js' to use glob patterns to filter files
yarn
yarn storybook
<details>
<summary>Install via NPM</summary>
```bash
npm install --save react-in-out-textarea
```
</details>
<details>
<summary>Install via yarn</summary>
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 }
{
"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",
import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";
@Entity()
export class BetaEmail {
@PrimaryGeneratedColumn()
id: number;
@Column()
email: string;
# 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__';
public class DynamicFrameDecodeBase64 {
public static DynamicFrame unBase64(
DynamicFrame df,
final String base64ColumnName,
final String dataColumnName
) {
RDD unboxRecords = df
.records()
.mapPartitions(
SELECT * FROM example_table WHERE example_column ~* 'mel';
SELECT * FROM example_table WHERE example_column ILIKE '%mel%';