Skip to content

Instantly share code, notes, and snippets.


潘伟洲 wzpan

View GitHub Profile
rswanderer / .eslintrc-parameter-instruction.js
Last active Feb 23, 2021
View .eslintrc-parameter-instruction.js
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js
* ESLint 配置文件优先级:
* .eslintrc.js(输出一个配置对象)
* .eslintrc.yaml
* .eslintrc.yml
wzpan /
Created Jul 31, 2013
Python - file I/O
# Filename:
poem = '''\
Programming is fun
When the work is done
if you wanna make your work also fun:
use Python!
voising / gists_to_dash_db.rb
Last active Sep 9, 2018
Connect Gists with Dash (Code Snippet Manager)
View gists_to_dash_db.rb
#!/usr/bin/env ruby
if ARGV[0].nil? || ARGV[0].match(/-h/)
puts "Usage : #{$0} github_username dash_sqlite_db char_appended_to_keyword [no_comments]"
require 'net/http'
require 'open-uri'
#require 'awesome_print'
maxogden /
Last active Dec 24, 2019
notes from hacking my kindle paperwhite


useful hacks

jakimowicz / redmine gitlab sync
Created Nov 15, 2012
simple (and dirty) sync between redmine issues and gitlab issues
View redmine gitlab sync
#!/usr/bin/env ruby
require 'faraday'
require 'json'
require 'gitlab'
module Redmine
Host = nil
APIKey = nil
erikreagan /
Created Aug 4, 2012
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

leiyue / org-html5presentation.el
Created Jul 8, 2012
org-html5presentation.el for html5slides
View org-html5presentation.el
;;; org-html5presentation.el --- HTML5 Presentation export for Org-mode
;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
;; Free Software Foundation, Inc.
;; modified by leiyue for
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.ogr
madc / ofClock.cpp
Created Jun 24, 2012
Analog Clock with openFrameworks
View ofClock.cpp
#include "ofClock.h"
//Make everything looking nice and smooth.
//Set size & position of our clock
if( ofGetHeight() < ofGetWidth() )
chuangbo /
Last active Feb 5, 2021
Python dynamic DNSPod DNS Script

替换上你的 API Token,域名ID,记录ID等参数,就可以运行了。 会在后台一直运行,每隔30秒检查一遍IP,如果修改了就更新IP。

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k -d "login_token=TOKEN"`