Skip to content

Instantly share code, notes, and snippets.

View julianvmodesto's full-sized avatar
frozen

Julian V. Modesto julianvmodesto

frozen
View GitHub Profile
// https://leetcode.com/problems/valid-parenthesis-string/
// time O(n)
// space O(n)
func checkValidString(s string) bool {
left := make([]int, 0)
stars := make([]int, 0)
for i, c := range s {
switch c {
@julianvmodesto
julianvmodesto / tictactoe.go
Created March 14, 2020 03:05
tic tac toe in go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
)
func main() {
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strings"
"time"
@julianvmodesto
julianvmodesto / setup
Last active January 25, 2017 16:35
setup
# brew
brew install ripgrep
brew install fzf
brew install neovim/neovim/neovim
# no brew
https://github.com/creationix/nvm
https://github.com/moovweb/gvm
@julianvmodesto
julianvmodesto / git
Last active January 25, 2017 16:28
effective git
git stash
# show latest stashed files
git stash show
# show latest stashed diff
git stash show -p
git stash show --patch
env: flex
runtime: custom
service: my-service
network:
name: my-net-auto
automatic_scaling:
@julianvmodesto
julianvmodesto / keybase.md
Created August 18, 2016 17:45
keybase proof

Keybase proof

I hereby claim:

  • I am julianvmodesto on github.
  • I am julianvmodesto (https://keybase.io/julianvmodesto) on keybase.
  • I have a public key whose fingerprint is 6B8A A485 E170 E3CD 604B 0301 A635 D3CD BB9A F852

To claim this, I am signing this object: