Skip to content

Instantly share code, notes, and snippets.

View djsnipa1's full-sized avatar
💾
codin’

Chad Boyce djsnipa1

💾
codin’
  • 16:41 (UTC -04:00)
View GitHub Profile
@dotiful
dotiful / surfingkeys-config.js
Last active April 10, 2020 20:45
Surfingkeys config. Map your keys for web surfing, expand your browser with javascript and keyboard https://addons.mozilla.org/en-US/firefox/addon/surfingkeys_ff/?src=search
/**
* Surfingkeys config.
*
* An extension that adds Vim-like bindings to your browser in order to extend
* it using JavaScript and a keyboard.
*
* @link https://git.io/surfingkeys
* @author Artem Medvedev <dotiful@gmail.com>
*
* Created at : 2019-01-15
@russgossett
russgossett / index.html
Last active April 16, 2020 08:41 — forked from anonymous/index.html
Parallax Scrolling technique
<body>
<ul id="nav">
<li><a href="#intro" title="Next Section"><img src="http://placekitten.com/50/50" /></a></li>
<li><a href="#second" title="Next Section"><img src="http://placekitten.com/50/50" /></a></li>
<li><a href="#third" title="Next Section"><img src="http://placekitten.com/50/50" /></a></li>
<li><a href="#fifth" title="Next Section"><img src="http://placekitten.com/50/50" /></a></li>
</ul>
<div id="intro">
<div class="story">
@livibetter
livibetter / xmasterm.py
Last active June 29, 2021 22:07
Christmas terminal
#!/usr/bin/python3
# Xmas Terminal
# Copyright (C) 2012, 2015 Yu-Jie Lin
#
# Modified from urwid's code by Yu-Jie Lin
#
# Blog: http://blog.yjl.im/2012/12/christmas-terminal.html
# Gist: https://gist.github.com/livibetter/127287ca94164e38cb09
# Video: https://www.youtube.com/watch?v=jiBcaV0FqTg
#
@takluyver
takluyver / 2to3_nb.py
Last active November 5, 2021 02:45
Run 2to3 on IPython notebooks
#!/usr/bin/env python3
"""
To run: python3 nb2to3.py notebook-or-directory
"""
# Authors: Thomas Kluyver, Fernando Perez
# See: https://gist.github.com/takluyver/c8839593c615bb2f6e80
import argparse
import pathlib
from nbformat import read, write
.css-selector {
    background: linear-gradient(52deg, #f51cc7, #f8960d, #97f80d, #0daef8, #0df8b6);
    background-size: 1000% 1000%;
    -webkit-animation: AnimationName 14s ease infinite;
    -moz-animation: AnimationName 14s ease infinite;
    -o-animation: AnimationName 14s ease infinite;
    animation: AnimationName 14s ease infinite;
}
@-webkit-keyframes AnimationName {
    0%{background-position:0% 90%}
@kana
kana / bookmarklet.txt
Created June 14, 2012 09:18
A bookmarklet to investigate an XPath expression of a clicked element.
javascript:(function(){var dialog=document.createElement("div");var setUpDialog=function(){dialog.style.position="fixed";dialog.style.bottom="0";dialog.style.left="10%";dialog.style.width="80%";dialog.style.color="#333";dialog.style.background="#efe";dialog.style.border="thin solid #9a9";dialog.style.margin="0 0 0.5em";dialog.style.padding="0.5em 1em";dialog.style.fontFamily="monospace";document.getElementsByTagName("body")[0].appendChild(dialog)};var notify=function(message){dialog.textContent=message};var loadJavaScript=function(uri){var script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",uri);document.getElementsByTagName("body")[0].appendChild(script)};var isJQueryLoaded=function(){return window.jQuery!==undefined};var waitLoadingJQuery=function(continuation){var tryCount=0;var step=function(){if(isJQueryLoaded())continuation();else{tryCount++;setTimeout(step,tryCount*100);notify("Loading"+(new Array(tryCount+1)).join("."))}};step()};var getXPath
@anosatsuk124
anosatsuk124 / README.md
Created November 24, 2021 14:21
shellfishrc for fish shell ( Secure fish shell )

shellfishrc for fish shell ( Secure fish shell )

@kevingoldsmith
kevingoldsmith / clean_wpimport_for_pelican.py
Created August 14, 2020 05:42
Clean up the markdown code created from pelican-import from wordpress including downloading and re-adding all the images
import argparse
import xml.etree.ElementTree as ET
from bs4 import BeautifulSoup
import urllib.request
from urllib.parse import urlparse
import os
import re
def get_downloads_from_img(img):
return_list = []
@vtronko
vtronko / pacman-yay-fzf.sh
Created April 8, 2020 05:25
FZF completion for pacman and yay
fay() {
packages=$(awk {'print $1'} <<< $(yay -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi))
[ "$packages" ] && yay -S $(echo "$packages" | tr "\n" " ")
}
fzfman() {
packages="$(awk {'print $1'} <<< $(pacman -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi --select-1))"
[ "$packages" ] && pacman -S $(echo "$packages" | tr "\n" " ")
}
# Go to home directory
cd ~
# You can change what anaconda version you want at
# https://repo.continuum.io/archive/
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p ~/anaconda
rm Anaconda3-5.0.1-Linux-x86_64.sh
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc