Skip to content

Instantly share code, notes, and snippets.

View XueshiQiao's full-sized avatar
🕶️
WebRTC

xueshi XueshiQiao

🕶️
WebRTC
View GitHub Profile
@XueshiQiao
XueshiQiao / PrintThreadIds.java
Created October 19, 2012 01:59 — forked from rednaxelafx/PrintThreadIds.java
find out the correspondence between the tid/nid of Java threads as shown from jstack/JMX, on HotSpot/Linux
package fx.jvm.hotspot.tools;
import java.util.List;
import sun.jvm.hotspot.tools.Tool;
public class PrintThreadIds extends Tool {
public static void main(String[] args) {
PrintThreadIds tool = new PrintThreadIds();
tool.start(args);
@XueshiQiao
XueshiQiao / LICENSE
Created April 27, 2013 07:45 — forked from wezm/LICENSE
Copyright (C) 2011 by TrikeApps Pty Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import shutil
import json
import getopt
import urllib2
from urllib import urlencode
//
// UIView+DEFrameAdditions.h
//
// Copyright (c) 2011-2013 Double Encore, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
// Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the distribution. Neither the name of the Double Encore Inc. nor the names of its
// contributors may be used to endorse or promote products derived from this software without specific prior written permission.
#!/bin/bash
#
# (Above line comes out when placing in Xcode scheme)
#
API_TOKEN=<TestFlight API token here>
TEAM_TOKEN=<TestFlight team token here>
SIGNING_IDENTITY="iPhone Distribution: Development Seed"
PROVISIONING_PROFILE="${HOME}/Library/MobileDevice/Provisioning Profiles/MapBox Ad Hoc.mobileprovision"
#LOG="/tmp/testflight.log"
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import json
import getopt
import urllib2
import commands
import string
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import json
import getopt
import urllib2
import commands
import string
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=690800,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=576x360
0600/0600.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1460800,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=576x360
1500/1500.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=290400,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=416x260
0200/0200.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=580800,CODECS="avc1.66.30,mp4a.40.2",RESOLUTION=448x280
0400/0400.m3u8
@XueshiQiao
XueshiQiao / gist:5779128
Last active December 18, 2015 11:59
按提交次数显示一个Git repo提交人
git log | grep "Author" | cut -d" " -f3 | sort | uniq -c | sort -r
@XueshiQiao
XueshiQiao / gist:5780008
Created June 14, 2013 07:06
iOS高效、优雅遍历Dictionary
[dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id val, BOOL
*stop) {
//NSLog(@"%@, %@", key, val);
}];