This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # adapted from: | |
| # https://astronomy.stackexchange.com/questions/7806/exercise-2d-orbital-mechanics-simulation-python | |
| import matplotlib.pyplot as plt | |
| import math | |
| plt.ion() | |
| plt.style.use('dark_background') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // assumes little endian | |
| void print_bits(size_t const size, void const * const ptr) | |
| { | |
| unsigned char *b = (unsigned char*) ptr; | |
| unsigned char byte; | |
| int i, j; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import boto3 | |
| from botocore.client import Config | |
| client = boto3.client( | |
| 's3', | |
| 'us-west-2', | |
| # replace with your credentials | |
| aws_access_key_id='AWS_ACCESS_KEY_ID', | |
| aws_secret_access_key='AWS_SECRET_ACCESS_KEY', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \usepackage{xcolor} | |
| \usepackage{framed} | |
| \usepackage{ifthen} | |
| \newboolean{draftenabled} | |
| \setboolean{draftenabled}{false} % change to enabled to show notes | |
| \ifthenelse{\boolean{draftenabled}} | |
| { | |
| \newenvironment{draft}{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| call plug#begin('~/.local/share/nvim/plugged') | |
| " Quality of life | |
| Plug 'tpope/vim-sensible' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'ctrlpvim/ctrlp.vim' | |
| Plug 'mhinz/vim-startify' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM dorowu/ubuntu-desktop-lxde-vnc:bionic-lxqt | |
| RUN \ | |
| apt-get update && \ | |
| apt-get install -y \ | |
| dirmngr \ | |
| python3-pip && \ | |
| sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' && \ | |
| apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 && \ | |
| apt-get update && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| autoload bashcompinit | |
| bashcompinit | |
| # Lines configured by zsh-newuser-install | |
| HISTFILE=~/.histfile | |
| HISTSIZE=1000 | |
| SAVEHIST=1000 | |
| setopt autocd | |
| bindkey -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>foo</title> | |
| </head> | |
| <body> | |
| <img id="big"/> | |
| <div id="thumbs"></div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # quality of life stuff | |
| alias l="ls -AFG" | |
| alias ll="ls -AFGhl" | |
| alias res="cd ~/Repositories" | |
| alias ..="cd .." | |
| alias ...="cd ../.." | |
| alias .="source" | |
| # text editor setup | |
| alias vi="nvim" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* tree style tab stuff */ | |
| #main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { | |
| opacity: 0; | |
| pointer-events: none; | |
| } | |
| #main-window:not([tabsintitlebar="true"]) #TabsToolbar { | |
| visibility: collapse !important; | |
| } | |
| #sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { | |
| display: none; |
NewerOlder