Skip to content

Instantly share code, notes, and snippets.

@whynotavailable
whynotavailable / notes.el
Created May 22, 2019 15:24
Small snippit to generate note files per date. Also bind it to M-n
(setq note-format "~/notes/%F.org")
(defun make-note()
"Create a new page for today"
(interactive)
(find-file (format-time-string note-format)))
(global-set-key (kbd "M-n") 'make-note)
PROG=program
CC=g++
EXT=cpp
CPPFLAGS=
LDFLAGS=
SRC=$(wildcard *.$(EXT))
OBJS=$(SRC:.$(EXT)=.o)
$(PROG): $(OBJS)
$(CC) -o $(PROG) $(OBJS) $(LDFLAGS)
" run `export TERM=screen-256color` when using tmux
" run `git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim` to install
" Vundle, then run :PluginInstall
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
<!DOCTYPE html> <!-- doctype (just says it's HTML) -->
<html lang="en"> <!-- opening html root tag -->
<head> <!-- opening head tag, used for metadata -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body> <!-- tag for stuff that shows up -->
<h1>Hello Dick Fucks!</h1> <!-- header 1 tag (biggest size) -->
@whynotavailable
whynotavailable / main.go
Last active March 9, 2020 22:31
middleware example in go
package main
import (
"errors"
"log"
"net/http"
)
type handler func(writer http.ResponseWriter, request *http.Request, context map[string]string) error
@whynotavailable
whynotavailable / .editorconfig
Last active March 12, 2020 01:04
my editor config
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 3
indent_style = space
insert_final_newline = true
max_line_length = 120
tab_width = 3

AFI List [18/100]

  • [X] Citizen Kane
  • [ ] The Godfather
  • [ ] Casablanca
  • [ ] Raging Bull
  • [X] Singin’ in the Rain
  • [ ] Gone with the Wind (film)
  • [ ] Lawrence of Arabia (film)
  • [ ] Schindler’s List
  • [ ] Vertigo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.