Skip to content

Instantly share code, notes, and snippets.

View mrprofessor's full-sized avatar
🌓
To the moon!

mrprofessor

🌓
To the moon!
View GitHub Profile
" -----------------------------------------------------------------------------
" File: gruvbox.vim
" Description: Retro groove color scheme for Vim
" Author: morhetz <[email protected]>
" Source: https://github.com/morhetz/gruvbox
" Last Modified: 12 Aug 2017
" -----------------------------------------------------------------------------
" Supporting code -------------------------------------------------------------
" Initialisation: {{{
@mrprofessor
mrprofessor / init.vim
Created July 24, 2019 20:58
neovim dotfile with plug
"
" ███████████████████████████
" ███████▀▀▀░░░░░░░▀▀▀███████
" ████▀░░░░░░░░░░░░░░░░░▀████
" ███│░░░░░░░░░░░░░░░░░░░│███
" ██▌│░░░░░░░░░░░░░░░░░░░│▐██
" ██░└┐░░░░░░░░░░░░░░░░░┌┘░██
" ██░░└┐░░░░░░░░░░░░░░░┌┘░░██
" ██░░┌┘▄▄▄▄▄░░░░░▄▄▄▄▄└┐░░██
" ██▌░│██████▌░░░▐██████│░▐██
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
@mrprofessor
mrprofessor / gifsicle_delete_frames.sh
Last active October 6, 2025 18:49
Delete frames using gifsicle
#gifsicle -O3 -k 8 --lossy=80 -o tty-small.gif js_demo.gif
#gifsicle --lossy=80 -o tty-small.gif js_demo.gif
#gifsicle --delete "#0-12" -o tty-small1.gif tty-small.gif
#gifsicle tty-small.gif --delete "#0-12" -o tty-small.gif
# Make a copy of the file
cp $1 $2
gifsicle "$1" --delete "#1-10" -o "$2"
gifsicle "$2" --delete "#100-105" -o "$2"
echo "script completed"
@mrprofessor
mrprofessor / celery flower
Last active November 25, 2019 18:05
celery flower
FROM python:3.7
RUN mkdir -p /var/www/retail-server
# Update working directory
WORKDIR /var/www/retail-server
COPY requirements.txt ./requirements.txt
# Install explicitly because of segment fault with psycopg2.
import click
import os
import pandas as pd
def file_split(file):
s = file.split(".")
name = ".".join(s[:-1]) # get directory name
return name
import React, { useState, useEffect } from "react";
import { List, Typography } from "antd";
import { gql } from "apollo-boost";
import { useQuery } from "@apollo/react-hooks";
import { useSelector, useDispatch } from "react-redux";
import { updateMarkdownValue, hideModal } from "../../actions";
import { calculateSolitudeRepoName } from "../../utils/utils.js";
import CustomButton from "../../shared/customButton/CustomButton.js";
import CustomTag from "../../shared/customTag/CustomTag.js";
@mrprofessor
mrprofessor / ctags.setup
Created May 8, 2020 03:58 — forked from nazgob/ctags.setup
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
@mrprofessor
mrprofessor / doom.txt
Created May 24, 2020 06:03 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@mrprofessor
mrprofessor / alacritty.yml
Created June 14, 2020 11:04 — forked from sts10/alacritty.yml
My Alacritty config yml for MacOS (compliant with v 0.4.1-dev)
# Configuration for Alacritty, the GPU enhanced terminal emulator
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty it self.
env:
# TERM env customization.
#
# If this property is not set, alacritty will set it to xterm-256color.
#