Skip to content

Instantly share code, notes, and snippets.

View tonellotto's full-sized avatar

Nicola Tonellotto tonellotto

View GitHub Profile

Firing up LaTex on macOS 🔥

As I'm writing this small tutorial, I assume you've read my previous one about setting up macOS, so if for any tool I'll use without explanation, look to that other article.

MacTex

The full version IS NOT MANDATORY, as in the tutorial that follows I installed the smaller version of MacTeX and proceded installing every needed dependency. Installing the complete package is about ~3.5GB of download and ~5GB on disk, the smaller one is just about 80MBs.

Click here to download the complete version or here to download the smaller version.

Gnuplot

@tonellotto
tonellotto / Sublime Text on Steroids.md
Created May 19, 2022 12:00 — forked from LucaCappelletti94/Sublime Text on Steroids.md
A quick guide to get a super sublime text

Sublime Text on Steroids 💪

Getting Sublime

Sublime Text is an awesome text editor. You can get it either from its website or, if you are on a mac, by running the following:

brew cask install sublime-text

Package Control

Now you need Package Control, that you can either install via the command they offer on their website or, if you have an updated version of Sublime Text, you should find an option to install it under "Tools".

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonellotto
tonellotto / geodesy_regex.py
Created June 22, 2021 15:19 — forked from cgudea/geodesy_regex.py
regular expressions for verifying common coordinate systems
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#!/bin/bash
## This gist contains instructions about cuda v10.1 and cudnn 7.6 installation in Ubuntu 18.04 for Tensorflow 2.1.0
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@tonellotto
tonellotto / gitcom.md
Created March 20, 2020 09:27 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@tonellotto
tonellotto / frozenlake8x8_policyiteration.py
Created August 1, 2018 11:46
Solution of FrozenLake8x8 environment using Policy Iteration.
"""
Solving FrozenLake8x8 environment using Policy iteration.
Author : Moustafa Alzantot ([email protected])
"""
import numpy as np
import gym
from gym import wrappers
def run_episode(env, policy, gamma = 1.0, render = False):
@tonellotto
tonellotto / frozenlake8x8_valueiteration.py
Created August 1, 2018 11:44
Solution of FrozenLake8x8 environment using Value Iteration.
"""
Solving FrozenLake8x8 environment using Value-Itertion.
Author : Moustafa Alzantot ([email protected])
"""
import numpy as np
import gym
from gym import wrappers