Skip to content

Instantly share code, notes, and snippets.

🚀

Tamas Nagy tlnagy

🚀
Block or report user

Report or block tlnagy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tlnagy
tlnagy / resilio-bindfs.md
Last active Jan 10, 2020
resilio-sync-ubuntu-bindfs.md
View resilio-bindfs.md

Why? ACLs permissions are fragile in my hands and this works a lot better, IMO. Despite caveats.

Install resilio sync and run it as its own user

sudo apt install bindfs
@tlnagy
tlnagy / scaling.md
Created Dec 7, 2019
Fix UI scaling in Snap apps
View scaling.md

On Kubuntu 19.10, snap apps install here:

/var/lib/snapd/desktop/applications

To fix UI scaling, I just add the following flag to each of the .desktop files for Electron apps in that folder

--force-device-scale-factor=1.2
@tlnagy
tlnagy / MuniScraper.jl
Last active Jan 7, 2020
A scraper for SF Muni train data (only tested on OpenSUSE Leap 15.1, Julia 1.1.1)
View MuniScraper.jl
"""
Copyright (c) 2019 Tamas Nagy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
View stellar_analysis_part1.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am tlnagy on github.
  • I am tlngy (https://keybase.io/tlngy) on keybase.
  • I have a public key ASCZ0v6_xUtiDFmiRIqOknf6Zmu36GVYNVECLzJHKjTjbAo

To claim this, I am signing this object:

@tlnagy
tlnagy / multibin_crispulator.ipynb
Created Feb 9, 2018
Example of new multi-bin support in Crispulator
View multibin_crispulator.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mt_model.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tlnagy
tlnagy / type_example.jl
Last active Mar 15, 2016
Example of default constructor in julia
View type_example.jl
# type definition
type NewType
b::AbstractMatrix
end
# default constructor
# initializes a new `NewType` with a random
# 5x5 matrix stored in b
NewType() = NewType(rand(5,5))
@tlnagy
tlnagy / script.py
Created Sep 22, 2015
pubs_plotting_code
View script.py
import pickle
import seaborn as sns
sns.set_style("whitegrid")
%pylab --no-import-all
%matplotlib inline
flatui = ["#9b59b6", "#3498db", "#95a5a6", "#e74c3c", "#34495e", "#2ecc71"]
data = pickle.load(open("allele_dic.pkl", "rb"))
translate = pickle.load(open("translate.pkl", "rb"))
aminotonumber = pickle.load(open("aminotonumber.pkl", "rb"))
@tlnagy
tlnagy / rama.py
Last active Aug 31, 2015
ipqb bootcamp programming assignment
View rama.py
from __future__ import division, print_function
import sys
if sys.version_info[0] < 3:
print("Python 3 required")
sys.exit(1)
import math, urllib.request, re
try:
import matplotlib.pyplot as plt
import seaborn as sns
except ImportError:
You can’t perform that action at this time.