Skip to content

Instantly share code, notes, and snippets.

View logicmd's full-sized avatar

Kevin Tong logicmd

  • Meta
  • Seattle
View GitHub Profile
#UPDATE:2013-05-25 11:50
127.0.0.1 localhost
#SmartHosts START
#Google Services START
203.208.46.200 0.docs.google.com
203.208.46.200 0.drive.google.com
203.208.46.200 1.docs.google.com
@logicmd
logicmd / Solution.java
Created December 11, 2012 17:30
Word Search
public class Solution {
public static void main(String args[]){
System.out.println("Hello world");
new java.util.Scanner(System.in).nextLine();
}
public boolean exist(char[][] board, String word) {
// Start typing your Java solution below
// DO NOT write main() function
/*************************************************************************
Author: logicmd
Created Time: 2012/10/8 20:20:15
File Name: FlipGame.cpp
Description: 引用参数
************************************************************************/
#include <cassert>
#include <iostream>
#include <queue>
@logicmd
logicmd / Apache_config_guideline.md
Created November 6, 2012 09:50
How to configure Apache

How to configure Apache

Alias Configure

In /etc/apache2/mods-enabled/alias

Alias /vod/ "/home/tangkai/www/vod/"

<Directory "/home/tangkai/www/vod/">

Options Indexes FollowSymLinks MultiViews

@logicmd
logicmd / .zshrc
Last active February 7, 2024 23:50
zsh config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@logicmd
logicmd / zsh.md
Created November 5, 2012 02:41 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu

Installation

Install zsh and git, remove any previous installed files

sudo apt-get install zsh git
rm -r ~/.oh-my-zsh

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

/*************************************************************************
Author: logicmd
Created Time: 2012/10/8 20:20:15
File Name: FlipGame.cpp
Description: 搜索时,注意保护现场,传数组指针进来先copy一份
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>
/*************************************************************************
Author: logicmd
Created Time: 2012/11/1 11:24:29
File Name: PaidRoads.cpp
Description:
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>
/*************************************************************************
Author: logicmd
Created Time: 2012/10/17 13:16:31
File Name: RedAndBlack.cpp
Description:
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>
@logicmd
logicmd / EXTENDED_LIGHTS_OUT.cpp
Created October 8, 2012 13:24
关灯游戏(老POJ1222,新224)
/*************************************************************************
Author: logicmd
Created Time: 2012/10/8 20:20:15
File Name: EXTENDED_LIGHTS_OUT.cpp
Description: 搜索时,注意保护现场,传数组指针进来先copy一份
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>