For a version without the collapsible details sections (so you can search the whole thing in your browser), click here.
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
{ | |
"editor.minimap.enabled": false, // removes minimap | |
"editor.fontLigatures": true, | |
"disableLigatures.mode": "Cursor", | |
"editor.fontSize": 14.0, | |
"editor.rulers": [79], | |
"editor.fontFamily": "JetBrains Mono", | |
"editor.renderWhitespace": "none", // removes whitespace chars | |
"editor.renderIndentGuides": false, // removes indent guides | |
"editor.renderLineHighlight": "none", // removes line highlight |
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
# Taken from: https://github.com/dgladkov/django-turbolinks/blob/master/turbolinks/middleware.py#L11 # NOQA | |
def same_origin(current_uri, redirect_uri): | |
a = urlparse(current_uri) | |
if not a.scheme: | |
return True | |
b = urlparse(redirect_uri) | |
return (a.scheme, a.hostname, a.port) == (b.scheme, b.hostname, b.port) | |
class TurbolinksMiddleware(object): |
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
.monaco-workbench .sidebar>.content { | |
padding-top: 10px; | |
padding-left: 20px; | |
padding-right: 20px; | |
} | |
.monaco-tl-twistie.collapsible.collapsed:not(.loading) { | |
margin-top: 10px; | |
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Crect x='0' y='0' width='11' height='11' rx='1.5' fill='%23fff'%3E%3C/rect%3E%3Crect x='1' y='1' width='9' height='9' rx='1.5' stroke='%23333'%3E%3C/rect%3E%3Cline x1='3.5' y1='5.5' x2='7.5' y2='5.5' stroke='%23333'%3E%3C/line%3E%3Cline x1='5.5' y1='3.5' x2='5.5' y2='7.5' stroke='%23333'%3E%3C/line%3E%3C/svg%3E") !important; | |
} |
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
var nodes = document.querySelectorAll('.day'); | |
var items = ['#d6e685', '#8cc665', '#44a340', '#1e6823'] | |
Array.prototype.randomElement = function () { | |
return this[Math.floor(Math.random() * this.length)] | |
} | |
for (var i = 0; i < nodes.length; i++) { | |
if (nodes[i].getAttribute('fill') == '#eeeeee') { |
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
<ul class="tag-box inline"> | |
{% assign tags_list = site.categories %} | |
{% if tags_list.first[0] == null %} | |
{% for tag in tags_list %} | |
<li><a href="#{{ tag }}">{{ tag | capitalize }} <span>{{ site.tags[tag].size }}</span></a></li> | |
{% endfor %} | |
{% else %} | |
{% for tag in tags_list %} | |
<li><a href="#{{ tag[0] }}">{{ tag[0] | capitalize }} <span>{{ tag[1].size }}</span></a></li> | |
{% endfor %} |
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
# -*- coding: utf-8 -*- | |
from django import template | |
from django.template.context import Context | |
from django.template.defaultfilters import stringfilter | |
from django.template.loader import get_template_from_string | |
register = template.Library() | |
@register.filter |
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
{% load i18n %} | |
<div class="row"> | |
<div class="col-xs-12"> | |
<section class="paginator text-center"> | |
<nav> | |
<ul class="pagination"> | |
<li> | |
{% if page.has_previous %} | |
<a href="?page={{ page.previous_page_number }}" aria-label="Previous"> |
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
# Clean, simple, compatible and meaningful. | |
# Terminal command status | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" | |
# Terminal current folder | |
local current_folder="%{$fg[cyan]%}%c" | |
# Machine name. | |
function machine_name { |
NewerOlder