Skip to content

Instantly share code, notes, and snippets.

View forecho's full-sized avatar
🎯
Focusing

蔡正海 forecho

🎯
Focusing
View GitHub Profile
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
---
# Python 简介
@su27 and @menghan
---

What is Python?

Python: 优雅而健壮的编程语言

  • 高级

  • 易学易读易维护

var ids = document.querySelectorAll(".member_id");
var names = document.querySelectorAll(".member_name");
var output = "", length = ids.length;
for(var i=0; i<length; i++){
output += ids[i].innerHTML.slice(1,-1) + ":" + names[i].innerHTML + "\n";
}
console.log(output);
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
<?php
/*
Author: icanc <i@icanc.net>
*/
function R( $Request='/',array $Router ){
$Response = array();
@forecho
forecho / WxMockLogin.php
Created December 23, 2013 07:28
微信公众平台模拟登录
<?php
/**
*微信公众平台模拟登录
*
*实现了公众平台上的操作<br>包括 实时消息获取 快速回复 用户管理 群发消息 获取用户基本信息
*@copyright Copyright info
*@author dml
*@version version
*@package defalut
*/
@forecho
forecho / Snoopy.class.php
Created September 14, 2014 16:06
爬虫类
<?php
/*************************************************
*
* Snoopy - the PHP net client
* Author: Monte Ohrt <monte@ohrt.com>
* Copyright (c): 1999-2014, all rights reserved
* Version: 2.0.0
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@forecho
forecho / amh.sh
Created October 13, 2014 12:47
LNMP 一键安装包括控制面板
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
clear;
echo '================================================================';
echo ' [LNMP/Nginx] Amysql Host - AMH 4.2 ';
echo ' http://Amysql.com';
echo '================================================================';
@forecho
forecho / php.md
Last active September 28, 2021 07:06
PHP程序员简历模板
@forecho
forecho / 0_reuse_code.js
Last active August 29, 2015 14:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@forecho
forecho / Security.php
Last active August 29, 2015 14:22
创建一个随机字符串
<?php
/**
* author : forecho <caizhenghai@gmail.com>
* createTime : 2015/6/10 10:27
* description:
*/
class Security
{
/**