- Create a repository.
- Create a second branch called
gh-pages
. - Create your index file. The goal is to have a blurb introducing your work, and then a list of dated posts.
- Include a folder for stylesheets, as well as a favicon, readme or whatever other resources you need to make the site functional and good-looking.
- In a folder called
posts
, drop similarly styled html files with the text replaced with the new post. In my workflow, I'm writing the posts elsewhere and then editing them to remove confidential or personally identifying information. It might be a good idea to keep a blank html template file as one of my site resources. - Create a new line in the main page's html file that links to the corresponding post (structured thusly:
https://username.github.io/repository/posts/post1.html
) and you're all set!
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
### INITIATE IGRAPH ### | |
library(igraph) | |
### LOAD NETWORK DATA ### | |
dat=read.csv(file.choose(),header=TRUE,row.names=1,check.names=FALSE) | |
m=as.matrix(dat) |
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 adjacency matrix as a graph object | |
library(igraph) | |
Load adjacency matrix: | |
dat=read.csv(file.choose(),header=TRUE,row.names=1,check.names=FALSE) | |
m=as.matrix(dat) | |
g=graph.adjacency(m,mode="undirected",weighted=TRUE) |
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
plot(a,pch=20, col = a.km$cluster) | |
symbols(x=a.km$centers,circles=a.km$size, add=TRUE) | |
text(x=a$x,y=a$y,labels=row.names(a[1:34,]),col="red",cex=0.5) |
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 12 columns, instead of 11. in line 9.
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
Period,Begin (cal BC),End (cal BC),Levant,Middle Euphrates,El Rouj Region,Cyprus,Northern Mesopotamian,Southern Mesopotamia,Khabur Region,Deh Luran Region,Northwestern Iran | |
0,,12500,Epi-Palaeolithic,,,,Epi-Palaeolithic / Zarzian,,,, | |
1,12500,9500,Natufian / Proto-Neolithic,,,Akrotiri Phase,,,,, | |
2,10500,8300,PPNA / Proto-Neolithic,Neolithic 1,,PPNA,,,,, | |
3,8300,7600,Early-Middle PPNB,Neolithic 2,,Sotira,,,,, | |
4,7600,6900,Late PPNB,Neolithic 2,El-Rouj 1,Late PPNB,Late PPNB,,,Bus Moreh, | |
5,6900,6400,Final PPNB / PPNC,Neolithic 3,El-Rouj 2a/b,Khirokitia,Final PPNB / Proto-Hassuna / Archaic Hassuna,Ubaid 0,Proto-Hassuna,Ali Kosh, | |
6,6400,5800,Yarmoukian / Amuq A,,El-Rouj 2c,Khirokitia,Archaic Hassuna / Hassuna / Samarra / Pre-Halaf / Proto-Halaf,Ubaid 1-2,Proto-Hassuna,Mohammed Jaffar / Sefid,Hajji Firuz / Hasanlu X | |
7,5800,5400,Jericho IX / Amuq B,,El-Rouj 2d/3,Khirokitia,Halaf,Ubaid 2,Samarra / Halaf,Surkh,Hajji Firuz / Hasanlu X | |
8,5400,5000,Amuq C-D,,El-Rouj 4,Khirokitia / Sotira,Northern Ubaid,Ubaid 3,,Sabz / Choga |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.subunit.TUR { fill: #acb; } | |
.subunit.SYR { fill: #cab; } | |
.subunit.IRQ { fill: #abd; } | |
.subunit.LBN { fill: #cba; } | |
.subunit.ISR { fill: #abc; } | |
.subunit.JOR { fill: #bac; } |
NewerOlder