Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
GUID
ccfa0f06-14d2-4eaa-a04c-03e07a7fe669
f59656c1-1bbc-4c95-a482-23cd6e25f22b
705be387-1dc8-4d9e-8446-acdfdaa69ff0
6cdeb288-50a3-46d1-a465-aea2e3d1fe39
f0f944f4-3b28-4f70-b4a0-0ebd221a916c
10bd8763-4e8f-4c65-bd8f-fb1f465aa4eb
49a3bb02-e3bf-48a0-a8e1-8eddc99f3494
b45084bc-0e5a-484f-99f8-b1ed13ed6860
eff6cf22-9d01-4a71-8065-872df22be8a8
#!/bin/bash
FILENAME=guid.csv
HDR=$(head -1 $FILENAME)
split -l 1000 $FILENAME xyz
n=1
for f in xyz*
do
if [ $n -gt 1 ]; then
echo $HDR > Part${n}-$FILENAME
fi
Package Name Bundle Size API Style Summary
node-fetch 0.4kb promise / stream A light-weight module that brings window.fetch to Node.js
bent 1kb fp / promise / stream Functional HTTP client w/ async/await
got 48.4kb promise / stream Simplified HTTP requests
make-fetch-happen 442kb promise / stream make-fetch-happen is a Node.js library that wraps node-fetch-npm with additional features node-fetch doesn't intend to include, including HTTP Cache support, request pooling, proxies, retries, and more!
axios 11.9kb promise / stream Promise based HTTP client for the browser and node.js
unfetch 1kb promise / stream Tiny 500b fetch "barely-polyfill"
superagent 18kb chaining / promise Small progressive client-side HTTP request library, and Node.js module with the same API, sporting many high-level HTTP client features
tiny-json-http 22kb promise Minimalist HTTP client for GET and POSTing JSON payloads
needle 164kb chaining / promise The leanest and most handsome HTTP client in the Nodelands
Q4 2019 Q1 2020 Goals
O: Become healthier
kr1: Workout 5x a week 3x 5x
kr2: Run 10 minutes nonstop at 6.5 speed 5 minutes 10 minutes
kr3: Lose weight to 70 kg 77 kg 70 kg
O: Be more involved in the community
kr1: Write 1 blog post with min 1000 words / month 1 3
kr2: Speak at 1 external event 0 1
@songthamtung
songthamtung / TIMESTAMP-AddCityColumnToCompany.ts
Last active December 18, 2019 03:00
{TIMESTAMP}-AddCityColumnToCompany.ts
import {MigrationInterface, QueryRunner} from "typeorm";
export class AddCityColumnToCompany1576405409745 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query("ALTER TABLE `company` ADD `city` varchar(255) NOT NULL");
}
public async down(queryRunner: QueryRunner): Promise<any> {
await queryRunner.query("ALTER TABLE `company` DROP COLUMN `city`");
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
@Entity()
export class Company {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
firstName: string;
{
"type": "mysql",
"host": "localhost",
"port": 3306,
"username": "test",
"password": "test",
"database": "test",
"synchronize": true,
"logging": false,
"entities": [
class Ceo:
__instance = None
def getInstance():
if Ceo.__instance == None:
Ceo()
return Ceo.__instance
def __init__(self):
if Ceo.__instance != None:
version: 0.2
env:
variables:
CACHE_CONTROL: "86400"
S3_BUCKET: "{{your_url}}"
BUILD_FOLDER: "dist"
phases:
install:
runtime-versions: