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
public void copyFileOrDir(String path) { | |
AssetManager assetManager = this.getAssets(); | |
String assets[] = null; | |
try { | |
assets = assetManager.list(path); | |
if (assets.length == 0) { | |
copyFile(path); | |
} else { | |
String fullPath = "/data/data/" + this.getPackageName() + "/" + path; | |
File dir = new File(fullPath); |
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
Last login: Wed Jul 17 09:21:15 on console | |
HuJiaWeis-MBP:~ hujiawei$ cd Techs/edx | |
HuJiaWeis-MBP:edx hujiawei$ ls | |
edx-installation.txt tools | |
HuJiaWeis-MBP:edx hujiawei$ git clone 39% (68609/172542), 43.18 MiB | 38 KiB/s | |
-bash: syntax error near unexpected token `(' | |
HuJiaWeis-MBP:edx hujiawei$ git clone git://github.com/edx/edx-platform.git | |
Cloning into 'edx-platform'... | |
remote: Counting objects: 172542, done. | |
remote: Compressing objects: 100% (54979/54979), done. |
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
var gistPrefix = 'https://gist.github.com/', | |
// Cache document.write so that it can be restored once all Gists have been | |
// embedded. | |
cachedWrite = document.write, | |
body = $('body'), | |
// Map each p.gist to an object that contains the paragraph to be replaced | |
// and the Gist's identifier. | |
gists = $('a.gist').map(function(n, a) { | |
a = $(a); | |
var href = a.attr('href'); |