Skip to content

Instantly share code, notes, and snippets.

View WeiChienHsu's full-sized avatar
🎯
Focusing

Wei-Chien Hsu WeiChienHsu

🎯
Focusing
View GitHub Profile
@WeiChienHsu
WeiChienHsu / Permutation.java
Created February 2, 2019 15:52
Permutation Problem
import java.util.*;
class Permutation {
public static void main(String[] args) {
String[] dayHoursList = new String[]{"4", "4", "4", "4", "4", "?", "?"};
int maxDayHours = 8;
int weekHours = 28;
List<String> results = getPermutation(dayHoursList, maxDayHours, weekHours);
for(int i = 0; i < results.size(); i++) {
System.out.println(results.get(i));
@vasanthk
vasanthk / System Design.md
Last active May 3, 2024 16:37
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@rxaviers
rxaviers / gist:7360908
Last active May 3, 2024 16:14
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@diorahman
diorahman / client.html
Created December 26, 2011 03:34
Ajax, call jQuery POST to node.js expressjs
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');