Skip to content

Instantly share code, notes, and snippets.

View dotku's full-sized avatar
🧐
I'm busy... I may be slow to respond.

Weijing Jay Lin dotku

🧐
I'm busy... I may be slow to respond.
  • Meta
  • San Francisco, CA, USA
  • 12:24 (UTC -08:00)
View GitHub Profile
@dotku
dotku / array_map.php
Created May 22, 2016 09:30
Use array_map to prevent `Array to string conversion` notice in array_diff
<?php
$arr1 = array(
'level1' => array(
'level2' => array(
'level3' => 'hello'
)
)
);
$arr2 = array('level3'=>'world');
$needle1 = array('level3'=>'hello');
@dotku
dotku / merge-gitignore.js
Last active September 15, 2024 05:52
scripts/merge-gitignore
const fs = require("fs");
const path = require("path");
const gitignoreFiles = [
".gitignore", // Main .gitignore file
"next-app-template/.gitignore", // Add paths to other .gitignore files here
];
const outputGitignore = ".gitignore";
@dotku
dotku / load_azd_env.py
Created July 11, 2024 22:00
load azd env in python
import subprocess
import os
from pprint import pprint
def load_azd_env_values(env_name=None):
command = ["azd", "env", "get-values"]
if env_name:
command.extend(["--environment", env_name])
try:
@dotku
dotku / us_institutions.json
Created January 17, 2024 18:19 — forked from hakimelek/us_institutions.json
A List of American Colleges and Universities in JSON format
[
{
"institution": "Alabama A & M University"
},
{
"institution": "University of Alabama at Birmingham"
},
{
"institution": "Amridge University"
},
@dotku
dotku / human resource matching.md
Last active September 25, 2023 20:52
human resource usage case

Human Resouce Macthing Predict Sample

By using OpenAI, here is the sample result of canddidates.

@dotku
dotku / index.html
Created March 7, 2022 01:23
Phone Plan Picker
<header>
<div class="container">
<h1 class="my-3">Phone Plan Picker</h1>
</div>
</header>
<div class="container">
<div class="form-group mb-1">
<label>Number of Users</labels>
<input class="form-control" placeholder="" type="number" value="5" id="number-of-users"/>
<small class="form-text">how many users do you have?</small>
1: remote -> am.ik.archetype:maven-reactjs-blank-archetype (Blank Project for React.js)
2: remote -> am.ik.archetype:msgpack-rpc-jersey-blank-archetype (Blank Project for Spring Boot + Jersey)
3: remote -> am.ik.archetype:mvc-1.0-blank-archetype (MVC 1.0 Blank Project)
4: remote -> am.ik.archetype:spring-boot-blank-archetype (Blank Project for Spring Boot)
5: remote -> am.ik.archetype:spring-boot-docker-blank-archetype (Docker Blank Project for Spring Boot)
6: remote -> am.ik.archetype:spring-boot-gae-blank-archetype (GAE Blank Project for Spring Boot)
7: remote -> am.ik.archetype:spring-boot-jersey-blank-archetype (Blank Project for Spring Boot + Jersey)
8: remote -> at.chrl.archetypes:chrl-spring-sample (Archetype for Spring Vaadin Webapps)
9: remote -> br.com.address.archetypes:struts2-archetype (an archetype web 3.0 + struts2 (bootstrap + jquery) + JPA 2.1 with struts2 login system)
10: remote -> br.com.diogoko:maven-doclet-archetype (A Maven archetype to create Doclets for Javadoc)
@dotku
dotku / Prejudice.md
Last active April 22, 2021 23:22
Prejudice

偏见

这里是海关过关通道
拥有最伟大国家称号
officers在窃窃私语说道
他们以为伪装得很好
我早就看穿这些花招
种族歧视的玩笑
掩藏在面具下面的嘲笑
除了愤怒和冷笑

Stock Price Stock Hold Cost Return Total Return Note
$10 1 $10 0% -$10 Initial Investment
$8 1 $10 -20% -$10 Market Down
$8 2 $18 -11.11% -$18 Add Investment
$10 2 $18 11.11% -$18 Market Up
$10 1 $8 20% -$8 Sell
$10 0 $0 0% $10 Sell
@dotku
dotku / Chair Table.md
Last active December 21, 2020 08:56
Gaming Chairs.md
Brand Score
autonomous 2
BestOffice 1
Bosmiller 1
Respawn 1
Polar Aurora 1
Arozzi 1
Akracing Core 1
Gamdias 1