主要类在 z.hol.net.download.file 包下.
- FileDownloadManager
- FileDownloadTask
- SimpleFile
- DownloadUIHandler
| bind '"' split-window -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" | |
| bind c new-window -c "#{pane_current_path}" |
| #!/bin/bash | |
| c=$# | |
| #echo $# | |
| if [[ ${c} -gt 0 ]]; then | |
| echo "$RANDOM * $1" | bc | |
| else | |
| echo $RANDOM | |
| fi |
| source /home/holmes/My/bash/http_proxy |
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| type item struct { | |
| Name string | |
| Comment string |
| Debian with Popobox v1.0 | |
| 原文链接:http://pear.xiaojiublog.net/2013/11/debian-with-popobox-v1-0/ | |
| ## 部分内容由 felix021 修正、简化 ## | |
| 1: 制作Debian系统 | |
| mkdir chroot && cd chroot | |
| sudo debootstrap --foreign --arch=armel wheezy debian http://mirrors.ustc.edu.cn/debian/ | |
| 打包: |
| { | |
| // Copy this file to Settings - User | |
| // Set your real GOPATH in user's Godef.sublime-settings | |
| // For example: | |
| "gopath": "/home/holmes/My/go" | |
| } |
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| ) |
| /******************************************************************************* | |
| * Copyright 2011, 2012 Chris Banes. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| package z.hol.viewtest.view; | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.Paint; | |
| import android.graphics.Point; | |
| import android.graphics.Rect; | |
| import android.util.AttributeSet; | |
| import android.view.View; |