Skip to content

Instantly share code, notes, and snippets.

@JayGwod
JayGwod / notes.md
Created August 18, 2019 20:26
[How to Learn Anything... Fast - Josh Kaufman]Author and business adviser Josh Kaufman reveals a new approach for acquiring new skills quickly with just a small amount of practice each day.

Abstract

  1. set up ur goal
  2. break down into smaller goals and steps
  3. research on every sub tasks: 3 - 5 resources, focus on resources that repetedly appear
  4. remove barriers to pratice , avoid distractions: tv, Internet, friends, social media, focus and force urself to pratice
  5. pre-commitment at least 20 hours to make it through (40 mins x 30day)

Source

@JayGwod
JayGwod / notes.md
Last active September 16, 2023 15:39
[Research tools]Some useful apps and websites, including literature management using #zotero, #keras, #jupyter.
@JayGwod
JayGwod / PrettyTable.py
Last active April 29, 2022 00:00
[Useful packages and matplotlib preamble]Here is a full #notebook preamble with some options to make the plots more publication ready.
# class PrettyTable
class PrettyTable(list):
""" Overridden list class which takes a 2-dimensional list of
the form [[1,2,3],[4,5,6]], and renders HTML and LaTeX Table in
IPython Notebook. For LaTeX export two styles can be chosen."""
def __init__(self, initlist=[], extra_header=None, print_latex_longtable=True):
self.print_latex_longtable = print_latex_longtable
if extra_header is not None:
if len(initlist[0]) != len(extra_header):
@JayGwod
JayGwod / notes.md
Last active September 9, 2019 13:51
[Getting Started with AWS S3 CLI]#AWS

The video will cover the following:

Step 1: Install AWS CLI

sudo pip install awscli

Pre-req: Python 2 version 2.6.5+ or Python 3 version 3.3+

Pre-req: pip is installed

@JayGwod
JayGwod / notes.md
Last active November 30, 2020 01:11
[Stanford CS230: Deep Learning | Autumn 2018 | Lecture 8 | Career Advice / Reading Research Papers]#stanford #cs230 #deep_learning #research

Reading research papers

  • Compile list of papers. (arXiv, medium/blog posts.)
  • Skip around the list.
    • 5 - 20 papers: a basic understanding of an area.
    • 50 - 100 papers: a very good understanding of an area.

Reading 1 paper

Take multiple passes through the paper:

@JayGwod
JayGwod / notes.md
Last active November 30, 2020 02:26
[Stanford CS230: Deep Learning | Autumn 2018 | Lecture 1 - Class Introduction and Logistics]#stanford #cs230 #deep_learning

CS230 focuses on deep learning and goes the deepest in the practical know-how in how to apply these algorithms.

What has happened in the last decade is, the amount of math you need to be a great machine learning person has actually decreased. Do less math in CS230 but spend more time teaching you the practical know-how of how to actually apply these algorithms.

Internet era

Schopping mall + website ≠ Internet company:

  • A/B testing
  • Short shipping times.
@JayGwod
JayGwod / note.md
Last active February 26, 2021 08:21
[VBox guest editions fails on CentOS 7]kernel-devel-3.10.0-862.14.4.el7.x86_64 not found. #VBox #CentOS

dotless-de/vagrant-vbguest#311 (comment)

The same on VirtualBox 5.2.20 and 5.2.18. centos/7 Vagrant box v1809.01 kernel-devel-3.10.0-957.1.3.el7.x86_64 was installed instead of kernel-devel-3.10.0-862.14.4.el7.x86_64.

Indeed, same issue here. I got around this by updating the kernel to 3.10.0-957, but this is just a temporary workaround, must be a better way, e.g.

  • vagrant up ... until it fails as above
  • vagrant ssh
@JayGwod
JayGwod / requirements.txt
Last active July 19, 2021 06:46
[Django vscode configuration]Vscode django project settings. #django #vscode
black
isort
autopep8
pylint
pylint-django
@JayGwod
JayGwod / notes.md
Last active September 27, 2021 00:01
[Django E-commerce Project v2 Part 1 - Database Design]#django #database

Field Names

  1. Unique, descriptive name that is meaningful
  2. Accurate, clear, and unambiguous
  3. minimum number of words
  4. Avoid word that convey physical characteristics
  5. Avoid where possible acronyms and abbreviations

Ideal Fields

@JayGwod
JayGwod / FundMe.sol
Last active November 21, 2021 17:13
[Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial]Source: https://www.youtube.com/watch?v=M576WGiDBdQ&t=2646s #ETH
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;
interface AggregatorV3Interface {
function decimals() external view returns (uint8);
function description() external view returns (string memory);
function version() external view returns (uint256);