Skip to content

Instantly share code, notes, and snippets.

View godwhoa's full-sized avatar
🙃
no time

Joseph Daniel godwhoa

🙃
no time
  • India
  • 23:43 (UTC +05:30)
View GitHub Profile
package main
import (
"crypto/tls"
"fmt"
"gopkg.in/sorcix/irc.v1"
"net"
)
var (
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !plan9
package main
import (
"log"
@godwhoa
godwhoa / basic-vue-router-example.markdown
Created January 20, 2017 05:57
Basic Vue Router Example
@godwhoa
godwhoa / notes.md
Created February 6, 2019 07:24
Lift scala
scala> val pf: PartialFunction[Int, Boolean] = { case i if i > 0 => i % 2 == 0}
pf: PartialFunction[Int,Boolean] = <function1>

scala> pf
res0: PartialFunction[Int,Boolean] = <function1>

scala> pf(-1)
scala.MatchError: -1 (of class java.lang.Integer)
@godwhoa
godwhoa / main.py
Last active May 17, 2019 11:18 — forked from sairoopb/main.py
def get_html_array(js_url):
response = requests.get(js_url)
# Apply capture logic
start = response.text.find("var html = [") + len("var html = [") - 1 # this will get us the index of [
end = response.text.find(".join('\n')")
raw_js_array = response.text[start:end]
# really not sure whats going on down here..
json_file = []
for data in range(result+12,end-1):
json_file.append(data)