Skip to content

Instantly share code, notes, and snippets.

View lee2sman's full-sized avatar

Lee T lee2sman

  • W/O/R/L/D/W/I/D/E
View GitHub Profile
@lee2sman
lee2sman / setting-up-i3-for-dvorak.md
Last active September 6, 2024 12:38
I cobbled together a method to install i3 window manager for Dvorak

Setting up i3 when you use Dvorak

The process to set up i3 for use by Dvorak users is maddening and works unlike any other window manager or software I've used previously. It's especially difficult for me since I don't remember QWERTY anymore (it's been 14 years for me) and I have Dvorak positioned keys on my keyboard.

Anyway, here is the unpleasant process to get it to work at a bare minimum. I haven't found this documented in a single place elsewhere, and the steps usually assume that you understand how to do something in i3 already.

Download and install i3. I read you need these other packages as well. I'm coming from Ubuntu.

sudo apt install i3 i3status dmenu i3lock xbacklight feh
@Ammaraf
Ammaraf / PY0101EN-4-1-ReadFile.ipynb
Created January 2, 2020 05:43
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aparrish
aparrish / semantic_similarity_chatbot.ipynb
Created July 17, 2018 17:33
Semantic similarity chatbot (with movie dialog). Gist mirror of Colab notebook here: https://colab.research.google.com/drive/1XlmtcyMdPRQC6bw2HQYb3UPtVGKqUJ0a Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@glubsy
glubsy / i3bg3.py
Last active October 17, 2024 05:55
Improvements on u/caagr98's i3bg.py script for workspace-specific wallpapers
#!/usr/bin/env python3
#i3 per-workspace background for Caagr98 https://gist.github.com/Caagr98/f74e149403e5c1f92006158f09108a78
#deps: pip3 install python3-xlib i3ipc Pillow
# usage: i3bg2.py /path/to/directory
# where directory holds wallpapers to randomly pick from (optional)
import Xlib.threaded
import Xlib
import Xlib.display
from Xlib import Xatom
from PIL import Image
@abhisheknaik96
abhisheknaik96 / twitterJekyllEmbed.md
Last active September 5, 2023 05:26
A tutorial on embedding a twitter stream to a Jekyll project.

Embedding a twitter stream in Jekyll

  1. Create a _plugins folder in your root.
  2. Add the following to _config.yml
plugins:
  - jekyll-gist
  1. If you don't have a Gemfile associated with your Jekyll project, create one with the following text

PocketCHIP stuff

Utility

build in calculator: xcalc

use the built in browser: surf http://google.com (need help, man surf)

get a text browser: sudo apt-get install lynx

@kometbomb
kometbomb / tweetjam.md
Last active May 13, 2024 05:56
PICO-8 tweetjam stuff

PICO-8 size optimization stuff for tweetcarts

Here are some simple ways to make your PICO-8 code fit in 140 280 characters (as in the #tweetjam #tweetcart craze). I did not invent these, I merely observed and collected them from the tweetjam thread.

LUA syntax stuff

  • Use single character variable names
  • Use x=.1 and x=.023, not x=0.1 or x=0.023
  • x=1/3 is shorter than x=.3333
  • You don't need to separate everything with spaces or write them on their own lines, e.g. circ(x,y,1)pset(z,q,7) works just as well
@michaellee
michaellee / jekyll-post-page.md
Created June 12, 2016 03:22
Jekyll 101: Creating a new post and page

One of the features that made me fall in love with Jekyll was how super simple it was to start a new project. With one command jekyll new project_name you've got a brand new Jekyll project to start working on.

Posts

If your new Jekyll project is going to be used for blogging, you'll want to create posts for your new blog.

Jekyll by default provides a folder in which all your posts live. Within the Jekyll project, you'll find a folder called _posts. To create a new post you'll need to create a new markdown file with a file name in this format:

YYYY-MM-DD-title.markdown
@aparrish
aparrish / index.md
Last active December 2, 2021 13:26
Writing Poetry with Procedure: A Workshop

Writing Poetry with Procedure: A Workshop

Led by Allison Parrish

Description

Practitioners in the field of procedural writing have been using rules, procedures and computer programs to create innovative literary work since the invention of the digital computer. Far from the bland imitation evoked by the phrase "computer-generated poetry," these techniques facilitate the creation of work with aesthetic and emotional affordances sometimes difficult to achieve through conventional compositional techniques: serendipitous beauty, precisely imitative satire, vertiginous wonder at the infinite. In this workshop, participants will learn about the history of computer-generated writing and sample a range of off-the-shelf, freely-available tools on the web to create their own—without writing any actual lines of code. No previous programming experience is required.

Outline

@cvan
cvan / HOWTO.md
Last active October 27, 2024 09:49
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you