This file contains 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
/** | |
* 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 |
This file contains 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
<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"> |
This file contains 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
#!/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 | |
# |
This file contains 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
#!/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 |
This file contains 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
.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%} |
This file contains 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
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 |
This file contains 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 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 = [] |
This file contains 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
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" " ") | |
} |
This file contains 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
# 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 |
OlderNewer