Skip to content

Instantly share code, notes, and snippets.

View arahatashun's full-sized avatar
🚨
Busy

Shun Arahata arahatashun

🚨
Busy
View GitHub Profile
@arahatashun
arahatashun / Abbreviate Journal Names in Bibtex Database.py
Created January 29, 2021 00:05 — forked from FilipDominec/Abbreviate Journal Names in Bibtex Database.py
Using the translation table from the Jabref program, finds and replaces all scientific journal names to their standardized abbreviated form. First argument is the file to be processed; outputs safely to 'abbreviated.bib'
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# Supporting Python 3
import sys, os, re
try: bibtexdb = open(sys.argv[1]).read()
except: print("Error: specify the file to be processed!")
if not os.path.isfile('journalList.txt'):
@arahatashun
arahatashun / journalList.txt
Last active January 28, 2021 14:42 — forked from FilipDominec/journalList.txt
journalList.txt
"Meteor" Forschungsergebnisse = "Meteor" Forschungsergeb.
2D Materials = 2D Mater.
3D Printing and Additive Manufacturing = 3D Print. Addit. Manuf.
AACN Clinical Issues = AACN Clin. Issues
AACN Clinical Issues in Critical Care Nursing = AACN Clin. Issues Crit. Care Nurs.
AADE Editors Journal = AADE Ed. J.
AANA Journal = AANA J.
AANNT Journal = AANNT J.
AAOHN Journal = AAOHN J.
AAPG Bulletin = AAPG Bull.
@arahatashun
arahatashun / abbreviate.py
Last active April 3, 2024 13:16
Abbreviate Journal Names in Bibtex Database.py
import sys, os
import re
try:
bibtexdb = open(sys.argv[1]).read()
except:
print("Error: specify the file to be processed!")
FILE_NAME = "journalList.txt"
url = "https://gist.githubusercontent.com/FilipDominec/6df14b3424e335c4a47a96640f7f0df9/raw/74876d2d5df9ed60492ef3a14dc3599a6a6a9cfc/journalList.txt"
#include <signal.h>
#include <stdio.h>
#include <wiringPi.h>
#include <softPwm.h>
#include <signal.h>
static const int RIGHTMOTOR1 = 17;//GPIO17
static const int RIGHTMOTOR2 = 27;//GPIO27
static const int LEFTMOTOR1 = 23;//GPIO23