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 Timothy Olaleke on CodePen.
package supercat1; | |
import java.awt.*; | |
import java.awt.event.*; | |
import javax.swing.*; // Using Swing components and containers | |
import java.util.Timer | |
// A Swing application extends javax.swing.JFrame | |
public class supercat1 extends JFrame { | |
private JTextField tfCount; | |
// Use Swing's JTextField instead of AWT's TextField |
<div id="vueApp"> | |
<header> | |
<div class="wrapper"> | |
<h1>Vue-Resource</h1> | |
<a href="#" class="btn" @click.stop="loadUsers">Load Users</a> | |
</div> | |
</header> | |
<div class="posts"> |
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 Timothy Olaleke on CodePen.
<script type="text/x-template" id="dropdown-template"> | |
<div class="dropdown" v-show="show" v-bind:class="originClass" transition="dropdown"> | |
<slot>No dropdown content!</slot> | |
</div> | |
</script> | |
<script type="text/x-template" id="datagrid-template"> | |
<table id="{{ id }}" class="table-striped datagrid"> | |
<thead> | |
<tr> |
import weather | |
import smtp | |
''' | |
Send a greeting email to our customer email list | |
with the daily weather forecast and schedule | |
''' | |
def get_emails(): | |
# Reading emails from a file |
''' | |
Add CORS headers for tastypie APIs | |
Usage: | |
class MyModelResource(CORSModelResource): | |
... | |
class MyResource(CORSResource): | |
... | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Vue Axios Example</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.4.2/vue.js"></script> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<ul> |
kill -9 $(lsof -i TCP:8000 | grep LISTEN | awk '{print $2}') |
var db = firebase.firestore(); | |
var content = require("./sourceData.json"); | |
content && | |
Object.keys(content).forEach(contentKey => { | |
const nestedContent = content[contentKey]; | |
if (typeof nestedContent === "object") { | |
Object.keys(nestedContent).forEach(docTitle => { | |
firebase | |
.firestore() |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My Web Page</title> | |
<style> | |
.sizeb { | |
font-size: 50px; | |
} | |
.colory { |