Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nikokozak
nikokozak / ProgDat_Ex1.ipynb
Created February 17, 2026 23:40
Programming Data, Exercise #1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nikokozak
nikokozak / input.json
Last active August 22, 2022 14:27
input file and search engine API
[
{"id":"0cca1a4b-4f4c-46eb-918e-431476aa0dc4","text":"Approved for Release: 2018/09/20 C01516826\n\nIop-Secrer )\n\n\n\nEO 13526\n3.3(b)(1)>25Yrs\nEO 13526\n3.5(c)\n\nNR\n\nInteragency _\n\nIntelligence ~\nMemorandum |\n\nCuban Support for Nationalist Movements and\nRevolutionary Groups\n\nT ret\n\nNI NM 77-020C\n\nduly 1977 3.5(c)\n\nCopy NO. 148\n\nApproved for Release: 2018/09/20 C01516826\nApproved for Release: 2018/09/20 C01516826\n\nQ\n\nApproved for Release: 2018/09/20 C01516826\n\n3.5(c)\n\nApproved for Release: 2018/09/20 C01516826\n\nQ\n\nApproved for Release: 2018/09/20 C01516826\n\nNR\n\nApproved for Release: 2018/09/20 C01516826\n\nQ\n\nApproved for Release: 2018/09/20 C01516826\n\nNR\n\nApproved for Release: 2018/09/20 C01516826\n\nQ\n\nApproved for Release: 2018/09/20 C01516826\n\nNR\n\nApproved for Release: 2018/09/20 C01516826\n\nTop-S6eret\n\n3.5(c)\n\nNR\n\nTo ret\n\n3.5(c)\n\na\n\nApproved for Release: 2018/09/20 C01516826\n\nCuban diplomat in Argentina was meeting regularly\nwith a repre
@nikokozak
nikokozak / template.ex
Created January 13, 2022 22:09
Naive re-implementation of Phoenix's templating macros.
defmodule Lector.Template do
@moduledoc """
Defines helper functions for rendering Templates.
What this allows is a naive re-implementation of how Phoenix handles views/templates.
When 'using' `Lector.Template`, files sharing the same module name as the view being used get pre-compiled
into named render functions. In other words, `Lector.Templates.Home` will pre-compile a `home.html.eex` file
in the same folder into a function of the same name (`Lector.Templates.Home.home(assigns)`), which renders
the template.
@nikokozak
nikokozak / package-lock.json
Created October 17, 2021 20:59
package-lock for failing parcel install
{
"name": "test",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "test",
"version": "1.0.0",
"license": "ISC",