Skip to content

Instantly share code, notes, and snippets.

View z4yx's full-sized avatar
☢️

Yuxiang Zhang z4yx

☢️
View GitHub Profile
@z4yx
z4yx / git-completion.tcsh
Last active October 9, 2021 08:23 — forked from apbarrero/git-completion.tcsh
Source this file in your .tcshrc to get git command completion. Original source is http://gtirtha.wordpress.com/2010/05/14/git-autocomplete/ but WordPress's WSYIWYG editor messed it up and I cleaned it up.
# Source this script in tcsh to setup shell completions
# for git. Completions are activated by typing or Control-D
# in the shell after entering a partial command.
#
# Usage:
# source git-completion.tcsh (e.g. in ~/.cshrc)
#
# Supported completions:
# git (lists git commands)
# git help (lists git commands)
-- =================================================
--
-- =================================================
proto = Proto("tible","TI BLE CC2540Dongle")
-- =================================================
-- Read reserve other protocol fileds
-- =================================================
usb_transtype_f = Field.new("usb.transfer_type") -- BULK=0x03
usb_datalen_f = Field.new("usb.data_len")
@z4yx
z4yx / tcget.py
Created February 23, 2014 12:47 — forked from cou929/tcget.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
tcget.py
Kosei Moriyama <cou929@gmail.com>
'''
import BeautifulSoup