-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
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
ּ_בּ | |
בּ_בּ | |
טּ_טּ | |
כּ‗כּ | |
לּ_לּ | |
מּ_מּ | |
סּ_סּ | |
תּ_תּ | |
٩(×̯×)۶ | |
٩(̾●̮̮̃̾•̃̾)۶ |
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
# | |
# | |
# The Seedbox From Scratch Script | |
# By Notos ---> https://github.com/Notos/ | |
# | |
# | |
###################################################################### | |
# | |
# Copyright (c) 2013 Notos (https://github.com/Notos/) | |
# |
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
Large Object Motions: | |
( | |
) | |
{ | |
} | |
[[ | |
[] | |
][ | |
]] | |
[m |
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
class AuthorForm(ModelForm): | |
def __init__(self, *args, **kwargs): | |
self.helper = FormHelper() | |
self.helper.form_tag = False | |
self.helper.layout = Layout( | |
Field('name'), | |
) | |
super(AuthorForm, self).__init__(*args, **kwargs) | |
class Meta: | |
model = Author |
If your vim distribution uses vim-plug
and includes plugins you don't want, or if you want to simply maintain a single set of plugins but disable some on certain machines, this may be for you.
let g:plugs_disabled = []
function! plug_disable#commit()
for name in g:plugs_disabled
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
# Add this to your ~/.config/fish/config.fish | |
# Syntax: | |
# To just rerun your last command, simply type '!!' | |
# This forked version supports "sudo !!" via two functions. | |
function !! | |
eval $history[1] $argv | |
end function | |
function sudo | |
if test $argv |
See https://github.com/romainl/vim-rnb for an up-to-date version.
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
>>> from jinja2 import Template | |
>>> tmpl = """{% if name != "Jeff" %}Nothing to see here move along{% else %} | |
... hello {{name}}, how are you?{% endif %}""" | |
>>> template = Template(tmpl) | |
>>> print template.render({"name": "Jeff"}) | |
hello Jeff, how are you? | |
>>> print template.render({"name": "John"}) | |
Nothing to see here move along | |
>>> |
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
function 4chan() { | |
if [[ $# -ne 1 ]] | |
then | |
echo 'No URL specified! Give the URL to the thread as the ONLY argument' | |
return 1 | |
fi | |
# This should look something like: g/thread/73097964 | |
urlPrimative=$(grep -o '[0-9a-zA-Z]\{1,4\}/thread/[0-9]*' <<< $1) | |
NewerOlder