Basic Vue Router Example using Official Vue Router plugin
Libraries used Vuejs : http://vuejs.org/ Vue-Router: https://github.com/vuejs/vue-router/
A Pen by Swapnil Bhavsar on CodePen.
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" |
Basic Vue Router Example using Official Vue Router plugin
Libraries used Vuejs : http://vuejs.org/ Vue-Router: https://github.com/vuejs/vue-router/
A Pen by Swapnil Bhavsar on CodePen.
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)
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) |