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
| delete from `TABLE`; | |
| select * from sqlite_sequence; | |
| update sqlite_sequence set seq=0 where name=`TABLE`; |
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
| .screenrc | |
| ---- | |
| startup_message off | |
| hardstatus on | |
| hardstatus alwayslastline | |
| hardstatus string "%{.bW}%-w%{.rY}%n %t%{-}%+w %=%{..G} %H(%l) %{..Y} %Y/%m/%d %c:%s " | |
| ==== | |
| .inputrc | |
| ---- |
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
| body { | |
| font-family: Georgia,"Times New Roman",Times,"Kai","Kaiti SC","KaiTi","BiauKai","楷体","楷体_GB2312",serif; | |
| font-size: 18px; | |
| width: 50%; | |
| line-height: 25px; | |
| background: #bdc3c7; | |
| color: #2c3e50; | |
| } |
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
| hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso | |
| diskutil list | |
| diskutil unmountDisk /dev/disk$N | |
| sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m | |
| diskutil eject /dev/disk$N |
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
| load allResults.mat | |
| ySize = 256; | |
| xSize = 256; | |
| imSubSample=0; | |
| nBands = 6; % number of bandpass (cannot be changed at the moment) | |
| fGauss=mkGaussian(11); | |
| fGauss1=fGauss(:,1); |
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
| DEBUG = 1; | |
| namePat = 'gender_backup-%d.mat'; | |
| numSubjects = 16; | |
| nLevels = 5; | |
| Ci_up = [0.6914 0.6855 0.6728 0.6404 0.6228]; % upper confidence internal for 5 scale | |
| allProportion = zeros(256,256,5,numSubjects); |
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
| #!/usr/bin/env python | |
| #-*- coding:utf-8 -*- | |
| """ | |
| Walking the destination directory(arg3) and using the command(arg2) | |
| to process every file. | |
| USAGE: | |
| Mapwalk `function` /path/to/walk | |
| """ | |
| import sys |
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
| git rm -r --cached . | |
| git add . | |
| git commit -m "fixed untracked files" |
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
| AlertDialog.Builder info = new AlertDialog.Builder(this); | |
| info.setTitle(getResources().getString(R.string.about_matters_txt).toString()); | |
| info.setMessage(getResources().getString(R.string.about_matters_txt_cont).toString()); | |
| info.setNegativeButton("隱藏", null); | |
| AlertDialog showedInfo = info.show(); | |
| //DisplayMetrics metrics = getResources().getDisplayMetrics(); | |
| //showedInfo.getWindow().setGravity(Gravity.CENTER); | |
| //showedInfo.getWindow().setLayout(LayoutParams.FILL_PARENT, | |
| //(int) (metrics.heightPixels * 0.7)); |