Skip to content

Instantly share code, notes, and snippets.

View lijinma's full-sized avatar

金马 lijinma

View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Drag</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>
<style>
.b_step33 .block_right .list li { float:left; display:block; line-height:140%; margin-bottom:2px; }
.b_step33 .block_right .list li.dot { height:36px; padding:5px 8px; background:#F5F6FA; }
@lijinma
lijinma / addvh.sh
Last active August 29, 2015 13:57
Auto add virtual host for Apache
#! /bin/bash
httpd_conf_file='/etc/apache2/httpd.conf';
hosts_file='/etc/hosts';
server_name='';
function check()
{
if [ "$httpd_conf_file" = "" ]; then
echo "You must config the httpd_conf_file!";
/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open" },
{ "keys": ["super+shift+t"], "command": "reopen_last_file" },
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
var obj1 =
[
{
userid: 'james',
status: 'open',
open_count: 2
},
{