Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeremy Pinnix jpinnix

View GitHub Profile
@jpinnix
jpinnix / replies.py
Created Sep 21, 2020 — forked from edsu/replies.py
Try to get replies to a particular set of tweets, recursively.
View replies.py
#!/usr/bin/env python
"""
Twitter's API doesn't allow you to get replies to a particular tweet. Strange
but true. But you can use Twitter's Search API to search for tweets that are
directed at a particular user, and then search through the results to see if
any are replies to a given tweet. You probably are also interested in the
replies to any replies as well, so the process is recursive. The big caveat
here is that the search API only returns results for the last 7 days. So
@jpinnix
jpinnix / add_favicons.js
Created Sep 4, 2020 — forked from ottsch/add_favicons.js
Add favicon to links
View add_favicons.js
const addFavicons = () => {
let filtered = Array.prototype.filter.call(document.querySelectorAll('.roam-body-main a'), a => {
return a.hostname && a.hostname !== document.location.hostname;
});
Array.prototype.forEach.call(filtered, a => {
if (a.text == "*") {
a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) right center no-repeat`;
a.style.paddingRight = "18px";
} else {
a.style.background = `url(https://www.google.com/s2/favicons?sz=16&domain=${a.hostname}) left center no-repeat`;
@jpinnix
jpinnix / quote.txt
Created Aug 9, 2020 — forked from OnesimusUnbound/quote.txt
Programming Quotes
View quote.txt
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
~~~
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
View Oh my zsh with autosuggestions & syntax-highlighting.md

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@jpinnix
jpinnix / convert_itermcolors.py
Created Apr 20, 2020 — forked from MSylvia/convert_itermcolors.py
Convert .itermcolors file to html hex
View convert_itermcolors.py
#!/usr/bin/env python
#
# Convert .itermcolors files to hex colors for html
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb
@jpinnix
jpinnix / iterm2kitty.py
Created Apr 20, 2020 — forked from qrbounty/iterm2kitty.py
Convert .itermcolors file to kitty term theme colors
View iterm2kitty.py
#!/usr/bin/env python3
#
# Convert .itermcolors files to kitty terminal color settings.
# Modded from https://gist.github.com/MSylvia/4e90860743f1a4de187d
# Might need to adjust dicts[i][NUMBER].text per your file.
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
@jpinnix
jpinnix / webflow-breakpoints.css
Created Apr 17, 2020 — forked from vejnoe/webflow-breakpoints.css
Webflow Standard Breakpoints
View webflow-breakpoints.css
@media screen and (max-width: 991px) {
/* Your responsive CSS */
}
@media screen and (max-width: 767px) {
/* Your responsive CSS */
}
@media screen and (max-width: 479px) {
/* Your responsive CSS */
}
View 1-rambox-pro-exclusive-diff.txt
10000ft
ActiveCollab
Additor
Aha!
Airtable
Amazing Marvin
Android Messages
Any.do
AnywhereWorks
Arc Studio Pro
View git-cheat-sheet.md
command usage
git init Creates an empty Git repository in the specified directory.
git clone Clones a repository located at onto your local machine.
git add Stages only the specified changes for the
View config_compiler.exs
# This is the target module which will be overwritten after dynamic compilation
# You'll be using this to read configuration in your code. For instance, if you
# have a configuration key called `:redis_timeout`, you could read it using
# `MM.Config.get(:redis_timeout)`
defmodule MM.Config do
# we use a default implementation which raises an error when our code tries
# to read configuration before it is compiled.
def get(_key), do: raise("Config has not been compiled yet!")
end
You can’t perform that action at this time.