Skip to content

Commit 390dbc6

Browse files
committed
add other items; include list of elements over the tag editor.
1 parent cbcbc6c commit 390dbc6

File tree

4 files changed

+103
-22
lines changed

4 files changed

+103
-22
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ You'll find many textbooks, papers, articles, blog posts, readings and similar i
4444
Tag for kind of document, e.g.: `blogs`, `books`, `papers`, `readings`, `textbooks`, `thesis`, `websites`.
4545

4646
Tag for topic, e.g.: `algorithms`, `artificial-intelligence`, `blockchain`, `computer-programming`, `computer-science`, `deep-learning`, `distributed-systems`, `logic`, `machine-learning`, `mathematics`, `operating-systems`, `philosophy`, `physics`, `reinforcement-learning`.
47+
48+
## Credits
49+
50+
The tag editor is built with [jQuery-tagEditor](https://github.com/Pixabay/jQuery-tagEditor).

bookshelf.tsv

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Approximate Nearest Neighbor Queries in Fixed Dimensions https://www.cs.umd.edu/
8383
Vitalik Buterin's website https://vitalik.ca/ websites blockchain cryptocurrency distributed-systems
8484
Ethereum:A Secure Decentralised Generalised Transaction Ledger https://gavwood.com/paper.pdf papers blockchain cryptocurrency distributed-systems
8585
The Elements of Statistical Learning https://web.stanford.edu/~hastie/Papers/ESLII.pdf textbooks machine-learning data-mining algorithms statistics
86-
The space complexity of approximating the frequency moments http://www.cs.princeton.edu/courses/archive/spring04/cos598B/bib/alonMS.pdf textbooks algorithms big-data
86+
The space complexity of approximating the frequency moments http://www.cs.princeton.edu/courses/archive/spring04/cos598B/bib/alonMS.pdf papers algorithms big-data
8787
Near-Optimal Hashing Algorithms for Approximate Nearest Neighbor in High Dimensions http://pages.di.unipi.it/ferragina/dott2014/lsh.pdf papers algorithms big-data
8888
An Improved Data Stream Summary: The Count-Min Sketch and its Applications http://dimacs.rutgers.edu/~graham/pubs/papers/cm-full.pdf papers algorithms big-data
8989
Data Scientist: The Sexiest Job of the 21st Century https://hbr.org/2012/10/data-scientist-the-sexiest-job-of-the-21st-century readings data-science
@@ -163,10 +163,10 @@ Tracing the Trajectory of Skill Learning With a Very Large Sample of Online Game
163163
The human emotional brain without sleep - a prefrontal amygdala disconnect https://walkerlab.berkeley.edu/reprints/Yoo-Walker_CurrBiol_2007.pdf papers psychology sleep
164164
Simon Says Don’t Use Flashcards https://well.blogs.nytimes.com/2012/08/23/simon-says-dont-use-flashcards/ readings psychology human-learning
165165
Somnus Inventa Center for Human Sleep Science https://www.humansleepscience.com/ websites psychology neuroscience sleep
166-
Google Style Guides https://google.github.io/styleguide/ readings best-practices computer-programming
166+
Google Style Guides https://google.github.io/styleguide/ readings best-practices computer-programming
167167
The NumPy array: a structure for efficient numerical computation https://arxiv.org/pdf/1102.1523.pdf papers computer-programming python numpy
168168
Introduction to the Theory of Computation https://theswissbay.ch/pdf/Book/Introduction%20to%20the%20theory%20of%20computation_third%20edition%20-%20Michael%20Sipser.pdf textbooks computer-science
169-
How to solve it - A new Aspect of Mathematical Method https://math.hawaii.edu/home/pdf/putnam/PolyaHowToSolveIt.pdf book mathematics problem-solving
169+
How to solve it - A new Aspect of Mathematical Method https://math.hawaii.edu/home/pdf/putnam/PolyaHowToSolveIt.pdf books mathematics problem-solving
170170
The Road to Reality, A Complete Guide to The Laws of The Universe https://archive.org/stream/RoadToRealityRobertPenrose/road%20to%20reality-robert%20penrose_djvu.txt textbooks mathematics physics
171171
Interpreting Mathematics in Physics: Charting the Applications of SU(2) in 20th Century Physics https://arxiv.org/pdf/physics/0605012.pdf papers mathematics physics
172172
List of important publications in theoretical computer science https://en.wikipedia.org/wiki/List_of_important_publications_in_theoretical_computer_science readings computer-science
@@ -176,8 +176,8 @@ Tor: The Second-Generation Onion Router https://svn.torproject.org/svn/projects/
176176
Incentives Build Robustness in BitTorrent http://bittorrent.org/bittorrentecon.pdf papers distributed-systems
177177
Chord: A Scalable Peer-to-peer Lookup Service for Internet Application http://nms.csail.mit.edu/papers/chord.pdf papers distributed-systems
178178
The Akamai Network: A Platform for High-Performance Internet Applications https://www.cs.rutgers.edu/~rmartin/teaching/fall15/papers/arch2/cdn.pdf papers distributed-systems
179-
The Part-Time Parliament https://lamport.azurewebsites.net/pubs/lamport-paxos.pdf papers distributed-systems algorithm
180-
Paxos Made Simple https://lamport.azurewebsites.net/pubs/paxos-simple.pdf papers distributed-systems algorithm
179+
The Part-Time Parliament https://lamport.azurewebsites.net/pubs/lamport-paxos.pdf papers distributed-systems algorithms
180+
Paxos Made Simple https://lamport.azurewebsites.net/pubs/paxos-simple.pdf papers distributed-systems algorithms
181181
A Simpler Proof for Paxos and Fast Paxos http://wwwusers.di.uniroma1.it/~mei/SistemiDistribuiti/Schedule_files/fastpaxosfordummies.pdf papers distributed-systems algorithms
182182
The PageRank Citation Ranking: Bringing Order to the Web https://www.cis.upenn.edu/~mkearns/teaching/NetworkedLife/pagerank.pdf papers information-retrieval algorithms
183183
The Stationary Distribution of a Markov Chain https://piazza-resources.s3.amazonaws.com/izdx3b2pxs84nl/j1pw8wbajdgd2/markovChains.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAR6AWVCBX7UFLF3NP%2F20180910%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180910T175657Z&X-Amz-Expires=10800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=FQoGZXIvYXdzEOL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDCR4XbzjXnzDaDhCZCK3A3aQa7VL%2FLbT1A4aSdWtyD%2FaCivJncPGxWdvYQe7Zj1c85PExALGO83c1A2XDuXF8rU5YugLlloRGh%2B2SlTiWaWG%2Frr6PdWaINWRkOjolU03YPuTXHnTj7sGji9qEe%2FGDXHtGMWQfZtzuyy600p4qlQWt2FCBmpJ7gpW5syC%2FmAJeZwpVATYM3W128nluRWdYejrfBOLagefMDGQjHe8SjgKLCi0Gr6X4%2BR%2F7DXTwASTZnYKT1iu46Z9F2V6zVj2%2F1zhzb6%2F%2FsxScapc5YlYpT3u1XZkiW2lScHD5OyVbymbQK68h65jP0ZftNerdIvQ8Bj7oOVyxsjrW%2F6knC83ge1akUbsRIuACgU1AtrmlaWTpETxHO9LPP3IJ6mjaMQrjnoVuHMo0ykkat7WZe1YlK%2FVfgURPHQXUMTT3mjY9ex%2F%2FvmzN80X%2BiQp6BdA9fLi2KZIInkzoNuOw4wiYYWFoFaQ6fBAVp6ie9hVQcwvpdFOrm1tv%2FRPdRxxFsJwTjg9ANZYiN7UYvgtJTeE%2FlbBghoXtzzgN24lpoGXEqGnVHOsbPMvJxJpougM8OkPn0qNYvcNIBsqt3Mo3sHa3AU%3D&X-Amz-Signature=4de71946287f0fd51b40efbfd41b789f050dd4437cdbb603b595fc9660deddfb readings mathematics algorithms
@@ -186,7 +186,7 @@ Jeffrey Dean's website https://ai.google/research/people/jeff websites software-
186186
Building Software Systems at Google and Lessons Learned https://static.googleusercontent.com/media/research.google.com/en//people/jeff/Stanford-DL-Nov-2010.pdf readings software-engineering
187187
Clever Algorithms: Nature-Inspired Programming Recipes http://www.cleveralgorithms.com/nature-inspired/index.html textbooks algorithms
188188
Type Theory and Functional Programming https://www.cs.kent.ac.uk/people/staff/sjt/TTFP/ textbooks computer-science logic
189-
Writing a Simple Operating System - from Scratch http://www.cs.bham.ac.uk/%7Eexr/lectures/opsys/10_11/lectures/os-dev.pdf textbooks operative-systems computer-programming
189+
Writing a Simple Operating System - from Scratch http://www.cs.bham.ac.uk/%7Eexr/lectures/opsys/10_11/lectures/os-dev.pdf textbooks operating-systems computer-programming
190190
Crypto101 https://www.crypto101.io/ textbooks computer-security
191191
Book of Proof http://www.people.vcu.edu/%7Erhammack/BookOfProof/ textbooks mathematics logic
192192
How to prove it http://users.metu.edu.tr/serge/courses/111-2011/textbook-math111.pdf textbooks mathematics logic
@@ -205,3 +205,7 @@ Specifying Behavioural Features of Design Patterns in First Order Logic https://
205205
Formalising Design Patterns in Predicate Logic http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.727.6857&rep=rep1&type=pdf papers software-engineering logic
206206
How Computers Work - Processor and Main Memory http://www.fastchip.net/howcomputerswork/bookbpdf.pdf readings operating-systems computer-architecture electronics
207207
UML Cheatsheet http://loufranco.com/wp-content/uploads/2012/11/cheatsheet.pdf readings software-engineering uml cheatsheets
208+
Bran's Kernel Development - A tutorial on writing kernels http://www.osdever.net/bkerndev/Docs/intro.htm readings computer-programming operating-systems linux
209+
Roll your own toy UNIX-clone OS http://www.jamesmolloy.co.uk/tutorial_html/index.html readings computer-programming operating-systems linux
210+
QEMU https://github.com/qemu/qemu websites computer-programming operating-systems
211+
MikeOS http://mikeos.sourceforge.net/ websites operating-systems computer-programming

css/index.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ body{
44
align-content: center;
55
}
66

7-
.container-fluid{
7+
.row{
8+
margin: 5px;
9+
}
10+
11+
.container{
812
padding: 5px;
913
}
14+
15+
16+
.tag_code{
17+
padding: 2px;
18+
margin: 2px;
19+
background-color: #f2f2f2;
20+
cursor:pointer;
21+
}
22+
23+
/* .tag_code.tag_on{
24+
background-color: #ffffff;
25+
}
26+
27+
.tag_code.tag_off{
28+
background-color: #f2f2f2;
29+
} */

index.html

Lines changed: 68 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,39 @@
99
<title>My Bookshelf</title>
1010

1111
<link rel="stylesheet" type="text/css" href="https://rawgit.com/Pixabay/jQuery-tagEditor/master/jquery.tag-editor.css">
12-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
12+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
1313
<link rel="stylesheet" type="text/css" href="css/index.css">
1414

1515
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
1616
<script src="https://code.jquery.com/ui/1.10.2/jquery-ui.min.js"></script>
17-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
17+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
1818
<script src="https://rawgit.com/Pixabay/jQuery-tagEditor/master/jquery.tag-editor.min.js"></script>
1919
<script src="https://rawgit.com/Pixabay/jQuery-tagEditor/master/jquery.caret.min.js"></script>
2020
<script src="js/classes.js"></script>
2121
</head>
2222
<body>
23-
<div class="page-header">
24-
<h1>My bookshelf</h1>
25-
</div>
2623
<a href="https://github.com/MarcoFavorito/my-bookshelf"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
27-
<div class="container-fluid">
28-
<textarea id="tagEditor"></textarea>
29-
<div id="booksList"></div>
24+
<div class="container">
25+
<div class="row">
26+
<div class="col">
27+
<h1>My bookshelf</h1>
28+
</div>
29+
</div>
30+
<div class="row">
31+
<div class="col" id="available-tags">
32+
Available tags:
33+
</div>
34+
</div>
35+
<div class="row">
36+
<div class="col">
37+
<textarea id="tagEditor"></textarea>
38+
</div>
39+
</div>
40+
<div class="row">
41+
<div class="col">
42+
<div id="booksList"></div>
43+
</div>
44+
</div>
3045
</div>
3146
<script>
3247

@@ -125,23 +140,61 @@ <h1>My bookshelf</h1>
125140
}
126141
}
127142

128-
function main(text){
129-
bookshelf = parseBookshelfFile(text);
130-
var tags = bookshelf.tag2items.keys();
131-
var tag_array = Array.from(tags);
132-
143+
function setup_tag_editor(tags){
133144
$('#tagEditor').tagEditor({
134145
autocomplete: {
135146
autoFocus: true,
136-
source: tag_array,
147+
source: tags,
137148
minLength: 1,
138149
delay: 0
139150
},
140151
placeholder: 'Enter tags, e.g. machine-learning, algorithms, computer-programming, papers, textbooks, websites, ...',
141152
onChange: onTagChange,
142153
});
143154

144-
onTagChange(null, null, tag_array);
155+
onTagChange(null, null, tags);
156+
}
157+
158+
function setup_tag_list(tags){
159+
var container = $('#available-tags');
160+
for (var tag of tags){
161+
var tag_id = `#tag-${tag}`;
162+
var code_tag = $(`<code id=\"${tag_id}\">${tag}</code>`);
163+
code_tag.click(onclick_tag(tag));
164+
code_tag.addClass("tag_code tag_off")
165+
container.append(code_tag);
166+
container.append(" ");
167+
168+
}
169+
170+
}
171+
172+
function onclick_tag(tag){
173+
174+
var f = function(){
175+
var current_tag = tag;
176+
var clicked = false;
177+
return function(){
178+
if (clicked == false){
179+
$('#tagEditor').tagEditor('addTag', current_tag);
180+
clicked = true;
181+
}
182+
else{
183+
$('#tagEditor').tagEditor('removeTag', current_tag);
184+
clicked = false;
185+
}
186+
};
187+
}();
188+
return f;
189+
}
190+
191+
function main(text){
192+
bookshelf = parseBookshelfFile(text);
193+
var tags = bookshelf.tag2items.keys();
194+
var tag_array = Array.from(tags);
195+
196+
setup_tag_editor(tag_array);
197+
setup_tag_list(tag_array);
145198

146199

147200
}

0 commit comments

Comments
 (0)