This file contains hidden or 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
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($) { | |
var o = $({}); | |
$.subscribe = function() { | |
o.on.apply(o, arguments); |
This file contains hidden or 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
(setq org-publish-project-alist | |
'( | |
("org-ianbarton" | |
;; Path to your org files. | |
:base-directory "~/devel/ianbarton/org/" | |
:base-extension "org" | |
;; Path to your Jekyll project. | |
:publishing-directory "~/devel/ianbarton/jekyll/" |
This file contains hidden or 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
/*Here is content*/ | |
@media screen | |
{ | |
#table-of-contents { | |
float: right; | |
border: 1px solid #CCC; | |
max-width: 50%; | |
overflow: auto; | |
} | |
} /* END OF @media screen */ |
This file contains hidden or 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
//需要jquery, 当然你也可以全部纯手工打造 | |
$('#text-table-of-contents').delegate('a', 'click', function() { | |
var target = $(this).attr("href"); | |
var scrollNum = $(target)[0].offsetTop; | |
$('html, body').animate({ scrollTop: scrollNum-24 }, 'slow'); | |
}) |
This file contains hidden or 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
/* From: http://www.tldp.org/LDP/lkmpg/2.6/html/x279.html */ | |
/* | |
* The following license idents are currently accepted as indicating free | |
* software modules | |
* | |
* "GPL" [GNU Public License v2 or later] | |
* "GPL v2" [GNU Public License v2] | |
* "GPL and additional rights" [GNU Public License v2 rights and more] | |
* "Dual BSD/GPL" [GNU Public License v2 |
This file contains hidden or 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 | |
KERVER=$(shell uname -r) | |
KERDIR=/usr/src/linux-headers-$(KERVER) | |
CURDIR=$(shell pwd) | |
all: | |
make -C $(KERDIR) M=$(CURDIR) modules | |
clean: | |
make -C $(KERDIR) M=$(CURDIR) clean |
This file contains hidden or 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/module.h> | |
#include <linux/kernel.h> | |
#include <linux/init.h> | |
#include <linux/moduleparam.h> /* Param header */ | |
#define DRIVER_AUTHOR "icecream <[email protected]>" | |
#define DRIVER_DESC "A sample driver" | |
/* 全局变量的声明 */ |
This file contains hidden or 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/module.h> | |
#include <linux/kernel.h> | |
#include <linux/init.h> | |
#include <linux/moduleparam.h> /* Param header */ | |
#define DRIVER_AUTHOR "icecream <[email protected]>" | |
#define DRIVER_DESC "A sample driver" | |
extern void myfun(void); //这里声明外部函数 |
This file contains hidden or 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/kernel.h> | |
#include <linux/module.h> | |
#include <linux/moduleparam.h> /* Param header */ | |
#include <linux/fs.h> | |
/* | |
* register_chrdev_region(){} | |
* alloc_chrdev_region(){} | |
* unsregister_chrdev_region(){} |
This file contains hidden or 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/kernel.h> | |
#include <linux/module.h> | |
#include <linux/moduleparam.h> /* Param header */ | |
#include <linux/fs.h> | |
/* | |
* register_chrdev_region(){} | |
* alloc_chrdev_region(){} | |
* unsregister_chrdev_region(){} |
OlderNewer