Skip to content

Instantly share code, notes, and snippets.

View Astroneko404's full-sized avatar
🎊
Wooo!

Astron Lagrange Astroneko404

🎊
Wooo!
View GitHub Profile
@Astroneko404
Astroneko404 / xcursor theme tutorial v1.1.md
Last active February 14, 2023 04:16
A tutorial to create a cursor theme on Ubuntu. Example on https://github.com/Astroneko404/FFXI_Chocobo_Cursor_Theme_Ubuntu

XCURSOR THEME TUTORIAL v1.0

By Omletto Lagrange

======== Updates ========
-- v1.1 The installation steps are modified

Before starting this tutorial, thanks the txt guide from sole and the video guide from MrGondol90. It is my first time to create a xcursor theme and these guides helped me a lot.

1) Config files

Suppose that we've already finished our design of cursors and saved them as .PNG files, then we need config files to hold their information such as size, frames, etc.

Split Array Largest Sum [LeetCode #410]

Problem

Given an array nums, which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an algorithm to minimize the largest sum among these m subarrays.


Goal

Among all subarrays, there exists a maximum sum. Our goal is to optimize the splitting, such that the maximum sum has the smallest value.

@Astroneko404
Astroneko404 / TELECOM 2000 Midterm Review Notes (Part 2).md
Last active October 13, 2019 23:10
TELECOM 2000 Midterm Review Notes (Part 2)

Diffusion on a Network: Disease, Information, Ideas

SI Model

  1. Population of N people that fall into one of the two groups
    • Susceptible
    • Infected
  2. People can move from being susceptible to being infected
  3. Initially, people are infected, and the rest are susceptible to infection
  4. In each time period, you encounter c other people at random
  5. For each infected person you encounter, you become infected with probability p
  6. Only one outcome: everyone is infected
@Astroneko404
Astroneko404 / Image Upload.md
Created October 13, 2019 21:51
Image Upload

For image uploading only

@Astroneko404
Astroneko404 / TELECOM 2000 Midterm Review Notes (Part 1).md
Last active October 14, 2019 22:34
TELECOM 2000 Midterm Review Notes (Part 1)

Bridging, Brokerage, Closure, and the Strength of Weak Ties

Components

  1. Connected component: A set of nodes that can all be reached from each other via a path
  2. Largest connected component: The biggest
  3. Giant component: A CC that comprises a significant fraction of the nodes in the network

Bridges

  1. Bridge: A link that, if deleted, would put the two nodes in different components
  2. Local bridge: A link that, if deleted, would put the connected nodes in much more distant parts of the network
  • Span of a local bridge: The length of the geodesic between the two nodes once the bridge is removed
@Astroneko404
Astroneko404 / INFSCI 2420 Midterm Review Notes (Part 1).md
Last active October 15, 2019 21:03
INFSCI 2420 Midterm Review Notes (Part 1)

Text Normalization

Regular Expression

Example
grep “elect” news.txt
  • Matching strings that we should not have matched (False Positives) -> Increase accuracy or precision
  • Not matching things that we should have matched (False Negatives) -> Increase coverage or recall

Text Normalization

Purpose
@Astroneko404
Astroneko404 / word2vec_pretrained_models.md
Last active October 30, 2019 15:46
Some pre-trained Word2Vec models
@Astroneko404
Astroneko404 / TELECOM 2000 Final Review Notes (Part 1).md
Last active November 9, 2019 22:46
TELECOM 2000 Final Review Notes (Part 1)

Communication Networks

Abstract Model

  • Nodes
    • Device that communicate
      • End devices: Clients, servers, ...
      • Interconnecting devices: Switch, router, ...
  • Edges
    • Transmission media used to connect divices
      • Wired
  • Wireless
@Astroneko404
Astroneko404 / INFSCI 2420 Final Notes.md
Last active December 5, 2019 03:45
INFSCI 2420 Final Notes

Based on Speech and Language Processing (3rd edition draft) by Daniel Jurafsky et al.

Ch. 19 Word Senses and WordNet

Word Senses

Word sense:
A discrete representation of one aspect of the meaning of a word.

The meaning of a word can be defined by its co-occurrences, the counts of words that often occur nearby => Word embedding models like Word2Vec or GloVe.

How dictionaries and thesauruses define senses

  1. Using glosses -- a translation or explanation of a word or expression;
  2. Defining a sense through its relationship with other senses.

Problem

A lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:

$e^{i \pi} = -1$

Unfortunately, GitHub does not support inline formulas. The issue is tracked here.

Investigation