Skip to content

Instantly share code, notes, and snippets.

View MarkMoretto's full-sized avatar
🐼
Typing something...

Mark Moretto MarkMoretto

🐼
Typing something...
View GitHub Profile
@MarkMoretto
MarkMoretto / less-cmd-quickref.md
Last active February 23, 2024 22:24
Less manpage.
                  SUMMARY OF LESS COMMANDS

     Commands marked with * may be preceded by a number, N.
     Notes in parentheses indicate the behavior if N is given.
     A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.

  h  H                 Display this help.
  q  :q  Q  :Q  ZZ     Exit.
@MarkMoretto
MarkMoretto / point.py
Last active February 1, 2020 16:48 — forked from hirokai/point.py
2D Point class in Python
# from math import sqrt
class Point:
def __init__(self, X, y):
self.X = X
self.y = y
def shift(self, X = 0, y = 0):
"""
@MarkMoretto
MarkMoretto / Python_While_Loop_Demo.py
Last active July 22, 2018 10:02
Simple demo of while loop and data type handling
import sys
from time import sleep
### Function that adds 1 to integer or float, not text
def Add_One(n):
return n + 1
### Function that determines input type and spits out designated result
def Calc_Number(num):
if num.find('.') != -1: