Skip to content

Instantly share code, notes, and snippets.

View flyhigher139's full-sized avatar
🖥️
working

Gevin flyhigher139

🖥️
working
View GitHub Profile
@flyhigher139
flyhigher139 / launch_sublime_from_terminal.markdown
Created October 4, 2015 14:24 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@flyhigher139
flyhigher139 / django_register.py
Created September 22, 2015 08:51
django_register.py
class RegisterView(View):
template_name = 'accounts/simple_form.html'
def get(self, request, form=None):
if not form:
form = forms.RegisterForm()
data = {'title':'Register', 'form':form, 'btn_name':'Register'}
return render(request, self.template_name, data)

Python Tutorials

中文教程

  • 简明 Python 教程

    一开始通读一遍这个很不错,是最简单明确的 Python 教程,最适合快速了解。

Shopping List

本贴不是广告!这里有更多!

  1. SD Card,至少4G
  2. MicroUSB 接口充电器,5v,1~1.2A更有保障,据说GS2的充电器挺好的
  3. 高速HDMI高清数字线V1.3
  4. Case
  5. 自供电的USB Hub集线器
@flyhigher139
flyhigher139 / api_sample.py
Last active August 29, 2015 14:07
code api sample
import requests
import json
base_url = "http://172.28.193.221:8000"
project_id = 1
code_type_id = 36
def code_api(project_id, code_type_id):
url="/api/v1/codes/project/{project_id}/code-type/{code_type_id}".format(project_id=project_id, code_type_id=code_type_id)
@flyhigher139
flyhigher139 / List of awesome list.md
Last active March 16, 2021 14:49
List of awesome list

下面是一堆awesome-*列表轮子,想看干货的童靴可以随意打开一个轮子:

  • Awesome - A curated list of awesome lists
  • awesome-all – A curated list of awesome lists of awesome frameworks, libraries and software
  • awesome-awesome by @emijrp – A curated list of awesome curated lists of many topics.
  • awesome-awesome by @erichs – A curated list of awesome curated lists! Inspired by inspiration.
  • awesome-awesome by @oyvindrobertsen – A curated list of curated lists of libraries, resources and shiny things for various languages.
  • awesome-awesomeness – A curated list of awesome awesomeness
  • awesome-awesomes – Awesome collection of awesome lists of libraries, tools, frameworks and software for any programming language
@flyhigher139
flyhigher139 / RaspberryPi_github_list.md
Created April 21, 2014 05:05
RaspberryPi resources on github
@flyhigher139
flyhigher139 / command_pattern.py
Created March 25, 2014 08:42
python command pattern
class Vehicle(object):
"""docstring for ClassName"""
def __init__(self):
self.name = 'vehicle'
def __call__(self):
print "travelling by a Vehicle"
def execute(self):
self()
@flyhigher139
flyhigher139 / crawl_geekpark.py
Last active August 29, 2015 13:57
抓取极客公园『产品观察』信息
# -*- coding: utf-8 -*-.
import urllib2
from bs4 import BeautifulSoup
base_url = 'http://www.geekpark.net'
data = {}
f = urllib2.urlopen('http://www.geekpark.net/read/seed')
src = f.read()
soup = BeautifulSoup(src)