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 | |
root_password="root" | |
user_name="aa" | |
user_password="111111" | |
# make 3 partitions on the disk. | |
# /dev/sda1 : 4G swap | |
# /dev/sda2 : 10G / | |
# /dev/sda3 : xxG /home | |
parted -s /dev/sda mktable msdos |
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
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" | |
cd liveMedia | |
nmake /B -f liveMedia.mak | |
cd ../groupsock | |
nmake /B -f groupsock.mak | |
cd ../UsageEnvironment | |
nmake /B -f UsageEnvironment.mak | |
cd ../BasicUsageEnvironment | |
nmake /B -f BasicUsageEnvironment.mak |
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 | |
#-----app update------ | |
sudo apt-get update; sudo apt-get -y upgrade | |
sudo aptitude update; sudo aptitude -y upgrade | |
sudo apt-get -y autoclean autoremove clean | |
#-----app install------ | |
sudo apt-get -y install vim git subversion gdebi build-essential gcin im-config xfonts-terminus kupfer xdg-user-dirs-gtk aptitude byobu rtorrent samba unzip |
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 | |
NDK=/home/yangsheng/android-ndk-r10c | |
SYSROOT=$NDK/platforms/android-19/arch-arm/ | |
TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64 | |
PREFIX="" |
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
#------------------------------------------------------------------------------- | |
# Name: Yahoo Finance Stock | |
# Purpose: | |
# | |
# Author: yangsheng | |
# | |
# Created: 04/06/2014 | |
# Copyright: (c) yangsheng 2014 | |
# Licence: <your licence> | |
#------------------------------------------------------------------------------- |
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
#------------------------------------------------------------------------------- | |
# Name: Google Finance Stock | |
# Purpose: | |
# | |
# Author: yangsheng | |
# | |
# Created: 04/06/2014 | |
# Copyright: (c) yangsheng 2014 | |
# Licence: <your licence> | |
#------------------------------------------------------------------------------- |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="css/font-awesome.css"> | |
<script src="Scripts/jquery-2.0.2.js"></script> |
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
def swap(a, b): | |
return b, a | |
# = = = = = = = = = = = = = = = = = = = = = = = = = = = | |
# mian function | |
# = = = = = = = = = = = = = = = = = = = = = = = = = = = | |
if __name__ == '__main__': | |
a = 10 | |
b = 15 | |
print "before swap a = " + str(a) + " ,b = " + str(b) |
NewerOlder