Skip to content

Instantly share code, notes, and snippets.

View meetwudi's full-sized avatar

Di Wu meetwudi

View GitHub Profile
@meetwudi
meetwudi / orgorg.txt
Last active August 23, 2026 00:34
OrgOrg GTM Partner Playbook
ORGORG GTM PARTNER
ROLE
You are an experienced go-to-market partner working on Di Wu's behalf with Chris Ling and the OrgOrg team.
OrgOrg is an established business with a live product, a public website, pricing, users, a team, and an existing point of view. Do not treat this as an idea-stage exercise. Do not ask Chris to invent a business, restate public facts, or work through a generic questionnaire. Your job is to help OrgOrg narrow, sharpen, and execute its customer focus with less cognitive load.
The first response must contain exactly these two parts and nothing else:
# Privacy Policy for Cognifix
**Effective Date: 03/15/2025**
## Introduction
This Privacy Policy explains how Cognifix ("we", "our", or "us") handles user data. We are committed to protecting your privacy and being transparent about our practices.
## Data Collection
import { MigrationInterface, QueryRunner } from "typeorm";
export class InitSpace1724280148284 implements MigrationInterface {
name = 'InitSpace1724280148284'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "coaching_categories" DROP CONSTRAINT "FK_b82341e647d8fb6f634382a7036"`);
await queryRunner.query(`ALTER TABLE "visited_shared_views" DROP CONSTRAINT "fk_saved_view"`);
await queryRunner.query(`ALTER TABLE "employee_coaching_categories" DROP CONSTRAINT "FK_4163b1e02c8205c1d3e6b423ee6"`);
await queryRunner.query(`ALTER TABLE "approval"."approval_request_action_errors" DROP CONSTRAINT "fk_approval_request_id"`);
@meetwudi
meetwudi / README.md
Last active August 4, 2017 20:58
Roundtable - React & Redux

We use CodeSandbox for this interactive session.

JSX

JSX is just syntax sugar for some React JavaScript API. For example, the following JSX code ...

<DashboardUnit data-index="2">
 Scores
def sign_in(user_credential, role):
"""Sign in an user.
:param user_credential: User's credential
:param role:
"""
{
init: function(elevators, floors) {
function Controller (elevator) {
var currentController = this;
this.elevator = elevator;
elevator.on('floor_button_pressed', function (floorNum) {
currentController.goToFloor(floorNum);
});
}
{
init: function(elevators, floors) {
function Tour (pickupRequest, direction, startFloorNum) {
this.pickingUp = !!pickupRequest;
this.pickupRequest = pickupRequest;
this.direction = direction; // either 'up' or 'down'
this.startFloorNum = startFloorNum;
}
function Controller (elevator) {
@meetwudi
meetwudi / gist:3d1f98981e52a387015b
Created November 22, 2015 22:54
runtime-error.txt
++ timestamp
+++ date +%s.%N
++ echo 1448231881.012023753
+ scriptstarttime=1448231881.012023753
+ readonly INTERNAL_ERROR_CODE=123
+ INTERNAL_ERROR_CODE=123
+ exist_file_or_die /mnt/prog_joined.js
+ local file=/mnt/prog_joined.js
+ '[' '!' -f /mnt/prog_joined.js ']'
+ exist_file_or_die /mnt/data.in
@meetwudi
meetwudi / vim-bullet-points.md
Last active November 23, 2015 07:00
Vim Bullet Points

Command Mode

  • 'a' - append after the cursor
  • 'A' - append at the end of current line

Commands

  • :vimgrep can help you to search through multiple files. It also tells you where you are now in the search. You can use :copen to see all matches.
  • :vnew Open an empty buffer as a vertical split
  • :%s/old/new/gc Replace all old with new throughout file with confirmations
@meetwudi
meetwudi / main.yml
Created October 14, 2015 05:13 — forked from rothgar/main.yml
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']