Skip to content

Instantly share code, notes, and snippets.

View zachinglis's full-sized avatar

Zach Inglis zachinglis

View GitHub Profile
$list = $('.collections__list');
$item = $list.find('.list__item--is-selected');
$prev = $item.prev();
if ($(window).width() < 700) {
// collections put whatever collection is selected at top of list on mobile
$list.prependTo('.collections__list');
}
// collections put whatever collection is selected at top of list on mobile
<div>
<ul>
{% for item in site.data.navigation.navsecondary %}
<li>{{ item.title }}</li>
{% if item.subnav %}
<!-- This appears fine -->
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 15,
// font family with optional fallbacks
fontFamily: '"Operator Mono SSm", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@zachinglis
zachinglis / stylish.css
Created April 24, 2019 05:33
Stylish: Twitter Sidebar Remover
[aria-label="Timeline: Your Home Timeline"] {
width: 500px;
}
[data-testid="sidebarColumn"] {
display: none;
position: absolute;
left: 0;
top: 0;
}
.r-1ye8kvj, [data-testid="primaryColumn"], [aria-label="Timeline: Your Home Timeline"] {