This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select ref:select on:change="doChange(event)"> | |
<option value="{{item.key}}">{{item.title}}</option> | |
<option value="two">Two</option> | |
<option value="three">Three</option> | |
</select> | |
<div>Selected Value: {{value}}</div> | |
<script> | |
export default { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!Doctype html> | |
<html lang="en"> | |
<head> | |
</head> | |
<body> | |
<h1>Socket Test</h2> | |
<script src="http://localhost/socket.io/socket.io.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Monitor contstructor. | |
* | |
* @param {Object} io the SocketIO object | |
* @param {Object} bio BidIO object | |
* @param {Object} options monitor options | |
* @api public | |
*/ | |
function Monitor (io, bio, options) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enyo.kind({ | |
name: "LeafletMap", | |
classes: "leaflet-map", | |
published: { | |
center: { lat: 33.7489, lng: -84.3881}, | |
showMarker: true, | |
zoom: 17, | |
// point imagePath to your leaflet images folder | |
imagePath: "lib/extra/leaflet/images/", | |
cloudmadeApiKey: "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express') | |
, http = require('http') | |
, connect = require('connect') | |
, io = require('socket.io'); | |
var app = express(); | |
/* NOTE: We'll need to refer to the sessionStore container later. To | |
* accomplish this, we'll create our own and pass it to Express | |
* rather than letting it create its own. */ | |
var sessionStore = new connect.session.MemoryStore(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
// Assuming this is the namespace root for myatc | |
var myatc = {}; | |
// then somewhere global | |
myatc.saveCar = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
// Assuming this is the namespace root for myatc | |
var myatc = {}; | |
// then somewhere global | |
myatc.saveCar = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// con solo prototype extend | |
var Persona = Class.extend('Persona', { | |
saludar: function () { | |
return 'my method'; | |
} | |
}) | |
var adulto = Persona(); | |
console.log(adulto.saludar()); // my method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BFS</title> | |
</head> | |
<body> | |
<div> | |
<em> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BFS</title> | |
</head> | |
<body> | |
<div> | |
<em> |