Skip to content

Instantly share code, notes, and snippets.

mitar /
Last active June 29, 2020 17:23
sklearn base
from typing import Annotated
except ImportError:
# Backported Annotated, available through
from typing_extensions import Annotated
class Model(Base):
# This docstring is automatically extended with types and defaults.
# Maybe one of the following existing projects could be reused for this:
mitar / script.js
Created July 11, 2019 18:31
Google Script to move e-mails to Trash
View script.js
// You can install it at
// You can configure it to run every hour to move (eventually) all e-mails under "My Triggers". There are limits
// which prevents it to run for more than 6 minutes. So it is normal that it timeouts. But then there are also
// limits on how many times per day you can run it. So just make a trigger and let it run.
function myFunction() {
var threads ='your search query', 0, 100);
if (!threads.length) {
mitar /
Last active December 23, 2019 16:18 — forked from brbsix/
PyQt5 Scraper (Basic Example)
#!/usr/bin/env python3
# standard imports
import sys
# third-party imports
from pyvirtualdisplay import Display
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QUrl
from PyQt5.QtWebEngineWidgets import QWebEngineView
View efetch-pubmed.xsd
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="" xmlns:xsi="" xsi:schemaLocation="" xmlns:eutils="" targetNamespace="" elementFormDefault="qualified">
<!-- -->
<complexType name="AbstractType">
<element ref="eutils:AbstractText"/>
<element ref="eutils:CopyrightInformation" minOccurs="0"/>

Keybase proof

I hereby claim:

  • I am mitar on github.
  • I am mitar ( on keybase.
  • I have a public key whose fingerprint is 3775 D442 1C8C 6874 6FCB 6051 86CB B63B 98C7 53FC

To claim this, I am signing this object:


Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

View log
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU Octave configure 3.6.4, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/octave/3.6.4 --with-blas=-Wl,-framework,Accelerate --with-umfpack=-lumfpack -lsuitesparseconfig --without-framework-carbon
## --------- ##
## Platform. ##