- Author: tumayun ([email protected])
此为 Faye Server v1 文档,Faye Server 是使用 Faye 框架的基于 Bayeux 协议的消息系统。
客户端在 Faye Server 可以做的操作有:
此为 Faye Server v1 文档,Faye Server 是使用 Faye 框架的基于 Bayeux 协议的消息系统。
客户端在 Faye Server 可以做的操作有:
| <App Theme="Basic"> | |
| <JavaScript File="main.js" /> | |
| <ScrollView Padding="30" ScrollPositionChanged="{Say}"> | |
| <StackPanel ItemSpacing="20"> | |
| <Each Items="{people}"> | |
| <Rectangle> | |
| <Stroke Width="2" Brush="#000" /> | |
| <StackPanel ItemSpacing="5" Margin="10"> | |
| <Text Value="{name}" FontSize="20" TextColor="#000" Margin="0"/> | |
| <Text Value="{age}" TextColor="#aaa"/> |
| #!/bin/bash | |
| export PATH="/bin:/sbin:/usr/sbin:/usr/bin" | |
| OLDGW=`cat /tmp/vpn_oldgw` | |
| route del -net 1.0.1.0 netmask 255.255.255.0 | |
| route del -net 1.0.2.0 netmask 255.255.254.0 | |
| route del -net 1.0.8.0 netmask 255.255.248.0 | |
| route del -net 1.0.32.0 netmask 255.255.224.0 |
| #/bin/bash | |
| export PATH="/bin:/sbin:/usr/sbin:/usr/bin" | |
| OLDGW=192.168.0.1 | |
| route add -net 1.0.1.0 netmask 255.255.255.0 gw $OLDGW | |
| route add -net 1.0.2.0 netmask 255.255.254.0 gw $OLDGW | |
| route add -net 1.0.8.0 netmask 255.255.248.0 gw $OLDGW | |
| route add -net 1.0.32.0 netmask 255.255.224.0 gw $OLDGW | |
| route add -net 1.1.0.0 netmask 255.255.255.0 gw $OLDGW |
| func genSkillImageWithSkills(skills: [Skill]) -> UIImage { | |
| let maxWidth:CGFloat = 170 | |
| let marginTop:CGFloat = 3.0 | |
| let marginLeft: CGFloat = 6.0 | |
| let lineSpacing: CGFloat = 5.0 |
| #!/usr/bin/env bash | |
| echo 'deb http://shadowsocks.org/debian wheezy main' >> /etc/apt/sources.list | |
| # Pre-requisites | |
| sudo apt-get -y update | |
| sudo apt-get -y install pptpd | |
| sudo apt-get -y install fail2ban | |
| sudo apt-get -y install shadowsocks-libev | |
| // | |
| // DiaryVerticalTextView.swift | |
| // Diary | |
| // | |
| // Created by kevinzhow on 15/3/6. | |
| // Copyright (c) 2015年 kevinzhow. All rights reserved. | |
| // | |
| import UIKit | |
| import CoreText |
| #!/bin/sh | |
| # Flush old rules, old custom tables | |
| /sbin/iptables --flush | |
| /sbin/iptables --flush -t nat | |
| /sbin/iptables --delete-chain | |
| # Set default policies for all three default chains | |
| /sbin/iptables -P INPUT DROP | |
| /sbin/iptables -P FORWARD DROP |
| recursive_route_convert = (_value, _key = '/', _stack = ['/'], _strict=false) -> | |
| return _.flatten(_.map(_value, (__value, __key) -> | |
| __stack = _.clone(_stack) | |
| __stack.push(__key) | |
| if _.isFunction(__value) | |
| http_verb = __stack.splice(__stack.length - 2, 1)[0].toLowerCase() | |
| if http_verb not in ['options','get','head','post','put','delete','trace','connect','patch'] | |
| throw(new Error("#{http_verb} is not in the HTTP Methods white list")) | |
| else | |
| strict_url = __stack.join('/').replace(/\/+/g,'/') |