Skip to content

Instantly share code, notes, and snippets.

View JamesVStone's full-sized avatar

James Stone JamesVStone

  • 127.0.0.1/8
View GitHub Profile
@JamesVStone
JamesVStone / remap_keys.txt
Created October 4, 2020 14:50
dont-curl.me
You shouldn't have curled me :(
You may want to restart your shell
Find out more at dont-curl.me
 # bell character
(0 # escape code to remap keys on terminal

Keybase proof

I hereby claim:

  • I am jamesvstone on github.
  • I am mord0r (https://keybase.io/mord0r) on keybase.
  • I have a public key ASAJj8d89hV29-cWSYbxspGYfAAz71fj3D8hgB23qoc6Ugo

To claim this, I am signing this object:

@JamesVStone
JamesVStone / file_year_sorter.py
Last active April 21, 2019 19:43
Python Script to sort JPEG images into year folders by EXIF data
#!/usr/bin/env python3
import os
import sys
import imagehash
from PIL import Image, ExifTags
from tqdm import tqdm
import threading
print("\nWelcome to fsorter 3000\n")

Working with text files

Text files

A text (txt files) file is a file containing an encoded string which is split into lines The most common encoding for these files is ASCII because it contains all the characters we need and is relatively compact. The reason you may use other encoding ciphers is if you need accents or other special characters.

A simple .txt file is called a sequential file.

VB.NET 8- String Manipulation

James Stone

String Variable Type

A string consists of an array of encoded characecters

To create a string in visual basic use

#Formulas

\[x = b^2 \over 2a\]

@JamesVStone
JamesVStone / 7 Mastering Arrays.md
Created April 16, 2018 21:50
Homework 7- Mastering Arrays VB.net

Mastering Arrays

Arrays are like lists, or the ability to store multiple values in a single variable. For example, if you wanted to add scores or even just condence your code.

Visual Basic

In visual basic to create an array you must declare traditionaly with "Dim" but after the name you must specify how many items you want in your array (0 included).

Dim myName(1) As String

Mastering Arrays

Arrays are like lists, or the ability to store multiple values in a single variable. For example, if you wanted to add scores or even just condence your code.

Visual Basic

In visual basic to create an array you must declare traditionaly with "Dim" but after the name you must specify how many items you want in your array (0 included).

Dim myName(1) As String

Mastering Arrays

Arrays are like lists, or the ability to store multiple values in a single variable. For example, if you wanted to add scores or even just condence your code.

Visual Basic

In visual basic to create an array you must declare traditionaly with "Dim" but after the name you must specify how many items you want in your array (0 included).

Dim myName(1) As String

Mastering Arrays

Arrays are like lists, or the ability to store multiple values in a single variable. For example, if you wanted to add scores or even just condence your code.

Visual Basic

In visual basic to create an array you must declare traditionaly with "Dim" but after the name you must specify how many items you want in your array (0 included).

Dim myName(1) As String