Skip to content

Instantly share code, notes, and snippets.

prefix publisher journals dois
10.12679 0 0
10.7579 123Doc Education 0 0
10.3731 21st Century COE Program (Toplogical Science and Technology) 1 40
10.5775 A. I. Rosu Cultural Scientific Foundation Fundatia cultural-stiintifica A. I. Rosu 1 80
10.4037 AACN Publishing 2 766
10.1306 AAPG/Datapages 4 21817
10.3183 AB Svensk Papperstidning 1 1550
10.5769 ABEAT - Associacao Brasileira de Especialistas em Alta Tecnologia 1 57
10.7597 ACOPIOS - Revista Iberica de Mineralogia 1 9
@miku
miku / insert_paginator.py
Created April 15, 2020 22:02 — forked from evan-burke/insert_paginator.py
psycopg2 execute_values wrapper for accurate row counts
# One of the fastest ways to insert bulk data into Postgres (at least, aside from COPY) is using the psycopg2 extras function execute_values.
# However, this doesn't return an accurate row count value - instead, it just returns the row count for the last page inserted.
# This wraps the execute_values function with its own pagination to return an accurate count of rows inserted.
# Performance is approximately equivalent to underlying execute_values function - within 5-10% or so in my brief tests.
import psycopg2
import psycopg2.extras
import math
db_connection_string = "dbname=EDITME host=EDITME"
@miku
miku / dial-pq-via-ssh.go
Created April 13, 2020 23:10 — forked from vinzenz/dial-pq-via-ssh.go
Use postgres via SSH in Golang
package main
import (
"database/sql"
"database/sql/driver"
"fmt"
"net"
"os"
"time"
@miku
miku / download_github_organization_stats.py
Created January 5, 2020 12:53 — forked from s-m-e/download_github_organization_stats.py
Download basic statistics for all repositories in list of GitHub organizations
#!/usr/bin/env python
# Python 3
import datetime
import json
import os
from github import Github # pip install PyGithub
ORGANIZATIONS = ['my_organization', 'some_other_organization']
# Install these packages (use your favorite AUR tool here)
yay -S minikube-bin kubectl-bin docker-machine-driver-kvm2 libvirt qemu-headless docker-machine ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/
sudo virsh net-autostart default
@miku
miku / wheeler.md
Created August 20, 2019 22:23 — forked from kimsk/wheeler.md
THE USE OF SUB-ROUTINES IN PROGRAMMES

D. J. Wheeler

Cambridge & Illinois Universities

A sub-routine may perhaps best be described as a self-contained part of a programme, which is capable of being used in different programmes. It is an entity of its own within a programme. There is no necessity to compose a programme of a set of distinct sub-routines; for the programme can be written as a complete unit, with no divisions into smaller parts. However it is usually advantageous to arrange that a programme is comprised of a set of subroutines, some of which have been made specially for the particular programme while others are available from a library of standard sub-routines. The reasons for this will be discussed below.

When a programme has been made from a set of sub-routines the breakdown of the code is more complete than it would otherwise be. This allows the coder to concentrate on one section of a programme at a time without the overall detai

We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
OK 1530-1311 Temporal Representation and Reasoning https://portal.issn.org/resource/ISSN/2332-6468
OK 1641-6554 Kolposkopia
NA Computers in Cardiology Conference
OK 1089-7771 IEEE transactions on information technology in biomedicine. https://portal.issn.org/resource/ISSN/1089-7771
OK 1093-1139 Academic physician and scientist https://portal.issn.org/resource/ISSN/1093-1139
OK 1088-7725 AUTOTESTCON https://portal.issn.org/resource/ISSN/1088-7725
OK 1527-4160 Journal of psychiatric practice https://portal.issn.org/resource/ISSN/1538-1145
@miku
miku / README.md
Created March 4, 2019 19:30 — forked from mikecharles/README.md
Deploy a Python application using Ansible and the Ansistrano role

To deploy your app, you'll need to install Ansible and the Ansistrano deploy and rollback Ansible Galaxy roles.

Then create a directory in your app (eg. named ansible) and put these files in there. You should only need to modify the top few variables in vars.yml to get the deployment working for your app.

To do the deployment, use a command like this:

ansible-playbook --limit ansible/deploy.yml

import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
app = dash.Dash('Hello World')
@miku
miku / README.md
Created January 31, 2019 16:57 — forked from LaurensRietveld/README.md
#YASGUI: Creating a YASGUI page

To include YASGUI, simply take this HTML file. If you'd like to remove the endpoint selector widget, uncommment the CSS part in the head of the HTML