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
/** | |
* Lined paper that follows the text | |
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10 | |
*/ | |
/* Just decorative */ | |
padding: 20px; | |
/* The font. Try changing font-size and see how the lines |
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
* {margin: 0; padding: 0;} | |
body { | |
background:#e9edee; | |
} | |
#btn { | |
width:103px; | |
height: 35px; |
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
* | |
{ | |
margin:0; | |
padding:0; | |
} | |
body{ | |
width:600px; | |
margin:0 auto; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="news"> | |
<img src="http://aliceui.com/wp-content/uploads/2011/12/aliceui-sl-gradient.png"/> | |
<p>Some text</p> | |
<div class="clear"></div> | |
</div> |
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
<div id="world" class="world"> | |
<h1 class="ground">ground</h1> | |
<ul class="building block-1">Building | |
<li class="top">roof</li> | |
<li class="west">west wall</li> | |
<li class="north">north wall</li> | |
<li class="east">east wall</li> |
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
var http = require('http'); | |
var net = require('net'); | |
var url = require('url'); | |
// Create an HTTP tunneling proxy | |
var proxy = http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('okay'); | |
}); | |
proxy.on('connect', function(req, cltSocket, head) { |
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
//jquery useage | |
var element = document.getElementById("wem"); | |
var element = $('#wem'); | |
var elements = document.getElementByClassName('bar'); | |
var element = $('.bar'); | |
var elements = document.getElementByTagName('p'); | |
var elements = $('p'); |
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
// | |
// Based on github.com/cloudhead/http-console | |
// An attempt at a simplified readline example. | |
// | |
var readline = require('readline') | |
, util = require('util') | |
, rl = readline.createInterface(process.stdin, process.stdout, completer) | |
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
/** | |
* ☆★☆★☆★☆★☆★☆JavaScript草稿集☆★☆★☆★☆★☆★☆ | |
* | |
* By hustskyking | |
*/ | |
//★JQuery★<!--<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>//--> | |
//★★★★★★★★公共部分★★★★★★★★ | |
function printf(obj) { |
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
#! /bin/bash | |
#mutt 最好用的电子邮件程序 | |
sudo apt-get -y install msmtp-mta msmtp mutt getmail4 procmail lynx wv w3m | |
mkdir -p ~/Mail | |
(cd ~/Mail && touch inbox sent postponed) | |
touch ~/.msmtprc | |
chmod -v 600 ~/.msmtprc | |
chmod -v 700 ~/.getmail |
OlderNewer