Skip to content

Instantly share code, notes, and snippets.

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

@toborix
toborix / docker-compose.yml
Created June 1, 2022 10:34 — forked from rtplv/docker-compose.yml
Небольшая шпаргалка для работы с Docker
version: '3.7'
services:
postgres:
build: ./postgres
restart: always
environment:
POSTGRES_PASSWORD: 12345
volumes:
- ./postgres/data:/var/lib/postgresql/data
@marcoms
marcoms / pages_switcher.dart
Created January 5, 2019 13:52
AnimatedSwitcher example
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:redux/redux.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'curves.dart' as mt_curves;
class PagesSwitcher extends StatelessWidget {
final List<Widget> pages = [
FirstPage(),
GBS FILE SPECIFICATION 1.02
A file format for ripped GameBoy sound
By Scott Worley <ripsaw8080@hotmail.com>
GBS files are similar to PSID and NSF files. Code and data that is relevant to
sound production is ripped from a GameBoy ROM and combined with a descriptive
header to produce a compact sound module file. A player program that emulates
some of the hardware of a GameBoy is required to listen to these files.
@semiherdogan
semiherdogan / LogResponseTimeMiddleware.php
Created November 14, 2023 13:04
Laravel log response time middleware
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Symfony\Component\HttpFoundation\Response;
class LogResponseTimeMiddleware
{
@TomProkop
TomProkop / codefirst_lowcode_repo_init_demo.md
Last active April 19, 2024 17:10
Code-first Low-code Repo Initialization

Prerequisites

Install VS Code and Power Platform Extension to get PAC CLI installed

Follow this guide

Configure your Git client (if you're using Git for the first time)

git config --global user.name "Tomas Prokop"
git config --global user.email tomas.prokop@REDACTED.com

Set a proxy server (only if your local network forces you)

@kosyfrances
kosyfrances / site-to-site.md
Last active April 19, 2024 17:10
Steps to set up one tunnel IPSec Site to site VPN on AWS and a VM on another cloud provider (Packet) running Strongswan
@ericmjl
ericmjl / ds-project-organization.md
Last active April 19, 2024 17:13
How to organize your Python data science project

UPDATE: I have baked the ideas in this file inside a Python CLI tool called pyds-cli. Please find it here: https://github.com/ericmjl/pyds-cli

How to organize your Python data science project

Having done a number of data projects over the years, and having seen a number of them up on GitHub, I've come to see that there's a wide range in terms of how "readable" a project is. I'd like to share some practices that I have come to adopt in my projects, which I hope will bring some organization to your projects.

Disclaimer: I'm hoping nobody takes this to be "the definitive guide" to organizing a data project; rather, I hope you, the reader, find useful tips that you can adapt to your own projects.

Disclaimer 2: What I’m writing below is primarily geared towards Python language users. Some ideas may be transferable to other languages; others may not be so. Please feel free to remix whatever you see here!

@Zettt
Zettt / expandurl.sh
Created June 12, 2014 09:02
Expand short URL from clipboard. Works with Keyboard Maestro, TextExpander, Alfred, LaunchBar, you name it.
curl -sIL `pbpaste` | grep ^[lL]ocation | cut -c 11- | pbcopy

Technologies to learn to become a Back End Developer (Python/Django)

  • Linux - be proficient using Ubuntu for example and the CLI and understand how the shell works, what are environment variables, subshells, processes/tasks, etc...
  • Docker (and docker-compose) - what are containers and how they work (conceptually) and how to create and run ones
  • Git - what does version control system mean and how to use Git
  • RDB (relational databases) - what are relational databases, and understand tables, how to create them and make relations between them as needed... also understand that through SQLite and PostgreSQL (preferred) or MySQL
  • Python - how to write Python very well and understand its [OOP] implementation...
  • Virtualenv - And how to create virtual environments for python to isolate it from the system's installed version...
  • Virtualenvwrapper to manage virtual environments easily