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
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;
export const BlueDark = "hsl(207, 95%, 8%)";
export const BlueDarkAlternative = "hsl(207, 95%, 17.25%)";
export const Blue = "hsl(207, 95%, 26.5%)";
export const BlueLightAlternative = "hsl(207, 95%, 35.75%)";
export const BlueLight = "hsl(207, 95%, 45%)";
export const WhiteBase = "hsl(100, 100%,99%)";
export const GreenDark = "hsl(174, 62%, 47%)";
export const GreenDarkAlternative = "hsl(174, 62%, 51.5%)";
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%';
SELECT * FROM example_table WHERE LOWER(example_column) LIKE '%mel%';
id ... example_column ...
... ... ... ...
205 ... Mel ...
206 ... Melissa ...
207 ... Mel ...
209 ... Emelio ...
... ... ... ...
SELECT * FROM example_table
WHERE example_column LIKE '%mel%'
OR example_column LIKE '%Mel%';