Skip to content

Instantly share code, notes, and snippets.

View nastysloper's full-sized avatar
💭
Climbing Rocks, Running Trails, Writing Code

Richard Vogt nastysloper

💭
Climbing Rocks, Running Trails, Writing Code
  • Accenture Federal Services
  • San Antonio, Texas
View GitHub Profile
@nastysloper
nastysloper / html-blank.html
Last active November 27, 2021 04:01
A blank html page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Rad Web Page</title>
<link rel="stylesheet" href="#">
</head>
<body>
<header></header>
<main></main>
@nastysloper
nastysloper / cols.txt
Created January 28, 2019 20:24 — forked from 0/cols.txt
Brief awk tutorial
abc 1 2 3
def 4 5 6
ga 7 9 10
hij 1 5 99
#!/usr/bin/env python
'''
Python Battleship game.
Learning objectives:
Place multiple ships of multiple lengths, distributed randomly.
How to score hits?
Implement game stats - Print / read to a flat file (json), then use a database
Make it a multi-player game
Score for each player, different board and ships? Websockets to play from a different computer? Login? Sure.
@nastysloper
nastysloper / vim cheatsheet.md
Created September 10, 2018 21:42 — forked from jessedearing/vim cheatsheet.md
Vim Cheatsheet

#Vim Cheat Sheet

  • gqip - Reformats paragraph to textwidth
  • gq - Reformats selection
  • :Tab /= - Equally spaces based on the = symbol (requires Tabular vim plugin)
  • :setf language - Changes current language
  • :set language=language - Changes current language
  • <C-a> - Increments the number under the cursor
  • <C-x> - Decrements the number under the cursor
  • ~ - Toggles case and moves to next character in normal mode
@nastysloper
nastysloper / Android Studio .gitignore
Created January 4, 2018 02:38 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files
@nastysloper
nastysloper / curl.md
Created October 19, 2017 16:18 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

Verifying that "richard_vogt.id" is my Blockstack ID. https://onename.com/richard_vogt
#include <iostream.h>
void main(){
printf("Hello, World!\n");
return 0;
}
@nastysloper
nastysloper / lines.md
Created March 25, 2015 14:15
Move lines in vim
@nastysloper
nastysloper / gist:5c4156c5762cee3efd87
Created March 17, 2015 13:55
Change cursor shape in Vim depending on mode
This tip courtesy of Erlend Hamberg
http://hamberg.no/erlend/posts/2014-03-09-change-vim-cursor-in-iterm.html
" Change cursor shape between insert and normal mode in iTerm2.app
if $TERM_PROGRAM =~ "iTerm"
let &t_SI = "\<Esc>]50;CursorShape=1\x7" " Vertical bar in insert mode
let &t_EI = "\<Esc>]50;CursorShape=0\x7" " Block in normal mode
endif