Skip to content

Instantly share code, notes, and snippets.

def processMessage(message):
'''call various processor functions that process the message in their own ways and log results.
All the processor functions are independent of each other.'''
doSomething1(message)
doSomething2(message)
doSomething3(message)
doSomething4(message)
def doSomething*(message):
'''process message and log results'''
1:M 26 Mar 2020 13:22:31.783 - DB 0: 4 keys (0 volatile) in 4 slots HT.
1:M 26 Mar 2020 13:22:31.783 - 1 clients connected (0 replicas), 812360 bytes in use
1:M 26 Mar 2020 13:22:36.846 - DB 0: 4 keys (0 volatile) in 4 slots HT.
1:M 26 Mar 2020 13:22:36.846 - 1 clients connected (0 replicas), 812360 bytes in use
1:M 26 Mar 2020 13:22:41.906 - DB 0: 4 keys (0 volatile) in 4 slots HT.
1:M 26 Mar 2020 13:22:41.906 - 1 clients connected (0 replicas), 812360 bytes in use
1:M 26 Mar 2020 13:22:46.964 - DB 0: 4 keys (0 volatile) in 4 slots HT.
1:M 26 Mar 2020 13:22:46.964 - 1 clients connected (0 replicas), 812360 bytes in use
1:M 26 Mar 2020 13:22:52.022 - DB 0: 4 keys (0 volatile) in 4 slots HT.
1:M 26 Mar 2020 13:22:52.022 - 1 clients connected (0 replicas), 812360 bytes in use
@abarya
abarya / Assembler.md
Last active February 21, 2019 00:33
abhiOS -- Here, I will be documenting stuff that I learned creating my own Operating System.

Int is an assembly level instruction for x86 architectures microprocessors that generates a software interrupt. After calling an interrupt, the the processor calls one of the 256 functions pointed to by the interrupt address table.

INT 10H - It is a shorthand for BIOS interrupt call 10hex which is used to provide video services. It is actually quite slow as the OS needs to switch between real mode and protected mode/ long mode which is an expensive operation.

@abarya
abarya / Instructions.md
Created September 28, 2018 16:24
Wxwidget Installation tutorial

Things to do:

  1. Download CodeBlocks and wxWidget.
  2. Install them.
  3. Set environment variables.
  4. Compile wxwidget using CodeBlocks.
  5. Create a sample wxWidget App.

make command

mingw32-make -f makefile.gcc BUILD=release SHARED=0

Just in case, master goes out of sync due to some mess

git checkout deevelop
git pull origin master` #master is systers repo
git reset --hard <old-commit> #old commit is 880a3c8127dc1578293d14447eb6ad853679481c
git merge develop
git push -f origin master
```
(py36) arya@arya-HP-Notebook:~/Documents/scikit-image$ make benchmark_coverage
pytest benchmarks --cov=skimage
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.6.2, py-1.5.3, pluggy-0.6.0
rootdir: /home/arya/Documents/scikit-image, inifile: setup.cfg
plugins: cov-2.5.1
collected 10 items
benchmarks/benchmark_exposure.py .. [ 20%]
@abarya
abarya / Javascript-Points to note.md
Last active February 16, 2018 14:27
This gist contains the important points related to functional programming in javascript.

A smartbeing project that contains the implementation of the person-recognition module for the smart home device Whohoo...

Setting up the project

  1. Fork and clone this repo within your home folder.
  2. The second step is to download and install the fftw3 library from here which is used for Fourier computation.
    • Download the latest version(3.3.7) of fftw3 library.
    • Navigate to fftw-3.3.7/ and run the following comands:
      ./configure
      make
      sudo make install
@abarya
abarya / error log
Last active December 17, 2017 17:03
arya@arya-HP-Notebook:~$ cd Documents/opensource/oppia
arya@arya-HP-Notebook:~/Documents/opensource/oppia$ bash scripts/run_e2e_tests.sh
Checking if node.js is installed in /home/arya/Documents/opensource/oppia_tools
Generating list of installed node modules...
Generation completed.
Checking whether Google App Engine is installed in /home/arya/Documents/opensource/oppia_tools/google_appengine_1.9.50/google_appengine
Environment setup completed.
Installing third-party JS libraries and zip files.
Checking whether eslint is installed
Checking whether eslint-plugin-html is installed