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
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 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 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 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 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 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 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 -*- | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
#import requests as req | |
#import re |
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
// set the date we're counting down to | |
var target_date = new Date("Aug 15, 2019").getTime(); | |
// variables for time units | |
var days, hours, minutes, seconds; | |
// get tag element | |
var countdown = document.getElementById("countdown"); | |
// update the tag with id "countdown" every 1 second |
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/bash | |
## 重命名规则 | |
# 1. 长于3个字母的单词首字母大写,短连接线前后大写; | |
# 2. 只允许出现[空格、短线|单词、数字],点号只允许出现在后缀名之前; | |
# 3. 单词与数字、数字与数字之间以短线相连。 | |
if [ $# != 1 ] || [ ! -f "$1" ];then | |
echo Input file-name error! |
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
*#*#717717#*#* |