Skip to content

Instantly share code, notes, and snippets.

View sanohin's full-sized avatar
🥝

Alex Anokhin sanohin

🥝
View GitHub Profile
@sanohin
sanohin / fonts.css
Last active January 19, 2021 11:46
/* cyrillic-ext */
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/sourcecodepro/v13/HI_SiYsKILxRpg3hIP6sJ7fM7PqlMOvWnsUnxlC9.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
module.exports = {
extends: ["react-app"],
plugins: ["@typescript-eslint", "eslint-plugin-import-helpers"],
rules: {
"no-restricted-globals": 0,
"no-undef": 0,
"no-console": 0,
"react-hooks/rules-of-hooks": 0,
"@typescript-eslint/array-type": ["warn", "array-simple"],
"react-hooks/exhaustive-deps": 0,
@sanohin
sanohin / howto.md
Created July 11, 2019 20:23 — forked from tyrcho/howto.md
Git secret and CI
<html>
<head>
<meta charset="utf-8" />
</head>
<body>
<table id="layout">
<thead>
<tr>
<th>
<header style="border: 1px solid red;">
#include <iostream>
class Kek {
public:
Kek() {
Kek::ref = this;
}
static Kek* ref;
};
const SomeMap = {
fn1: ({ a }: { a: number }) => ({ a, b: 1 }),
fn2: ({ c }: { c: string }) => ({ c, d: 1 })
};
const someFunction = someFns => params => {
const someValue = someFns.reduce((acc, cur) => {
acc.push(cur(params));
return acc;
}, []);
#!/usr/bin/env bash
PROGNAME=$(basename $0)
BASE=${1:-$HOME}
green=$(tput setaf 2)
yellow=$(tput setaf 3)
reset=$(tput sgr0)
set -e
package lab;
import acm.program.*;
public class sedmoe extends ConsoleProgram {
public void run (){
double ep = readDouble("ep: ");
double x = readDouble("x: ");
println (fun (x, ep));
}
package lab;
import acm.program.*;
public class sedmoe extends ConsoleProgram {
public void run (){
double ep = readDouble("ep: ");
double x = readDouble("x: ");
println (fun (x, ep));
}