A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
package seq; | |
public class Employee { | |
public String name; | |
public int age; | |
} |
# toolchain: gcc-arm-none-eabi(Linux), pleas use newlib_stubs.c | |
OBJS += newlib_stubs.o | |
CFLAGS += -ffunction-sections -fdata-sections -fno-builtin | |
LDFLAGS += --specs=nano.specs -lc -lnosys | |
# toolchain: keil MDK(Windows), please use redirect_file_stream.c | |
# Please check 'USE MicroLIB' |
// Sample file using the Google C++ coding standard. | |
// | |
// http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml | |
// | |
// General rules: | |
// - Indents are two spaces. No tabs should be used anywhere. | |
// - Each line must be at most 80 characters long. | |
// - Comments can be // or /* but // is most commonly used. | |
// - File names should be lower_case.c or lower-case.c | |
// |
:: 启动后需要保留窗口, 关闭窗口则结束进程 | |
aria2c --conf-path=aria2.conf -D |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: aria2 | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: aria2c init script. |
<?php | |
/* ----------------本探针基于YaHei.net探针------------------- */ | |
error_reporting(0); //抑制所有错误信息 | |
@header("content-Type: text/html; charset=utf-8"); //语言强制 | |
ob_start(); | |
$title = "雅黑PHP探针"; | |
$version = "v0.4.2"; //版本号 | |
define('HTTP_HOST', preg_replace('~^www\.~i', '', $_SERVER['HTTP_HOST'])); |
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { |
var this_title=document.title; | |
document.addEventListener('visibilitychange', function() { | |
document.title = document.hidden ? this_title+":你看不到我~": this_title; | |
}); |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Time-stamp: < 1.py 2016-11-08 21:49:20 > | |
""" | |
递归抓取某个网站下的所有链接,结果输出到一个文件 | |
""" | |
import requests | |
import time | |
import sys |