This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import paramiko | |
import os | |
import stat | |
import subprocess | |
from concurrent.futures import ThreadPoolExecutor | |
# Define SFTP credentials and server information | |
SFTP_HOST = "sftp.bitport.io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
type 'a List = | |
| Nil | |
| Cons of 'a * 'a List | |
let single = Cons(12, Cons(2, Nil)) | |
let rec last ls = | |
match ls with |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net6.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage{geometry} | |
\geometry{a0paper, landscape, margin=1in} | |
\usepackage{algorithm} | |
\usepackage{algpseudocode} | |
\usepackage{amsmath,amssymb} | |
\usepackage{amsthm} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Components of Phylum Graph: Grammar | |
Component #0 | |
G[Grammar]'shared_info$epsilon | |
Component #1 | |
G[Grammar]'shared_info | |
Component #2 | |
G[Grammar]'shared_info$firstTable! | |
G[Grammar]'shared_info$firstTable | |
Component #3 | |
grammar_first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public record Cfg<T>(T Root, HashSet<T> Vertices, HashSet<(T, T)> Edges) where T : IEquatable<T> | |
{ | |
private Dictionary<(T, T), bool> reach => Reach(); | |
private readonly Dictionary<T, HashSet<T>> dom = new(); | |
private readonly Dictionary<T, HashSet<T>> pred = new(); | |
/// <summary> | |
/// <see href="https://en.wikipedia.org/wiki/Dominator_(graph_theory)#Algorithms"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPECS=First Follow | |
EXAMPLES_PATH=../.. | |
ROOT_PATH=../${EXAMPLES_PATH} | |
SCALAV=2.12 | |
APSLIB=${ROOT_PATH}/lib/aps-library-${SCALAV}.jar | |
SCALA_FLAGS=.:${APSLIB} | |
APS2SCALA=${ROOT_PATH}/bin/aps2scala | |
.PHONY: | |
all: $(addsuffix Spec.compile, $(SPECS)) $(addsuffix Spec.run, $(SPECS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Glassdoor questions: | |
- Given a game to you which is running on an instance and hasMySQL installed on it locally, now with the game popularity increasing, suggest ways that it stays highly secure and highly available and then with every step he was adding more things on it, like we want to use JWT on it, should we use it? session maintenance etc. | |
- URL shortener in Go | |
- MRU cache implementation in java or Go | |
- Distributed Systems, Coding Comprehension | |
- garbage collection in Java | |
- SFDC related experience | |
- debounce function | |
- Memory management for Java applications |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"A,B\na,b".split(/\r?\n/).map(x => x.split(',').map(x => `"${x}"`).join(',')).join('\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Func<TArg1, Func<TArg2, TResult>> Curry<TArg1, TArg2, TResult>(this Func<TArg1, TArg2, TResult> source) | |
{ | |
return x => y => source(x, y); | |
} | |
public static Func<TArg1, Func<TArg2, Func<TArg3, TResult>>> Curry<TArg1, TArg2, TArg3, TResult>(this Func<TArg1, TArg2, TArg3, TResult> source) | |
{ | |
return x => y => z => source(x, y, z); | |
} | |
NewerOlder