Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

hello_world dengmin

🌴
On vacation
Block or report user

Report or block dengmin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gitconfig
[user]
name = min.deng
email = min.deng@fraudmetrix.cn
[push]
default = current
[color]
diff = auto
status = auto
branch = auto
[core]
@dengmin
dengmin / datetime-picker.js
Created Apr 21, 2014
带时分秒的日历,支持ie8
View datetime-picker.js
/**
* 自定义的带时分秒的时间组件 支持ie8
*/
Ext.define('Chopper.picker.DateTime', {
extend: 'Ext.picker.Date',
alias: 'widget.cdateptimeicker',
okText:'确定',
renderTpl: [
'<div id="{id}-innerEl" role="grid">',
'<div role="presentation" class="{baseCls}-header">',
@dengmin
dengmin / model.py
Created Mar 20, 2014
创建时间和修改时间的默认值
View model.py
created_on = db.Column(db.DateTime, default=db.func.now())
updated_on = db.Column(db.DateTime, default=db.func.now(), onupdate=db.func.now())
@dengmin
dengmin / settings
Created Feb 20, 2014
sublime 的配置
View settings
{
"auto_complete": true,
"caret_style": "solid",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".*",
"*.pyc"
],
View google-hosts
# Google Services
60.199.175.53 google.com
60.199.175.88
203.208.36.18 www.google.com
203.208.36.18 www.google.com.hk
203.208.36.18 www.l.google.com
203.208.36.18 www2.l.google.com
203.208.36.18 www3.l.google.com
203.208.36.18 www4.l.google.com
60.199.175.187 play.google.com
@dengmin
dengmin / sublime_liscense
Created Sep 13, 2013
sublime text 2.0.2 build 2221注册码
View sublime_liscense
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
@dengmin
dengmin / nginx
Created Apr 10, 2013
nginx srcipt
View nginx
#!/bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon
@dengmin
dengmin / gist:5353111
Created Apr 10, 2013
linux下sublime text2破解
View gist:5353111
cp sublime_text sublime_text.bak
vi sublime_text.bak
转换hex:按esc键,输入“ :%!xxd ”,回车,等待内容全变成数字
搜索4333 3342
改成4333 3242
按esc键,输入 /4333 3342回车进行搜索
You can’t perform that action at this time.