This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket, ssl, json, struct | |
import binascii | |
def Payload(alert='', badge=1, data={}): | |
payload = { | |
'aps': { | |
'alert':alert, | |
'sound':'k1DiveAlarm.caf', | |
'badge':badge, | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Building Google Protobuf for Mac OS X / iOS. | |
echo Use 'tail -f build.log' to monitor progress. | |
( | |
PREFIX=`pwd`/protobuf | |
mkdir ${PREFIX} | |
mkdir ${PREFIX}/platform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Title: MP3 tag for Jekyll | |
# Authors: Devin Weaver, Daniel Roos (youtube changes) | |
# Description: Allows mp3 tag to include mp3 files embedded into the post. | |
# It uses the player 'audio.js' from http://kolber.github.com/audiojs/ | |
# | |
# Install the plugin according to the manuel of the author by adding the necessary lines to the head-template | |
# and adding the files into the right directories. | |
# | |
# Please read my [blog post about it][2]. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $# -gt 0 ]; then | |
echo "开始分析..." | |
else | |
echo "请输入.rar的文件名!!!" | |
exit; | |
fi | |
name=$1 | |
suffix=".rar" | |
#解压rar包 |