This file contains 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/sh | |
# lame source | |
# https://github.com/luciuskwok/lame-3.100-macos | |
# build.sh source | |
# https://github.com/kewlbear/lame-ios-build | |
# ./build.sh arm64 x86_64 | |
# ./build.sh lipo |
This file contains 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
func derivedPath(_ path: String) -> String? { | |
guard let url = URL(string: path) else { return nil } | |
let fileName = url.deletingPathExtension().lastPathComponent | |
guard let data = path.data(using: .utf8) else { return nil } | |
let digest: Insecure.MD5.Digest = Insecure.MD5.hash(data: data) | |
let digestBytes: [UInt8] = digest.withUnsafeBytes { (pointer: UnsafeRawBufferPointer) in | |
return Array(pointer) | |
} |
This file contains 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
// | |
// SignPost.swift | |
// | |
// Created by Yume on 2018/12/5. | |
// Copyright © 2018 Yume. All rights reserved. | |
// | |
import Foundation | |
import os.signpost |
This file contains 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 Foundation | |
public class MessageQueue { | |
public typealias Message = Void -> Void | |
private var exitFlag = false | |
private var messageQueue:[Message] = [] | |
private var loopInterval:Double |
This file contains 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
原帖地址: http://topic.csdn.net/u/20110113/19/b0d5d506-4307-428b-a61d-7974aa66a2da.html | |
首先要说明的是:这里介绍的方法都是大部分是本人“悟”出来的,所以网上难有流传! | |
好方法不能自己私藏,否则就白忙乎这几天了,分享给有需要的朋友们。如果有转载,敬请注明来自*CSDN老邓*作品。 | |
呵呵,给自己打广告,实在是无耻之极,权当无聊之时打字之用。 | |
欢迎流传,为最优秀的分布式版本管理系统Git做宣传!! | |
步骤: | |
1. 下载:http://loaden.googlecode.com/files/gitconfig.7z | |
2. 解压到:<MsysGit安装目录>/cmd/,例如:D:\Program Files\Git\cmd |
This file contains 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
package com.yume190.tw.test; | |
import android.os.Environment; | |
import com.loopj.android.http.AsyncHttpResponseHandler; | |
import com.loopj.android.http.FileAsyncHttpResponseHandler; | |
import com.loopj.android.http.SyncHttpClient; | |
import com.maxwin.busstop.advance.YumeFile; | |
import junit.framework.TestCase; |
This file contains 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
package com.yume190.tw.test; | |
import android.os.Handler; | |
import android.os.Message; | |
import junit.framework.TestCase; | |
import org.junit.After; | |
import org.junit.Before; | |
import org.junit.Test; |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import facebook | |
# 引入 MySQL 模組 | |
import MySQLdb | |
# 連接到 MySQL | |
db = MySQLdb.connect(host="x.x.x.x", user="yume", passwd="xxxx", db="xData",charset="utf8",use_unicode = True) |
This file contains 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
class func receivePacketAskDevice(data:NSData) -> devicePacketReceiver<devicePacketAskDeviceID>{ | |
return receivePacket(data, type: devicePacketAskDeviceID()) | |
} | |
class func receivePacketSetting(data:NSData) -> devicePacketReceiver<devicePacketSetting>{ | |
return receivePacket(data, type: devicePacketSetting()) | |
} | |
class func receivePacketRadios(data:NSData) -> devicePacketReceiver<devicePacketRadios>{ | |
return receivePacket(data, type: devicePacketRadios()) |
NewerOlder