Skip to content

Instantly share code, notes, and snippets.

View hovo1990's full-sized avatar

Hovakim Grabski hovo1990

View GitHub Profile
@hovo1990
hovo1990 / ReplacementLog.txt
Created July 12, 2016 07:12
Replacement QualSpecies
Before Commenting:
With replaced QualitativeSpecies.java
john1990@john1990:/media/workDrive/GSOC2016/compile_test/jsbml/extensions/qual$ ant compile
Buildfile: /media/workDrive/GSOC2016/compile_test/jsbml/extensions/qual/build.xml
init:
@hovo1990
hovo1990 / Transition.java
Created July 22, 2016 10:32
ListOf Function Order
/*
* ----------------------------------------------------------------------------
* This file is part of JSBML. Please visit <http://sbml.org/Software/JSBML>
* for the latest version of JSBML and more information about SBML.
*
* Copyright (C) 2009-2016 jointly by the following organizations:
* 1. The University of Tuebingen, Germany
* 2. EMBL European Bioinformatics Institute (EBML-EBI), Hinxton, UK
* 3. The California Institute of Technology, Pasadena, CA, USA
* 4. The University of California, San Diego, La Jolla, CA, USA
@hovo1990
hovo1990 / Transition_deviser.java
Created July 25, 2016 09:04
Transition_deviser
/*
* ----------------------------------------------------------------------------
* This file is part of JSBML. Please visit <http://sbml.org/Software/JSBML>
* for the latest version of JSBML and more information about SBML.
*
* Copyright (C) 2009-2016 jointly by the following organizations:
* 1. The University of Tuebingen, Germany
* 2. EMBL European Bioinformatics Institute (EBML-EBI), Hinxton, UK
* 3. The California Institute of Technology, Pasadena, CA, USA
* 4. The University of California, San Diego, La Jolla, CA, USA
@hovo1990
hovo1990 / Transition_jsbml.java
Last active July 25, 2016 09:09
Transition.java from jsbml repository
/*
* $Id$
* $URL$
* ----------------------------------------------------------------------------
* This file is part of JSBML. Please visit <http://sbml.org/Software/JSBML>
* for the latest version of JSBML and more information about SBML.
*
* Copyright (C) 2009-2016 jointly by the following organizations:
* 1. The University of Tuebingen, Germany
* 2. EMBL European Bioinformatics Institute (EBML-EBI), Hinxton, UK
@hovo1990
hovo1990 / sudo-keepalive-example.sh
Created March 8, 2020 08:13 — forked from cowboy/sudo-keepalive-example.sh
Bash: Sudo keep-alive (good for long-running scripts that need sudo internally but shouldn't be run with sudo)
#!/bin/bash
# Might as well ask for password up-front, right?
sudo -v
# Keep-alive: update existing sudo time stamp if set, otherwise do nothing.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Example: do stuff over the next 30+ mins that requires sudo here or there.
function wait() {
@hovo1990
hovo1990 / jupyter_ngrok.md
Created March 24, 2020 21:05 — forked from artificialsoph/jupyter_ngrok.md
Quickest way to get Jupyter notebook running on a remote server.

Log into your server with ssh, something like

ssh -i "my_secret.pem" ubuntu@12.123.12.123

If it's a new server, you'll need to install a few things.

Install conda with

@hovo1990
hovo1990 / build.sh
Created June 11, 2020 09:23 — forked from Forst/build.sh
Ubuntu ISO with preseed.cfg generation script
#!/bin/bash
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT
# Quit on first error
set -e
# Temporary directory for the build
TMP="/var/tmp/ubuntu-build"
Planet Mass Diameter DayLength SunDistance OrbitPeriod OrbitVelocity MeanTemperature SurfacePressure Moons Rings MagneticField FirstVisited FirstMission
MERCURY 0.33 4879 4222.6 57.9 88 47.4 167 0 0 No Yes 1974-03-29 Mariner 10
VENUS 4.87 12,104 2802 108.2 224.7 35 464 92 0 No No 1962-08-27 Mariner 2
EARTH 5.97 12,756 24 149.6 365.2 29.8 15 1 1 No Yes NA NA
MOON 0.073 3475 708.7 NA 27.3 1 -20 0 0 No No 1959-09-12 Luna 2
MARS 0.642 6792 24.7 227.9 687 24.1 -65 0.01 2 No No 1965-07-15 Mariner 4
JUPITER 1898 142,984 9.9 778.6 4331 13.1 -110 NA 67 Yes Yes 1973-12-04 Pioneer 10
SATURN 568 120,536 10.7 1433.5 10,747 9.7 -140 NA 62 Yes Yes 1979-09-01 Pioneer 11
URANUS 86.8 51,118 17.2 2872.5 30,589 6.8 -195 NA 27 Yes Yes 1986-01-24 Voyager 2
NEPTUNE 102 49,528 16.1 4495.1 59,800 5.4 -200 NA 14 Yes Yes 1989-08-25 Voyager 2
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 1.
"year","artist.inverted","track","time","genre","date.entered","date.peaked","x1st.week","x2nd.week","x3rd.week","x4th.week","x5th.week","x6th.week","x7th.week","x8th.week","x9th.week","x10th.week","x11th.week","x12th.week","x13th.week","x14th.week","x15th.week","x16th.week","x17th.week","x18th.week","x19th.week","x20th.week","x21st.week","x22nd.week","x23rd.week","x24th.week","x25th.week","x26th.week","x27th.week","x28th.week","x29th.week","x30th.week","x31st.week","x32nd.week","x33rd.week","x34th.week","x35th.week","x36th.week","x37th.week","x38th.week","x39th.week","x40th.week","x41st.week","x42nd.week","x43rd.week","x44th.week","x45th.week","x46th.week","x47th.week","x48th.week","x49th.week","x50th.week","x51st.week","x52nd.week","x53rd.week","x54th.week","x55th.week","x56th.week","x57th.week","x58th.week","x59th.week","x60th.week","x61st.week","x62nd.week","x63rd.week","x64th.week","x65th.week","x66th.week","x67th.week","x68th.week","x69th.week","x70th.week","x71st.week","x72nd.week","x73rd.week","x74th.
We can't make this file beautiful and searchable because it's too large.
country,year,age,sex,cases
AD,1996,15-24,f,1.0
AD,1996,15-24,m,0.0
AD,1996,25-34,f,1.0
AD,1996,25-34,m,0.0
AD,1996,35-44,f,0.0
AD,1996,35-44,m,4.0
AD,1996,45-54,f,0.0
AD,1996,45-54,m,1.0
AD,1996,55-64,f,1.0