Skip to content

Instantly share code, notes, and snippets.

View jackqt's full-sized avatar

Qingtian jackqt

  • N/A
  • Hangzhou, China
View GitHub Profile
@jackqt
jackqt / jackqt.zsh-theme
Created January 5, 2018 02:51
Custome zsh theme
# ------------------------------------------------------------------------
# Jack Li oh-my-zsh theme
# (Needs Git and SVN plugin for current_branch method)
# ------------------------------------------------------------------------
# Color shortcuts
RED=$fg[red]
YELLOW=$fg[yellow]
GREEN=$fg[green]
WHITE=$fg[white]
@jackqt
jackqt / high.js
Last active April 11, 2017 05:00
Highg一下!
javascript:(function()%7Bfunction%20c()%7Bvar%20e%3Ddocument.createElement(%22link%22)%3Be.setAttribute(%22type%22,%22text/css%22)%3Be.setAttribute(%22rel%22,%22stylesheet%22)%3Be.setAttribute(%22href%22,f)%3Be.setAttribute(%22class%22,l)%3Bdocument.body.appendChild(e)%7Dfunction%20h()%7Bvar%20e%3Ddocument.getElementsByClassName(l)%3Bfor(var%20t%3D0%3Bt%3Ce.length%3Bt%2B%2B)%7Bdocument.body.removeChild(e%5Bt%5D)%7D%7Dfunction%20p()%7Bvar%20e%3Ddocument.createElement(%22div%22)%3Be.setAttribute(%22class%22,a)%3Bdocument.body.appendChild(e)%3BsetTimeout(function()%7Bdocument.body.removeChild(e)%7D,100)%7Dfunction%20d(e)%7Breturn%7Bheight:e.offsetHeight,width:e.offsetWidth%7D%7Dfunction%20v(i)%7Bvar%20s%3Dd(i)%3Breturn%20s.height%3Ee%26%26s.height%3Cn%26%26s.width%3Et%26%26s.width%3Cr%7Dfunction%20m(e)%7Bvar%20t%3De%3Bvar%20n%3D0%3Bwhile(!!t)%7Bn%2B%3Dt.offsetTop%3Bt%3Dt.offsetParent%7Dreturn%20n%7Dfunction%20g()%7Bvar%20e%3Ddocument.documentElement%3Bif(!!window.innerWidth)%7Breturn%20window.innerHeight%7Delse%
@jackqt
jackqt / kickass.js
Last active October 21, 2022 14:36
Kick Ass
javascript:var%20KICKASSVERSION='2.0';var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='//hi.kickassapp.com/kickass.js';void(0);
@jackqt
jackqt / codegen.xml
Created November 21, 2016 04:52
Usage of swagger-codegen-maven-plugin
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<org.springframework.cloud.version>1.2.1.RELEASE</org.springframework.cloud.version>
<org.springframework.boot.version>1.4.1.RELEASE</org.springframework.boot.version>
<java.version>1.7</java.version>
@jackqt
jackqt / OutlookCalendar.py
Created April 30, 2015 10:34
Fetch calendar information of outlook from win32com API
from win32com.client import Dispatch
from tabulate import tabulate
import datetime
import pdb
OUTLOOK_FORMAT = '%m/%d/%Y %H:%M'
outlook = Dispatch("Outlook.Application")
ns = outlook.GetNamespace("MAPI")
appointments = ns.GetDefaultFolder(9).Items