Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

潘伟洲 wzpan

🎯
Focusing
View GitHub Profile
@rswanderer
rswanderer / .eslintrc-parameter-instruction.js
Last active Feb 23, 2021
ESLint配置文件.eslintrc参数说明
View .eslintrc-parameter-instruction.js
/*
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js
*/
/*
* ESLint 配置文件优先级:
* .eslintrc.js(输出一个配置对象)
* .eslintrc.yaml
* .eslintrc.yml
@wzpan
wzpan / file_io.py
Created Jul 31, 2013
Python - file I/O
View file_io.py
#!/usr/bin/python
# Filename: file_io.py
poem = '''\
Programming is fun
When the work is done
if you wanna make your work also fun:
use Python!
'''
@voising
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]"
exit
end
require 'net/http'
require 'open-uri'
#require 'awesome_print'
@maxogden
maxogden / readme.md
Last active Dec 24, 2019
notes from hacking my kindle paperwhite
View readme.md

outline

useful hacks

@jakimowicz
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
erikreagan / mac-apps.md
Created Aug 4, 2012
Mac developer must-haves
View mac-apps.md

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
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 https://code.google.com/p/html5slides/
;; Author: Carsten Dominik <carsten at orgmode dot org>
;; Keywords: outlines, hypermedia, calendar, wp
;; Homepage: http://orgmode.ogr
@madc
madc / ofClock.cpp
Created Jun 24, 2012
Analog Clock with openFrameworks
View ofClock.cpp
#include "ofClock.h"
ofClock::ofClock()
{
//Make everything looking nice and smooth.
ofSetCircleResolution(100);
ofEnableSmoothing();
//Set size & position of our clock
if( ofGetHeight() < ofGetWidth() )
@chuangbo
chuangbo / README.md
Last active Feb 5, 2021
Python dynamic DNSPod DNS Script
View README.md

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

获取 API Token 的方式

获得 domain_id 可以用 curl

curl -k https://dnsapi.cn/Domain.List -d "login_token=TOKEN"`