Skip to content

Instantly share code, notes, and snippets.

View ernado's full-sized avatar

Aleksandr Razumov ernado

View GitHub Profile
@ernado
ernado / readme.md
Last active May 28, 2018 07:47 — forked from 6/readme.md
Batch-update Heroku dataclip databases using js console in 2018

If you have many dataclips pointing to a database, and upgrade that database to a different plan, those dataclips will continue pointing to the old database. This will show you how to update all of those dataclips to point to the new database.

Step 1. Log in to Heroku

Step 2. Find heroku_id for each databases

@ernado
ernado / System Design.md
Last active April 15, 2021 10:17 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
#include <stdlib.h> // Для функции exit()
#include <fstream> // Для файловых потоков
#include <iostream>
#include <windows.h>
//#include "ConsolCyr.h"
#include <string>
using namespace std;
const int lenName = 13; // max длина имени файла
const int lenString = 60; // Длина вспомогательного массива
@ernado
ernado / L3.3
Created September 19, 2012 18:28
Работает! :))
#include <iostream>
#include "riostream.h"
#include <math.h>
#include <iomanip>
using namespace std;
int main()
{char c; double x, y, s, a; int n;
for (x=0; x<1; x=x+0.2)
{y=log((1+x)/(1-x));
n=1;