Skip to content

Instantly share code, notes, and snippets.

View olegakbarov's full-sized avatar
🐢
Slow but inevitable

Oleg Akbarov olegakbarov

🐢
Slow but inevitable
View GitHub Profile
import React, { useEffect, useState } from "react";
import { useInView } from "react-intersection-observer";
import "./App.css";
const getApiUrl = (page: number, limit: number) => {
console.log("page", page);
return `https://picsum.photos/v2/list?page=${page}&limit=${limit}`;
};
➜ block-watcher git:(master) ✗ cargo test
Compiling block_watcher v0.1.0 (/Users/venge/Code/rust-repos/block-watcher)
Finished test [unoptimized + debuginfo] target(s) in 0.43s
Running unittests src/main.rs (target/debug/deps/block_watcher-100757d094facdb0)
running 2 tests
test state::tests::test_add_noteworthy_address ... ok
test state::tests::test_add_abi ... ok
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
function fish_prompt
powerline-shell --shell bare $status
end
set fish_key_bindings fish_vi_key_bindings
set fish_bind_mode insert
set -x GPG_TTY (tty)
alias cp='cp -iv' # Preferred 'cp' implementation
@olegakbarov
olegakbarov / chaos-west-talk-pitch.txt
Created December 28, 2017 12:25
Cryptounicorns Desktop
1. Short Introduction (who we are: programmers, crypto enthusiasts etc)
2. What we are working on and how idea of this application emerged (how we met)
- desktop application for cryptocurrency price tracking across multiple exchanges
- need for unified API across multiple exchange markets, tool for traders, investors and cryptocurrency enthusiasts
3. What it looks like from technical point of view (data collecting gathering api, data processing queue, client api)
@olegakbarov
olegakbarov / cluster-capacity.json
Created October 16, 2017 13:48 — forked from zakharovvi/cluster-capacity.json
Kubernetes "Cluster Capacity" grafana dashboard
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 2,
"hideControls": false,
"links": [
{
@olegakbarov
olegakbarov / clj_spec_playground.clj
Created October 4, 2017 09:40 — forked from ghoseb/clj_spec_playground.clj
Examples of Clojure's new clojure.spec library
(ns clj-spec-playground
(:require [clojure.string :as str]
[clojure.spec :as s]
[clojure.test.check.generators :as gen]))
;;; examples of clojure.spec being used like a gradual/dependently typed system.
(defn make-user
"Create a map of inputs after splitting name."
([name email]
@olegakbarov
olegakbarov / NERDTree.mkd
Created May 12, 2017 13:43 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

Keybase proof

I hereby claim:

  • I am olegakbarov on github.
  • I am olegakbarov (https://keybase.io/olegakbarov) on keybase.
  • I have a public key whose fingerprint is 84A4 8866 B1F7 C2B3 8BEB 3994 8DE9 7F53 99AC D9C1

To claim this, I am signing this object:

(ns my.app
(:require
[aleph.http :refer :all]
[compojure.core :refer [defroutes GET]]
[compojure.handler :as handler]
[lamina.core :refer :all]
[com.netflix.hystrix.core :as hystrix]
[clj-http.client :as client]))
(defn get-pants []
@olegakbarov
olegakbarov / install-tensorflow.sh
Created December 10, 2016 20:29 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update