Skip to content

Instantly share code, notes, and snippets.

View lrlna's full-sized avatar

Iryna Shestak lrlna

View GitHub Profile
var merry = require('merry')
var app = merry()
app.route('GET', '/', function (req, res, ctx) {
ctx.send(200, { subject: '/ butts' })
})
app.route('GET', '/download', function (req, res, ctx) {
res.setHeader('Content-Disposition', 'attachment')
@lrlna
lrlna / vanc0uver-t1ps.md
Last active October 5, 2017 15:21
ira's suggestions on best things in vancouver

This information might be out of date, since last I lived in Vancouver was over a year ago, so maybe things have changed, and new places popped up. This is a list of my favs when I lived there :D I mostly lived in Vancouver-Vancouver and Downtown parts of town, so this information is based around that as well. There might be good places out in other parts of the city that you should definitely explore if you can!

Ramen:

  1. Ramen Jinya is amazing. Their Tonkotsu broth is nom nom nom, and they also do take out if you're stuck and don't want to wait in the queue (cause they have queues).
  2. Ramen Butcher. In Chinatown part of the city, which is an awesome place to explore and walk around to begin with, but also their Tonkotsu is 👌🏾 👌🏾.
  3. Ramen Koika. In the West End! Close to the Sea Wall, and on Davie street, which is an awesome place to walk around in general!!
  4. Ramen Gojiro. They have a different t
@lrlna
lrlna / ldn.md
Created November 2, 2017 11:51
London, the staples.

Ira's lil guide to ldn (stationary, coffee, ramen). More to come, maybe?

STATIONARY

using System;
using System.Text.RegularExpressions;
using MongoDB.Driver;
using MongoDB.Bson;
namespace HelloWorld
{
class Hello
{
@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']
\ }
[
{ 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 / 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'))
@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"
}