##Angular directives for Flat UI
- checkboxes
- radio buttons
- switches
Check the JSFiddle
###Example
##Angular directives for Flat UI
Check the JSFiddle
###Example
import sys | |
from gevent import server | |
from multiprocessing import Process, current_process, cpu_count | |
def note(format, *args): | |
sys.stderr.write('[%s]\t%s\n' % (current_process().name, format%args)) | |
def echo(socket, address): | |
print 'New connection from %s:%s' % address |
# -*- coding: utf-8 -*- | |
# Author: Douglas Creager <dcreager@dcreager.net> | |
# This file is placed into the public domain. | |
# Calculates the current version number. If possible, this is the | |
# output of “git describe”, modified to conform to the versioning | |
# scheme that setuptools uses. If “git describe” returns an error | |
# (most likely because we're in an unpacked copy of a release tarball, | |
# rather than in a git working copy), then we fall back on reading the | |
# contents of the RELEASE-VERSION file. |
//scalaVersion 2.9.2 | |
//akkaVersion 2.0.1 | |
import akka.actor._ | |
import java.net.InetSocketAddress | |
import akka.util.ByteString | |
import java.net.Socket | |
import akka.actor.IO.SocketHandle | |
import akka.actor.IO._ | |
import akka.routing.RoundRobinRouter |
import akka.actor.IO._ | |
import akka.actor.{Props, IO, IOManager, Actor, ActorSystem} | |
import akka.event.Logging | |
import akka.util.ByteString | |
import java.net.InetSocketAddress | |
class TCPEchoServer(port: Int) extends Actor { | |
val log = Logging(context.system, this) | |
val state = IterateeRef.Map.async[IO.Handle]()(context.dispatcher) |
Reference
pf's note (too old)
暂时没有博客,就放到这里了。
Macvtap的代码没有去深读,从代码头上的注释来看,macvtap主要是在macvlan的基础上封装了一个char设备,维护一个队列,因此网络相关的主要逻辑应该在macvlan里。
+--------------------------------------------------------------------------------------------------------------------------+
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} |
--- openvpn-2.2.2.orig/options.c 2011-12-14 00:58:56.000000000 +0800 | |
+++ openvpn-2.2.2/options.c 2012-12-21 10:44:57.683130505 +0800 | |
@@ -54,6 +54,10 @@ | |
#include "memdbg.h" | |
+extern char* _socket_obfs_salt; | |
+extern int _socket_obfs_salt_len; | |
+extern int _socket_obfs_padlen; | |
+ |