Skip to content

Instantly share code, notes, and snippets.

@airicbear
airicbear / executable_jar.md
Last active October 5, 2019 12:59
Java Executable Jar

Creating an executable JAR (Java Archive) file

Compile your source code (.java files to .class files)

javac <PATHS_TO_SRC>

Verbosely create your executable JAR file

@airicbear
airicbear / inactive_titlebar.md
Created October 12, 2019 15:21
Change inactive titlebar color in Windows 10
@airicbear
airicbear / main.c
Created October 26, 2019 01:54
Read files in C
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define MAXNUM 100
typedef struct Person
{
double height;
double weight;
} Person;
@airicbear
airicbear / use_git.md
Last active November 22, 2019 20:54
How to use Git

What is Git?

Git is a tool that you use to keep track of changes in your code.

How do you use Git?

To use Git, install it on your computer.

Using Git in a project

@airicbear
airicbear / Workflow.org
Created December 15, 2019 03:50
My workflow as of December 2019

My Workflow (December 2019)

What is this guide?

This guide provides instructions on how to recreate my workflow (December 2019). The instructions are specific to my system and the current date. I would generally recommend installing the latest version of any software.

System information

....::::       Eric Nguyen@DESKTOP-NCV8RUN
@airicbear
airicbear / Program.fs
Created December 27, 2019 05:20
Tour of F#
// Learn more about F# at http://fsharp.org
open System
module BasicFunctions =
// Use 'let' to define a function
// Parenthesis are optional except for typed arguments
let sampleFunction1 x = x * x + 3
@airicbear
airicbear / spacemacs_sicp_setup.org
Last active December 30, 2019 08:24
Spacemacs + org-mode setup for SICP

Setting up Spacemacs + org-mode for SICP

  1. Install MIT Scheme
  2. Install Guile
  3. Add scheme to dotspacemacs-configuration-layers
  4. Add the following to your dotspacemacs/user-config
(org-babel-do-load-languages
 'org-babel-load-languages
@airicbear
airicbear / multiple_selection.org
Created January 3, 2020 19:39
Spacemacs Multiple Selection

Multiple selection in org-mode

When you have text selected:

  • C-n Next cursor
  • C-p Previous cursor
  • g r q to undo multiple selection
@airicbear
airicbear / ssh_stuff.org
Created January 10, 2020 20:38
How to use SSH (simple)

On Ubuntu 19.10

sudo apt install openssh-server
<restart pc>
ssh localhost
yes
sudo apt install net-tools
ifconfig
@airicbear
airicbear / .Xresources
Created January 20, 2020 06:49
My .Xresources
Xft.dpi: 192
Emacs.Background: black