1// get the ninja-keys element 2const ninja = document.querySelector('ninja-keys'); 3 4// add the home and posts menu items 5ninja.data = [{ 6 id: "nav-about", 7 title: "about", 8 section: "Navigation", 9 handler: () => { 10 window.location.href = "/"; 11 }, 12 },{id: "nav-publications", 13 title: "publications", 14 description: "publications by categories in reversed chronological order. generated by jekyll-scholar.", 15 section: "Navigation", 16 handler: () => { 17 window.location.href = "/publications/"; 18 }, 19 },{id: "nav-research", 20 title: "research", 21 description: "Past and ongoing projects in the lab", 22 section: "Navigation", 23 handler: () => { 24 window.location.href = "/projects/"; 25 }, 26 },{id: "nav-teaching", 27 title: "teaching", 28 description: "", 29 section: "Navigation", 30 handler: () => { 31 window.location.href = "/teaching/"; 32 }, 33 },{id: "nav-people", 34 title: "people", 35 description: "current and former members of the lab", 36 section: "Navigation", 37 handler: () => { 38 window.location.href = "/people/"; 39 }, 40 },{id: "post-a-post-with-plotly-js", 41 42 title: "a post with plotly.js", 43 44 description: "this is what included plotly.js code could look like", 45 section: "Posts", 46 handler: () => { 47 48 window.location.href = "/blog/2025/plotly/"; 49 50 }, 51 },{id: "post-a-post-with-image-galleries", 52 53 title: "a post with image galleries", 54 55 description: "this is what included image galleries could look like", 56 section: "Posts", 57 handler: () => { 58 59 window.location.href = "/blog/2024/photo-gallery/"; 60 61 }, 62 },{id: "post-google-gemini-updates-flash-1-5-gemma-2-and-project-astra", 63 64 title: 'Google Gemini updates: Flash 1.5, Gemma 2 and Project Astra <svg width="1.2rem" height="1.2rem" top=".5rem" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M17 13.5v6H5v-12h6m3-3h6v6m0-6-9 9" class="icon_svg-stroke" stroke="#999" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg>', 65 66 description: "Weâre sharing updates across our Gemini family of models and a glimpse of Project Astra, our vision for the future of AI assistants.", 67 section: "Posts", 68 handler: () => { 69 70 window.open("https://blog.google/technology/ai/google-gemini-update-flash-ai-assistant-io-2024/", "_blank"); 71 72 }, 73 },{id: "post-a-post-with-tabs", 74 75 title: "a post with tabs", 76 77 description: "this is what included tabs in a post could look like", 78 section: "Posts", 79 handler: () => { 80 81 window.location.href = "/blog/2024/tabs/"; 82 83 }, 84 },{id: "post-a-post-with-typograms", 85 86 title: "a post with typograms", 87 88 description: "this is what included typograms code could look like", 89 section: "Posts", 90 handler: () => { 91 92 window.location.href = "/blog/2024/typograms/"; 93 94 }, 95 },{id: "post-a-post-that-can-be-cited", 96 97 title: "a post that can be cited", 98 99 description: "this is what a post that can be cited looks like", 100 section: "Posts", 101 handler: () => { 102 103 window.location.href = "/blog/2024/post-citation/"; 104 105 }, 106 },{id: "post-a-post-with-pseudo-code", 107 108 title: "a post with pseudo code", 109 110 description: "this is what included pseudo code could look like", 111 section: "Posts", 112 handler: () => { 113 114 window.location.href = "/blog/2024/pseudocode/"; 115 116 }, 117 },{id: "post-a-post-with-code-diff", 118 119 title: "a post with code diff", 120 121 description: "this is how you can display code diffs", 122 section: "Posts", 123 handler: () => { 124 125 window.location.href = "/blog/2024/code-diff/"; 126 127 }, 128 },{id: "post-a-post-with-advanced-image-components", 129 130 title: "a post with advanced image components", 131 132 description: "this is what advanced image components could look like", 133 section: "Posts", 134 handler: () => { 135 136 window.location.href = "/blog/2024/advanced-images/"; 137 138 }, 139 },{id: "post-a-post-with-vega-lite", 140 141 title: "a post with vega lite", 142 143 description: "this is what included vega lite code could look like", 144 section: "Posts", 145 handler: () => { 146 147 window.location.href = "/blog/2024/vega-lite/"; 148 149 }, 150 },{id: "post-a-post-with-geojson", 151 152 title: "a post with geojson", 153 154 description: "this is what included geojson code could look like", 155 section: "Posts", 156 handler: () => { 157
158 window.location.href = "/blog/2024/geojson-map/"; 159 160 }, 161 },{id: "post-a-post-with-echarts", 162 163 title: "a post with echarts", 164 165 description: "this is what included echarts code could look like", 166 section: "Posts", 167 handler: () => { 168 169 window.location.href = "/blog/2024/echarts/"; 170 171 }, 172 },{id: "post-a-post-with-chart-js", 173 174 title: "a post with chart.js", 175 176 description: "this is what included chart.js code could look like", 177 section: "Posts", 178 handler: () => { 179 180 window.location.href = "/blog/2024/chartjs/"; 181 182 }, 183 },{id: "post-a-post-with-tikzjax", 184 185 title: "a post with TikZJax", 186 187 description: "this is what included TikZ code could look like", 188 section: "Posts", 189 handler: () => { 190 191 window.location.href = "/blog/2023/tikzjax/"; 192 193 }, 194 },{id: "post-a-post-with-bibliography", 195 196 title: "a post with bibliography", 197 198 description: "an example of a blog post with bibliography", 199 section: "Posts", 200 handler: () => { 201 202 window.location.href = "/blog/2023/post-bibliography/"; 203 204 }, 205 },{id: "post-a-post-with-jupyter-notebook", 206 207 title: "a post with jupyter notebook", 208 209 description: "an example of a blog post with jupyter notebook", 210 section: "Posts", 211 handler: () => { 212 213 window.location.href = "/blog/2023/jupyter-notebook/"; 214 215 }, 216 },{id: "post-a-post-with-custom-blockquotes", 217 218 title: "a post with custom blockquotes", 219 220 description: "an example of a blog post with custom blockquotes", 221 section: "Posts", 222 handler: () => { 223 224 window.location.href = "/blog/2023/custom-blockquotes/"; 225 226 }, 227 },{id: "post-a-post-with-table-of-contents-on-a-sidebar", 228 229 title: "a post with table of contents on a sidebar", 230 231 description: "an example of a blog post with table of contents on a sidebar", 232 section: "Posts", 233 handler: () => { 234 235 window.location.href = "/blog/2023/sidebar-table-of-contents/"; 236 237 }, 238 },{id: "post-a-post-with-audios", 239 240 title: "a post with audios", 241 242 description: "this is what included audios could look like", 243 section: "Posts", 244 handler: () => { 245 246 window.location.href = "/blog/2023/audios/"; 247 248 }, 249 },{id: "post-a-post-with-videos", 250 251 title: "a post with videos", 252 253 description: "this is what included videos could look like", 254 section: "Posts", 255 handler: () => { 256 257 window.location.href = "/blog/2023/videos/"; 258 259 }, 260 },{id: "post-displaying-beautiful-tables-with-bootstrap-tables", 261 262 title: "displaying beautiful tables with Bootstrap Tables", 263 264 description: "an example of how to use Bootstrap Tables", 265 section: "Posts", 266 handler: () => { 267 268 window.location.href = "/blog/2023/tables/"; 269 270 }, 271 },{id: "post-a-post-with-table-of-contents", 272 273 title: "a post with table of contents", 274 275 description: "an example of a blog post with table of contents", 276 section: "Posts", 277 handler: () => { 278 279 window.location.href = "/blog/2023/table-of-contents/"; 280 281 }, 282 },{id: "post-a-post-with-giscus-comments", 283 284 title: "a post with giscus comments", 285 286 description: "an example of a blog post with giscus comments", 287 section: "Posts", 288 handler: () => { 289 290 window.location.href = "/blog/2022/giscus-comments/"; 291 292 }, 293 },{id: "post-a-post-with-redirect", 294 295 title: "a post with redirect", 296 297 description: "you can also redirect to assets like pdf", 298 section: "Posts", 299 handler: () => { 300 301 window.location.href = "/assets/pdf/example_pdf.pdf"; 302 303 }, 304 },{id: "post-a-post-with-diagrams", 305 306 title: "a post with diagrams", 307 308 description: "an example of a blog post with diagrams", 309 section: "Posts", 310 handler: () => { 311 312 window.location.href = "/blog/2021/diagrams/"; 313 314 }, 315 },{id: "post-a-distill-style-blog-post", 316 317 title: "a distill-style blog post", 318 319 description: "an example of a distill-style blog post and main elements", 320 section: "Posts", 321 handler: () => { 322 323 window.location.href = "/blog/2021/distill/"; 324 325 }, 326 },{id: "post-a-post-with-twitter", 327 328 title: "a post with twitter", 329 330 description: "an example of a blog post with twitter", 331 section: "Posts", 332 handler: () => { 333 334 window.location.href = "/blog/2020/twitter/"; 335 336 }, 337 },{id: "post-a-post-with-disqus-comments", 338 339 title: "a post with disqus comments", 340 341 description: "an example of a blog post with disqus comments", 342 section: "Posts", 343 handler: () => { 344 345 window.location.href = "/blog/2015/disqus-comments/"; 346 347 }, 348 },{id: "post-a-post-with-math", 349 350 title: "a post with math", 351 352 description: "an example of a blog post with some math", 353 section: "Posts", 354 handler: () => { 355 356 window.location.href = "/blog/2015/math/"; 357 358 }, 359 },{id: "post-a-post-with-code", 360 361 title: "a post with code", 362 363 description: "an example of a blog post with some code", 364 section: "Posts", 365 handler: () => { 366 367 window.location.href = "/blog/2015/code/"; 368 369 }, 370 },{id: "post-a-post-with-images", 371 372 title: "a post with images", 373 374 description: "this is what included images could look like", 375 section: "Posts", 376 handler: () => { 377 378 window.location.href = "/blog/2015/images/"; 379 380 }, 381 },{id: "post-a-post-with-formatting-and-links", 382 383 title: "a post with formatting and links", 384 385 description: "march & april, looking forward to summer", 386 section: "Posts", 387 handler: () => { 388 389 window.location.href = "/blog/2015/formatting-and-links/"; 390 391 }, 392 },{id: "books-the-godfather", 393 title: 'The Godfather', 394 description: "", 395 section: "Books",handler: () => { 396 window.location.href = "/books/the_godfather/"; 397 },},{id: "news-a-simple-inline-announcement", 398 title: 'A simple inline announcement.', 399 description: "", 400 section: "News",}
400,{id: "news-a-long-announcement-with-details", 401 title: 'A long announcement with details', 402 description: "", 403 section: "News",handler: () => { 404 window.location.href = "/news/announcement_2/"; 405 },},{id: "news-a-simple-inline-announcement-with-markdown-emoji-sparkles-smile", 406 title: 'A simple inline announcement with Markdown emoji! :sparkles: :smile:', 407 description: "", 408 section: "News",},{id: "projects-mechanics", 409 title: 'mechanics', 410 description: "", 411 section: "Projects",handler: () => { 412 window.location.href = "/projects/1_project/"; 413 },},{id: "projects-energetics", 414 title: 'energetics', 415 description: "", 416 section: "Projects",handler: () => { 417 window.location.href = "/projects/2_project/"; 418 },},{id: "projects-thermal-biology", 419 title: 'thermal biology', 420 description: "", 421 section: "Projects",handler: () => { 422 window.location.href = "/projects/3_project/"; 423 },},{id: "projects-stressors", 424 title: 'stressors', 425 description: "", 426 section: "Projects",handler: () => { 427 window.location.href = "/projects/4_project/"; 428 },},{id: "projects-other", 429 title: 'other', 430 description: "", 431 section: "Projects",handler: () => { 432 window.location.href = "/projects/5_project/"; 433 },},{id: "projects-project-6", 434 title: 'project 6', 435 description: "a project with no image", 436 section: "Projects",handler: () => { 437 window.location.href = "/projects/6_project/"; 438 },},{id: "projects-project-7", 439 title: 'project 7', 440 description: "with background image", 441 section: "Projects",handler: () => { 442 window.location.href = "/projects/7_project/"; 443 },},{id: "projects-project-8", 444 title: 'project 8', 445 description: "an other project with a background image and giscus comments", 446 section: "Projects",handler: () => { 447 window.location.href = "/projects/8_project/"; 448 },},{id: "projects-project-9", 449 title: 'project 9', 450 description: "another project with an image ð", 451 section: "Projects",handler: () => { 452 window.location.href = "/projects/9_project/"; 453 },},{ 454 id: 'social-cv', 455 title: 'CV', 456 section: 'Socials', 457 handler: () => { 458 window.open("/assets/pdf/example_pdf.pdf", "_blank"); 459 }, 460 },{ 461 id: 'social-email', 462 title: 'email', 463 section: 'Socials', 464 handler: () => { 465 window.open("mailto:%79%6F%75@%65%78%61%6D%70%6C%65.%63%6F%6D", "_blank"); 466 }, 467 },{ 468 id: 'social-inspire', 469 title: 'Inspire HEP', 470 section: 'Socials', 471 handler: () => { 472 window.open("https://inspirehep.net/authors/1010907", "_blank"); 473 }, 474 },{ 475 id: 'social-rss', 476 title: 'RSS Feed', 477 section: 'Socials', 478 handler: () => { 479 window.open("/feed.xml", "_blank"); 480 }, 481 },{ 482 id: 'social-scholar', 483 title: 'Google Scholar', 484 section: 'Socials', 485 handler: () => { 486 window.open("https://scholar.google.com/citations?user=qc6CJjYAAAAJ", "_blank"); 487 }, 488 },{ 489 id: 'social-custom_social', 490 title: 'Custom_social', 491 section: 'Socials', 492 handler: () => { 493 window.open("https://www.alberteinstein.com/", "_blank"); 494 }, 495 },{ 496 id: 'light-theme', 497 title: 'Change theme to light', 498 description: 'Change the theme of the site to Light', 499 section: 'Theme', 500 handler: () => { 501 setThemeSetting("light"); 502 }, 503 }, 504 { 505 id: 'dark-theme', 506 title: 'Change theme to dark', 507 description: 'Change the theme of the site to Dark', 508 section: 'Theme', 509 handler: () => { 510 setThemeSetting("dark"); 511 }, 512 }, 513 { 514 id: 'system-theme', 515 title: 'Use system default theme', 516 description: 'Change the theme of the site to System Default', 517 section: 'Theme', 518 handler: () => { 519 setThemeSetting("system"); 520 }, 521 },];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.