Skip to content

Instantly share code, notes, and snippets.

View hzlzh's full-sized avatar
🎯
Focusing

hzlzh hzlzh

🎯
Focusing
View GitHub Profile
@hzlzh
hzlzh / all-users-page.php
Last active December 14, 2015 13:58
Get all the WordPress user's meta_information sort by the latest post action. (Which had at least 1 post published.)
<?php
/*
Template Name: All Authors' Page
Description: Get all the WordPress user's meta_information sort by the latest post action. (Which had at least 1 post published.)
*/
?>
<?php get_header(); ?>
<ul>
<?php
// offset -> post number | -1 means all the posts.
@hzlzh
hzlzh / funcitons.php
Created March 5, 2013 06:05
Custom user profile page's options.
<?php
add_filter('user_contactmethods','my_user_contactmethods');
function my_user_contactmethods($user_contactmethods ){
unset($user_contactmethods['aim']);
unset($user_contactmethods['yim']);
unset($user_contactmethods['jabber']);
unset($user_contactmethods['googleplus']);
$user_contactmethods ['company'] = '公司';
$user_contactmethods ['position'] = '职位';
@hzlzh
hzlzh / function.php
Last active December 14, 2015 09:09
WordPress 自定义添加/删除用户字段
<?php
/* add to functions.php of the theme */
add_filter('user_contactmethods','my_user_contactmethods');
function my_user_contactmethods($user_contactmethods ){
unset($user_contactmethods['aim']);
unset($user_contactmethods['yim']);
unset($user_contactmethods['jabber']);
$user_contactmethods ['weibo'] = '微博URL';
return $user_contactmethods ;
}
@hzlzh
hzlzh / 团队成员对前端技术的培训计划.md
Created January 17, 2013 06:12
团队成员对前端技术的培训计划

培训对象

产品经理,设计师,后台工程师等非前端工程师成员

培训目的

了解前端开发必要的知识点和技能储备,旨在专业技能的广度扩展,便于团队内部的沟通和交流

培训计划

理论 + 实践配合的方式,

  • 理论知识讲解 注:避开专业上的叙述,用实例逐个讲解
@hzlzh
hzlzh / 关于团队路由翻墙的解决方案.md
Last active March 21, 2021 07:23
关于团队路由翻墙的解决方案

服务介绍PDFDownload & View

注:不提供公司发票,仅提供英文电子发票

安装威众路由器之后,所有接入威众网络的设备无需任何设置即可自动翻墙!

家庭版

首年费用799,以后每年续费599!
最多支持8台设备同时接入

@hzlzh
hzlzh / demo-using-temp.im.html
Last active December 11, 2015 01:39
demo using temp.im.html
<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="UTF-8">
<meta content="width=device-width" name="viewport">
<title>temp.im | A placeholder images service.</title>
<meta content="placeholder,placehold,temp,images,service,HTML,CSS" name="keywords">
<meta content="A placeholder images service." name="description">
<style>
@import url(http://fonts.googleapis.com/css?family=Voces);
@hzlzh
hzlzh / geekpark-morning.md
Created December 4, 2012 02:43
[文档]极客早知道录入约定(new)

#极客早知道录入规则(new) 开始生效时间:2012.12.05

  1. 在后台录入极客阅读,选择分类 -> 早知道
  2. 添加标签:极客早知道 早知道
  3. 录入早知道单条新闻,(MarkDown)语法如下:
  4. 在文章正文的源码相应未知添加id="section-1"这样的标签,这样就能实现锚点跳转了

ITU 峰会召开,互联网自由再受威胁

@hzlzh
hzlzh / v2ex-notification.js
Created September 17, 2012 13:52
V2EX notification
/*
@Name: V2EX reply pusher on HTML5 notification API
@URL: http://hzlzh.github.com/project/v2ex-notification/
@Twitter: @hzlzh
*/
// notification close delay time
var AUTO_CLOSE_DELAY_SECONDS = 6, updated_time = '',
refresh_time = 5,
V2EX_RSS = $('.sll').val();
@hzlzh
hzlzh / gist:3664208
Created September 7, 2012 07:56
get_key
import md5
import hashlib
def get_key(api_key,api_secret,method):
""" user.register
user.degree
user.sector
user.duty
event.partner """
src = api_key+api_secret+method
m = md5.new()
@hzlzh
hzlzh / requirements.txt
Created September 6, 2012 10:13
load Diablo 3 info
bottle