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
var cache = new Array; | |
var top_key = null; // 用于指向头部 | |
var prev_key = null; //用于指向最后一个元素 | |
var curr_cache_size = 0; //用于计数现在的缓存大小 | |
var MAX_CACHE_SIZE; | |
function show_cache_info(answer_form) { | |
var divCache = document.getElementById("divCacheContents"); | |
var curr_key = top_key; |
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
;; =================================================== | |
;; For verilog mode | |
(add-to-list 'load-path "~/.emacs.d/lisp/verilog-mode.el") | |
(require 'verilog-mode) | |
(add-to-list 'auto-mode-alist '("\\.vl$" . verilog-mode)) | |
(defun prepend-path ( my-path ) | |
(setq load-path (cons (expand-file-name my-path) load-path))) | |
(defun append-path ( my-path ) | |
(setq load-path (append load-path (list (expand-file-name my-path))))) | |
;; Look first in the directory ~/elisp for elisp files |
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
;; in powerline.el | |
(defface powerline-active1 '((t (:foreground "#030303" :background "#69b4ff" :inherit mode-line))) | |
"Powerline face 1." | |
:group 'powerline) | |
(defface powerline-active2 '((t (:foreground "#030303" :background "#ff6969" :inherit mode-line))) | |
"Powerline face 2." | |
:group 'powerline) | |
(defface powerline-inactive1 |
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
### BEGIN /etc/grub.d/05_debian_theme ### | |
insmod part_msdos | |
insmod ext2 | |
set root='(hd0,msdos5)' | |
search --no-floppy --fs-uuid --set cd4b8d8b-3265-4fa6-b8a6-9b3b74d9f849 | |
insmod png | |
if background_image /share/images/desktop-base/spacefun-grub.png; then | |
set color_normal=light-gray/black | |
set color_highlight=white/black | |
else |
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
# Rollcode.com | |
import commands | |
import os | |
import RPi.GPIO as GPIO | |
import time | |
LCD_RS = 25 | |
LCD_E = 24 | |
LCD_D4 = 23 | |
LCD_D5 = 17 |
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
# ######################################################################## | |
# mushroom website | |
# 写完这个之后不要忘记 sudo a2ensite 来激活 | |
WSGIPythonPath /home/icecream/NodeSite:/home/icecream/mushroom/lib/python2.7/sit | |
e-packages | |
# WSGIDaemonProcess site-1 processes=2 threads=25 display-name=%{GROUP} | |
# WSGIProcessGroup site-1 | |
<VirtualHost *:8080> | |
ServerName 127.0.0.1 | |
ServerAlias site-1 |
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
# -*- coding: utf-8 -*- | |
# Create your views here. | |
from __future__ import division #加载这个之后,除法就不是地板除了。 | |
import re | |
import urllib | |
import urllib2 | |
import cookielib | |
from datetime import datetime, date |
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
# -*- coding: utf-8 -*- | |
import re | |
import urllib | |
import urllib2 | |
import cookielib | |
import time | |
import getpass | |
import threading | |
from HTMLParser import HTMLParser |
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
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import re | |
import json | |
import urllib | |
import urllib2 | |
import cookielib | |
import getpass | |
from threading import Timer |
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
# -*- coding: utf-8 -*- | |
import re | |
import urllib | |
import urllib2 | |
import cookielib | |
import time | |
import getpass | |
import threading | |
from HTMLParser import HTMLParser | |
import ConfigParser |