-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
233 lines (204 loc) · 9.91 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
---
layout: index
---
<div class="home">
<div class = "row">
<div class = "col s12 m12 l12">
<div class = "card-panel">
<div class = "valign-wrapper">
<div class = "col s12 m3 l3 center">
<div>
<a href='/about'>
<img src="/img/about-square.jpg" alt="" class="circle responsive-img hoverable">
</a>
</div>
<div style = 'padding: 5px 0px'></div>
<span class='chip' style='color:black;font-size:100%'>
<span id = 'typed'></span>
</span>
</div>
<div class = "col s12 m9 l9">
<p>
Welcome to my home page. I built this website using
<ul>
<li><a href = "https://jekyllrb.com/" target = "_blank">Jekyll 3.0+</a></li>
<li><a href = "http://materializecss.com/" target = "_blank">Materialize.css</a></li>
<li><a href = "https://pages.github.com/" target = "_blank">Github pages</a></li>
</ul>
</p>
<p> I used other tools such as <a href = "https://www.mathjax.org/" target = "_blank">mathjax</a>, <a href = "https://d3js.org/" target = "_blank">d3.js</a>, etc. This website also works on mobile. Hopefully, you will find it useful. If you have any questions/ comments/ suggestions please fell free to contact me.
</p>
</div>
</div>
</div>
</div>
<!-- <div class = "col 12 m6 l6">
<div class = "">
<a class="twitter-timeline" width="100%m"
height="300" href="https://twitter.com/kobakhit" data-widget-id="545767113949204481">Tweets by @Gigantsex</a>
</div>
</div> -->
</div>
<h1> Select projects<small> | <a href="/about/#projects">see all</a></small></h1>
<div class = "row">
<ul class = "list-inline unstyled" style =" display:table; margin:0 auto;">
{% for p in site.data.portfolio %}
{% if p.title == "Digit Recognizer using Neural Networks and Python" %}
<li class = "col lg6">
<div class="card small" style = "max-width:300px; display:inline-block">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator" src="{{ p.img }}">
</div>
<div class="card-content">
<span class="card-title activator grey-text text-darken-4">{{ p.title }}<i class="material-icons right">more_vert</i></span>
<br>
<br>
<p class = "card-title">
{% if p.link %}<a href="{{ p.link }}" target = "_blank">Link</a>{% endif %}
{% if p.ipynb %}<a href="{{ p.ipynb }}" target = "_blank">Ipynb</a>{% endif %}
{% if p.rmd %}<a href="{{ p.rmd }}" target = "_blank">Rmd</a>{% endif %}
{% if p.pdf %}<a href="{{ p.pdf }}" target = "_blank">Paper</a>{% endif %}
{% if p.github %}<a href="{{ p.github}}" target = "_blank">Code</a>{% endif %}
{% if p.kaggle %}<a href="{{ p.kaggle}}" target = "_blank">Kaggle</a>{% endif %}
</p>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4">Description<i class="material-icons right">close</i></span>
<p>{{ p.description }}</p>
</div>
</div>
</li>
{% endif %}
{% if p.title == "enkrypt-page" %}
<li class = "col lg6">
<div class="card small" style = "max-width:300px; display:inline-block">
<div class="card-image waves-effect waves-block waves-light">
<img class="activator" src="{{ p.img }}">
</div>
<div class="card-content">
<span class="card-title activator grey-text text-darken-4">{{ p.title }}<i class="material-icons right">more_vert</i></span>
<br>
<br>
<p class = "card-title">
{% if p.link %}<a href="{{ p.link }}" target = "_blank">Link</a>{% endif %}
{% if p.ipynb %}<a href="{{ p.ipynb }}" target = "_blank">Ipynb</a>{% endif %}
{% if p.rmd %}<a href="{{ p.rmd }}" target = "_blank">Rmd</a>{% endif %}
{% if p.pdf %}<a href="{{ p.pdf }}" target = "_blank">Paper</a>{% endif %}
{% if p.github %}<a href="{{ p.github}}" target = "_blank">Code</a>{% endif %}
{% if p.kaggle %}<a href="{{ p.kaggle}}" target = "_blank">Kaggle</a>{% endif %}
</p>
</div>
<div class="card-reveal">
<span class="card-title grey-text text-darken-4">Description<i class="material-icons right">close</i></span>
<p>{{ p.description }}</p>
</div>
</div>
{% endif %}
{% endfor %}
</li>
</ul>
</div>
<div class = "row">
<h1>Recent Activity <small>| <a href="/activity/">see all</a></small></h1>
<div style="max-width: 704px; margin: 0 auto">
{% for a in site.data.activity limit:1 %}
<div class = "col s12 m12 l12" width="100%">
<iframe class="card" src={{a.link}} allowfullscreen="" title="Embedded post" width="100%" height="648" frameborder="0"></iframe>
</div>
{% endfor %}
</div>
</div>
<div class = "row">
<div class = "col s12 m4 l4" style = "padding:0px;">
<h1>Blog <small class = "muted">| Latest posts</small></h1>
</div>
<div class = "col s12 m8 l8 hide-on-small-only">
<div class = "post-view-tabs-wrapper right">
<ul class="tabs">
<li class="tab "><a id="view2" class = "waves-effect waves-red btn-flat active" href="#" data-view="collapsible-list">List</a></li>
<li class="tab "><a id="view3" class = "waves-effect waves-red btn-flat" href="#" data-view="cards-list">Cards</a></li>
</ul>
</div>
</div>
</div>
<div id = "collapsible-list">
{% include list-collapsible.html %}
</div>
<div id = "cards-list" style = "display:none">
{% include cards.html %}
</div>
<hr>
<h2>Kaggle tweeted my <a href="https://www.kaggle.com/kobakhit/digit-recognizer/digital-recognizer-in-r" target = "_blank">write up</a> about Neural Networks and R.</h2>
<blockquote class="twitter-tweet tw-align-center" data-lang="en"><p lang="en" dir="ltr">Quick tutorial on using h2o for neural networks on the MSNIT Digit Recognizer dataset <a href="https://t.co/VnM3U0XVvQ">https://t.co/VnM3U0XVvQ</a> <a href="https://t.co/y9NRV5WPqP">pic.twitter.com/y9NRV5WPqP</a></p>— Kaggle (@kaggle) <a href="https://twitter.com/kaggle/status/668177223443226624">November 21, 2015</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<hr>
<h1 style="display:inline"> Today's top ten news <small>from <a href = '//reddit.com/r/worldnews' target = '_blank'>/r/worldnews</a></small></h1> 
<span class = "muted">
<a class = "muted" href="https://jsfiddle.net/KobaKhit/t42zkbnk/" target="_blank">jsfiddle</a> 
<a class = "muted" href="https://gist.github.com/KobaKhit/e90978692fff51b149ce" target="_blank">gist</a>
</span>
<br></br>
<ul id="news-list" class = "unstyled"></ul>
</div>
<!-- Twitter feed -->
<script>
// !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
</script>
<!-- Produces a responsive list of top ten posts from a subreddit /worldnews. Working jsfiddle http://jsfiddle.net/KobaKhit/t42zkbnk/ -->
<script src="/js/redditjs.js"></script>
<script src="https://rawgit.com/davatron5000/FitText.js/master/jquery.fittext.js"></script> <!-- for text scaling -->
<script>
function correct_url(text) {
// Remove the slash from the end of the article link to pass to href
var html = $.trim(text);
if (html) {
html = html.replace(/(\/$)/, '');
}
return html;
}
function reddit_list(news) {
// Create a list of top ten posts
var l = $('#news-list');
// clear the existing list
$('#news-list li').remove();
$.each(news, function (index, obj) {
var link = correct_url(obj.url);
l.append($("<li></li>")
.append($("<p class = 're'></p>")
.append("<a class = 'title' target = '_blank' href = " + "http://www." + obj.domain + '></a>')
.append("<a target = '_blank' href = " + link + "><text class = 're-title'>" + obj.title + "</text><a/> <a target = '_blank' class = 'muted' href=http://www." + obj.domain + '>(' + obj.domain + ')</a>'))
.append($("<p class='re-under'><a target = '_blank' class = 'muted' href = " + 'http://reddit.com' + obj.permalink + " style = 'outline:0'>(score: " + obj.score + ' | comments: ' + obj.num_comments + ') on reddit.com</a><p>'))
);
});
// Scale text so its responsive
jQuery(".re-under").fitText(6, {
minFontSize: '9px',
maxFontSize: '14px'
});
}
// Fetch the 10 top posts on /r/worldnews using redditjs api
var news = [];
reddit.top('worldnews').t('day').limit(10).fetch(function (res) {
// console.log(res);
for (var i = 0; i < res.data.children.length; i++) {
// res contains JSON parsed response from Reddit
news.push(res.data.children[i].data);
}
console.log(news)
reddit_list(news);
});
// SMART type for titles in about.md
var typed = new Typed('#typed', {
strings: ['Data Hacker', 'BI Expert', 'Baller<span class="ec ec-basketball" style="font-size:0.8em"></span>'],
typeSpeed: 60,
backSpeed: 100,
backDelay: 1500,
smartBackspace: true, // this is a default
loop: true
});
// particlejs config
/* particlesJS.load(@dom-id, @path-json, @callback (optional)); */
particlesJS.load('particles-js', '/js/particles.json', function() {
console.log('callback - particles.js config loaded');
});
</script>