Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View lrlna's full-sized avatar

Iryna Shestak lrlna

View GitHub Profile
@lrlna
lrlna / split_document.rs
Created February 18, 2022 18:12
apollo-rs/issues/171
use apollo_encoder::*;
use apollo_parser::{ast, Parser};
fn main() {
let src = r#"
{
myQuery {
id
foo {
alpha
@lrlna
lrlna / advent-of-read.md
Last active May 23, 2021 19:15
A few books to read over the month of December (and probably January, and February)

Advent of Read

Books

  1. И дольше века длится день (ru) // The Day Lasts More Than a Hundred Years, Chinghiz Aitmatov
  2. Putain (fr) // Whore, Nelly Arcan
  3. Holy Barbarians, Lawrence Lipton
  4. Barndom (dk) // Childhood, Tove Ditlevsen (The Copenhagen Trilogy)
  5. How to Cure a Ghost, Fariha Roisin
  6. Belladonna (cz) // Belladonna, Daša Drndić
@lrlna
lrlna / apt-reqs.md
Last active July 29, 2020 08:12
Requirements for Apt uploads

Package Requirements for Apt

  • Changelog file to live in DEBIAN/changelog. changelog file can be added to mongosh repo root. pkg-deb can then copy it over to its internal DEBIAN dir. Format should be as follows:
package (version) distribution(s); urgency=urgency
  [optional blank line(s), stripped]
  * change details
  more change details
  [blank line(s), included in output of dpkg-parsechangelog]
  * even more change details
 [optional blank line(s), stripped]

новый леф ежемесяч. журнал. 12 №№ в год. Под. редакц. В.В. МАЯКОВСКОГО. Подписная цена: на год - 6р., на полгода 3р.30к., на 3м. - 1р. 75к. Цена отдельного номера - 60к. Для годовых подписчиков допускается рассрочка при подписке - 4р. и не позднее 1/VI - 2 рубля.

на литературном посту двухнедельный журнал марксистской критики. под ред Л. Авербаха, Б. Волина, Юр. Либединского, М. Ольминского, и Ф. Раскольникова. подписная цена: на год - 10р, на полгода-5р. 50к., на 3 м. - 3р. С приложениями в год - 15 руб. Цена отдельного номера - 50 коп для годовых подописчегов допускается рассрочка. при подписке - 6р. и не позднее 1/VI - 4 р. С приложениями при подписке - 8р. 50к. и не позднее 1/VI - 6р. 50к. Приложения: Ф. Меринг. - Легенда о Лессинге. цена 2 руб. Фриче. - Социология искусства. Ц. 2 р. Плеханов. - История русской общественной мысли, в 3 томах. Т. I-й - ц. 2 р. Т. II-й - ц. 1 р. 50к. Т. III-й - ц. 1 р. 50к. Для год. подп. - вместо 9р. всего за 5 р.

октябрь

@lrlna
lrlna / new-york.md
Created March 10, 2020 15:29
New York Tips for Zahra and Parniyan

Foods

  • Sala Thai, Upper West Side. Real good Thai food, far away from tourist spots
  • Okonomi // YUJI Ramen, Brooklyn on the L train. This place is super small 10 seater restaurant that prepares Japanese food from local, seasonal ingredients. You can't make a reservation, but you can come in and put your name down and walk around. There is a bookstore accross the streat to pass the time. I prefer their breakfast, since it's only ramen for dinner, and breakfast is a series of small delicious plates. Also ramen has a much higher likelihood of it having a pork broth that they might not have a miso broth to substitute out with.
  • Davelle, East Village. A cute little Japanese cafe/restaurant. Came here for dinner and really loved it! I think their pass-through-pastries are also quite good for when you're here during the day.
  • Veselka, East Village.
@lrlna
lrlna / cli-instructions.md
Last active November 5, 2019 14:00
creating a node.js cli

Setup

Create a directory where you want it, and run npm init.

Edit package.json to have a bin portion:

"bin": {
  "nori": "bin.js"
}
@lrlna
lrlna / bar-scraper.js
Created August 7, 2019 14:48
Populate MongoDB with some test data
// To run this you need:
// 1. To get an API key from google: https://developers.google.com/maps/documentation/javascript/get-api-key
// 2. Copy that key and add it to a file in the same directory you have this script in, ./keys.json will be read out to make a call to google maps.
var MongoDBClient = require('mongodb').MongoClient
var googleMaps = require('@google/maps')
var path = require('path')
var fs = require('fs')
var keys = fs.readFileSync(path.join(__dirname, './keys.json'))
[
{ item: "journal", qty: 25, size: { h: 14, w: 21, uom: "cm" }, status: "A" },
{ item: "notebook", qty: 50, size: { h: 8.5, w: 11, uom: "in" }, status: "A" },
{ item: "paper", qty: 100, size: { h: 8.5, w: 11, uom: "in" }, status: "D" },
{ item: "planner", qty: 75, size: { h: 22.85, w: 30, uom: "cm" }, status: "D" },
{ item: "postcard", qty: 45, size: { h: 10, w: 15.25, uom: "cm" }, status: "A" }
]
@lrlna
lrlna / vim.vim
Last active August 24, 2018 14:46
learnings in rust
Plugin 'autozimu/LanguageClient-neovim' " Language Server
Plugin 'rust-lang/rust.vim' " rust land vim plugin
" Language Server
" ---------------
"
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls']
\ }
using System;
using System.Text.RegularExpressions;
using MongoDB.Driver;
using MongoDB.Bson;
namespace HelloWorld
{
class Hello
{