I hereby claim:
- I am bahaddinyasar on github.
- I am bahaddinyasar (https://keybase.io/bahaddinyasar) on keybase.
- I have a public key ASB-W7TUPuB9DnAYqnQewE1sqXJWdt2CykntvHJBqnUCmAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| export $(grep -v '^#' .env | xargs) |
| func timeTrack(start time.Time, name string) { | |
| elapsed := time.Since(start) | |
| log.Printf("%s took %s", name, elapsed) | |
| } | |
| func factorial(n *big.Int) (result *big.Int) { | |
| defer timeTrack(time.Now(), "factorial") | |
| // ... do some things, maybe even return under some condition | |
| return n | |
| } |
git discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
| package main | |
| import "fmt" | |
| import "os" | |
| type point struct { | |
| x, y int | |
| } | |
| func main() { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| def fibonacci_iterative(n): | |
| if n == 0: | |
| return 0 | |
| x = 0 | |
| y = 1 | |
| for i in range(1, n): | |
| z = (x + y) | |
| (x, y) = (y, z) |
| CREATE TABLE backup_table LIKE original_table; | |
| INSERT INTO backup_table SELECT * FROM original_table; |
| .note { | |
| position:relative; | |
| width:30%; | |
| padding:1em 1.5em; | |
| margin:2em auto; | |
| color:#fff; | |
| background:#97C02F; | |
| overflow:hidden; | |
| } |
| #doc ::-webkit-scrollbar{width:9px;height:9px;} | |
| #doc ::-webkit-scrollbar-button:start:decrement,#doc ::-webkit-scrollbar-button:end:increment{display:block;height:0;background-color:transparent;} | |
| #doc ::-webkit-scrollbar-track-piece{background-color:#FAFAFA;-webkit-border-radius:0;-webkit-border-bottom-right-radius:8px;-webkit-border-bottom-left-radius:8px;} | |
| #doc ::-webkit-scrollbar-thumb:vertical{height:50px;background-color:#999;-webkit-border-radius:8px;} | |
| #doc ::-webkit-scrollbar-thumb:horizontal{width:50px;background-color:#999;-webkit-border-radius:8px;} | |
| /* | |
| Ref: http://stackoverflow.com/questions/7713599/styling-an-inner-scrollbar-like-the-twitter-conversation-interface/7713784#7713784 | |
| */ |