This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <algorithm> | |
#include <vector> | |
struct Card | |
{ | |
operator int() const | |
{ | |
switch(num) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library IEEE; | |
use IEEE.STD_LOGIC_1164.all; | |
entity D_FF is | |
port( | |
D: in Bit; | |
clk: in std_logic; | |
Q: out Bit | |
); | |
end D_FF; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void String::swap(String & rhs) | |
{ | |
char * tmp_str = str_; | |
int tmp_size = size_, | |
tmp_cap = capacity_ ; | |
str_ = rhs.str_; | |
size_ = rhs.size_; | |
capacity_ = rhs.capacity_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isEmptyObj = (obj) => !Object.keys(obj).length; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" # Autocommands | |
" | |
autocmd LocationChange disp\.cc/ -js modes.set(modes.PASS_THROUGH) | |
autocmd LocationChange (mail|www)\.google\.com/(calendar|mail|reader)/ -js modes.set(modes.PASS_THROUGH) | |
autocmd LocationChange docs\.google\.com/(document|present|spreadsheet) -js modes.set(modes.PASS_THROUGH) | |
"autocmd LocationChange mail\.yahoo\.com/ -js modes.set(modes.PASS_THROUGH) | |
"autocmd LocationChange github\.com/ -js modes.set(modes.PASS_THROUGH) | |
"autocmd LocationChange bitbucket\.org/ -js modes.set(modes.PASS_THROUGH) | |
autocmd LocationChange quip\.com/ -js modes.set(modes.PASS_THROUGH) |
This list would list fancy website I found.
—
2017/02/17 : cute border
2016/12/21 : illusion effect
console.log()
console.info()
console.warn()
console.error()
Log Wrapper:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Press up-arrow for previous matching command | |
"\e[A":history-search-backward | |
# Press down-arrow for next matching command | |
"\e[B":history-search-forward | |
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving | |
"\e[1;5C": forward-word | |
"\e[1;5D": backward-word | |
"\e[5C": forward-word | |
"\e[5D": backward-word |