#HTML&CSS
- Front-end Formations
- CSS Cross-Country
- Journey Into Mobile
- Assembling Sass
- Assembling Sass Part 2
- Fundamentals of Design
#JavaScript
function MessageQueue(){ | |
this.pusher = new Pusher('key'); | |
this.items = []; | |
this.timeWindow = 100; // 100 ms | |
} | |
// send messages every 100ms | |
MessageQueue.prototype.cycle = function(){ | |
var self = this; |
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var Pusher = require('pusher'); | |
var pusher = new Pusher({ |
@app.route("/pusher/auth", methods=['POST']) | |
def authenticate_channel(): | |
socket_id = request.form['socket_id'] | |
channel = request.form['channel_name'] | |
auth = pusher.authenticate( | |
channel=channel_name, | |
socket_id=socket_id | |
) | |
return auth |
<head> | |
<title>Pusher Test</title> | |
<script src="//js.pusher.com/2.2/pusher.min.js"></script> | |
<script> | |
Notification.requestPermission(); | |
var pusher = new Pusher('YOUR_APP_KEY'); | |
#!/bin/bash | |
APP_PASSWORD="bar" | |
WHOSIN_URL=$1 | |
AUTH_KEY=$2 | |
local_scan() { | |
macs=( $(sudo nmap -sn 192.168.1.0/24 | grep -Eio "([0-9A-F]{2}:){5}[0-9A-F]{2}") ) | |
} |