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
import akka.actor._ | |
import scala.concurrent.duration._ | |
import scala.collection.immutable | |
// received events | |
case class SetTarget(ref: ActorRef) | |
case class Queue(obj: Any) | |
case object Flush | |
// sent events | |
case class Batch(obj: immutable.Seq[Any]) |
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" 一般设定 | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" 设定主题 | |
colo evening | |
" 设定默认解码 | |
set fenc=utf-8 | |
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936 |
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
obj-m := hello.o | |
PWD := $(shell pwd) | |
KDIR=/usr/src/linux-headers-2.6.35-22-generic | |
default: | |
make -C $(KDIR) M=$(PWD) modules |
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
#include<linux/init.h> | |
#include<linux/module.h> | |
static int hello_init() | |
{ | |
printk("\nhello world\n"); | |
return 0; | |
} | |
module_init(hello_init); |
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
#include<linux/init.h> | |
#include<linux/module.h> | |
static int hello_exit() | |
{ | |
printk("Goodbye world\n"); | |
} | |
module_exit(hello_exit); |
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
obj-m := hello.o | |
hello-objs := h1.o h2.o | |
PWD := $(shell pwd) | |
KDIR=/usr/src/linux-headers-2.6.35-22-generic | |
default: | |
make -C $(KDIR) M=$(PWD) modules |
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
// WordPress API | |
‘wp.getUsersBlogs’ => ‘this:wp_getUsersBlogs’, | |
‘wp.getPage’ => ‘this:wp_getPage’, | |
‘wp.getPages’ => ‘this:wp_getPages’, | |
‘wp.newPage’ => ‘this:wp_newPage’, |
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
<?php | |
$xmlrpcurl='http://luoying.tk/xmlrpc.php'; | |
$blogid='1'; | |
$username='admin'; | |
$password='pass'; | |
$postTitle='标题'; | |
$postContent='正文内容'; | |
require('class-IXR.php'); //这里要引用/wordpress/wp-includes/class-IXR.php | |
$client = new IXR_Client($xmlrpcurl); |
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
#include<linux/init.h> | |
#include<linux/module.h> | |
static int hello_init() | |
{ | |
printk("\nhello world\n"); | |
return 0; | |
} | |
static int hello_exit() | |
{ |
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
#include <linux/kernel.h> | |
#include <linux/module.h> | |
#include <linux/fs.h> | |
#include <linux/errno.h> | |
#include <linux/uaccess.h> | |
#include <linux/init.h> | |
#define RWBUF_SIZE 2048 | |
#define DEVICE_NAME "ChrDev" | |
#define RWBUF_CLEAR 0x909090 |
OlderNewer