Skip to content

Instantly share code, notes, and snippets.

View dmamills's full-sized avatar
💭
ya yr smart but you'll never b dolphin smart

dmamills

💭
ya yr smart but you'll never b dolphin smart
View GitHub Profile
@dmamills
dmamills / main.cpp
Created July 9, 2023 17:06
k-mart dopewars clone
#include <cstdio>
#include <iostream>
#include <vector>
#include <map>
#include <string>
struct Drug {
std::string name;
int low_range;
int high_range;
@dmamills
dmamills / lmao.js
Created February 21, 2022 00:17
this is how i write code 247
let i;
let h={};
const si=setInterval;
const ci=clearInterval;
const ls=localStorage;
const mr=Math.random;
const mf=Math.floor;
const ael='addEventListener';
const it='innerText';
const mi='mouseover';
@dmamills
dmamills / get.c
Last active September 13, 2021 22:36
basic HTTP get unix socket
#include <stdio.h>
#include <strings.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <fcntl.h>
#include <netdb.h>
# mills .tmux.conf
# Some tweaks to the status line
set -g status-right "%H:%M"
# Enable RGB colour if running in xterm(1)
set-option -sa terminal-overrides ",xterm*:Tc"
# Change the default $TERM to tmux-256color
set -g default-terminal "screen-256color"
" vim settings
call plug#begin('~/.vim/plugged')
Plug 'crusoexia/vim-monokai'
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-commentary'
Plug 'mileszs/ack.vim'
Plug 'StanAngeloff/php.vim'
Plug 'Shougo/vimproc.vim', {'do' : 'make'}
Plug 'MaxMEllon/vim-jsx-pretty'
# MILLS ZSH THEME, pizza in yo prompt
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
local p="🍕 "
PROMPT="╭─${user_host} ${current_dir} ${git_branch}
╰─%B${p}%b "
@dmamills
dmamills / Dockerfile
Created November 6, 2019 18:58
node + mysql docker-compose
FROM node:10.15.0-alpine
EXPOSE 3000 9229
WORKDIR /home/rarerecords
COPY package.json /home/rarerecords/
COPY package-lock.json /home/rarerecords/
COPY . /home/rarerecords
RUN apk add --no-cache make gcc g++ python

Keybase proof

I hereby claim:

  • I am dmamills on github.
  • I am bokonon (https://keybase.io/bokonon) on keybase.
  • I have a public key ASBd0CfLdTyiIBCoMVtxOO79ZMxVtJ_6_v7gi3OgKp_uNwo

To claim this, I am signing this object:

@dmamills
dmamills / .vimrc
Last active September 19, 2018 01:43
dotbois
set nu
set paste
syntax on
colorscheme monokai
filetype on
" tabs n' stuffs
set expandtab
set smarttab
set tabstop=2
function Observable(val) {
var listeners = [];
observe.set = function(nv) {
val = nv;
listeners.forEach(function(l) {
l(val);
});