This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | void setup(void) | |
| { | |
| } | |
| void loop(void) | |
| { | |
| byte byteArray[5]; | |
| strcpy((char *)byteArray,"0123"); //init byte array, index 5 = \0 | |
| String myString = String((char *)byteArray); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE html> | |
| <body> | |
| <!-- Copied directly from http://www.ephys.org/ by Damian J Williams --> | |
| <input placeholder="Kamil Slowikowski" name="name"/> | |
| <p id="demo"></p> | |
| <script> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # This code uses Biopython to retrieve lists of articles from pubmed | |
| # you need to install Biopython first. | |
| # If you use Anaconda: | |
| # conda install biopython | |
| # If you use pip/venv: | |
| # pip install biopython | |
| # Full discussion: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/python | |
| from Bio import Entrez | |
| import subprocess | |
| import ast | |
| import statistics | |
| def search_publications(author_name, start_year, end_year): | |
| # Search PubMed for publications by the author within the specified date range | |
| query = f'({author_name}[Author]) AND (Journal Article[Publication Type]) NOT (Clinical Trial[Publication Type]) NOT preprint[pt] NOT review[pt] AND ({start_year}:{end_year}[PDAT])' | |
| handle = Entrez.esearch(db='pubmed', term=query) | |
| record = Entrez.read(handle) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| import re | |
| import gzip | |
| import hashlib | |
| from tqdm import tqdm | |
| from bs4 import BeautifulSoup, SoupStrainer | |
| fnames = [] | |
| for fname in os.listdir('PubMed'): | |
| if fname.endswith('.xml'): | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import sys | |
| import openai | |
| import json | |
| import pandas as pd | |
| from Bio import Entrez | |
| from datetime import datetime | |
| from PyQt6 import QtWidgets, QtGui | |
| from PyQt6.QtCore import Qt | |
| # Replace with your own ChatGPT API key | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import csv | |
| import glob | |
| import gzip | |
| import hashlib | |
| import xml.sax | |
| import tqdm | |
| file_list = glob.glob("./pubmed/*.xml.gz") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python | |
| import os | |
| import xml.parsers.expat | |
| from xml.sax.saxutils import escape | |
| from optparse import OptionParser | |
| from math import log10 | |
| # How much data we process at a time | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # From https://stackoverflow.com/questions/29547218/ | |
| # remove-silence-at-the-beginning-and-at-the-end-of-wave-files-with-pydub | |
| from pydub import AudioSegment | |
| def detect_leading_silence(sound, silence_threshold=-50.0, chunk_size=10): | |
| ''' | |
| sound is a pydub.AudioSegment | |
| silence_threshold in dB | |
| chunk_size in ms | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env bash | |
| rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update |