Skip to content

Instantly share code, notes, and snippets.

@ADTC
ADTC / README.md
Last active Mar 19, 2021
Shopify Code Editor Maximized
View README.md

This is a user style that can be used with the recommended Stylus app, or with the outdated Stylish for Firefox app.

It automatically maximizes the Shopify Code Editor whenever you open it from Themes > Edit Code or by other means.

It does the following:

  • Hides all the unnecessary header bars, and menu, leaving only the file list, the tab bar and the file header.
  • Removes the "Maximize" button.
  • Reduces the width of the file list to just 80% of the original width. More space to code! (Pro tip: This is 22.4rem)
  • Inverts the tab order so that the tabs are on the right (less distracting, and also the scroll bar goes on top).
@ADTC
ADTC / search-autocomplete.liquid
Last active Sep 24, 2020
Autocomplete in Search for Shopify - Modifications for Supply theme
View search-autocomplete.liquid
{% assign results_box_width = '242px' %}
{% assign results_box_background_color = '#ffffff' %}
{% assign results_box_border_color = '#d4d4d4' %}
<script>
// Source: https://www.huratips.com/tech-tips/how-to-add-autocomplete-for-search-boxes-to-your-shopify-store.html
$(function() {
var closeButtonHTML = '<span class="close-button" title="Close">×</span>';
// Current Ajax request.
var currentAjaxRequest = null;
@ADTC
ADTC / navbar.html
Created Nov 26, 2017
Coursetro Vue.js compare tutorial - navbar update (Bulma's nav is deprecated)
View navbar.html
<div class="navbar has-shadow">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item">MyCompany</a>
<span class="navbar-burger" v-on:click="toggleNav" v-bind:class="{ 'is-active': isActive }">
<span></span>
<span></span>
<span></span>
</span>
@ADTC
ADTC / README.txt
Created Sep 25, 2017
Adding a Save button in Atom Status Bar
View README.txt
Install the 'reload-button' package.
Open it and click View Code.
Open the reload-button-view.js file and update the code.
Save file and relaunch Atom.
Note: There is no save icon in Octicons, so I settled for another one.
Diff is included for the curious.
View npm-debug.log
14007 silly gunzTarPerm modes [ '777', '666' ]
14008 silly gunzTarPerm modes [ '777', '666' ]
14009 verbose tar unpack C:\Users\admin\AppData\Roaming\npm-cache\user-home\1.1.1\package.tgz
14010 verbose tar unpacking to C:\Users\admin\AppData\Roaming\npm\node_modules\.staging\user-home-603debab
14011 silly gentlyRm C:\Users\admin\AppData\Roaming\npm\node_modules\.staging\user-home-603debab is being purged
14012 verbose gentlyRm don't care about contents; nuking C:\Users\admin\AppData\Roaming\npm\node_modules\.staging\user-home-603debab
14013 silly gunzTarPerm modes [ '777', '666' ]
14014 silly gunzTarPerm modes [ '777', '666' ]
14015 silly gunzTarPerm modes [ '777', '666' ]
14016 silly gunzTarPerm modes [ '777', '666' ]
@ADTC
ADTC / .log
Created Nov 28, 2013
log and preferences
View .log
!SESSION 2013-11-28 12:14:50.870 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_SG
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.egit.ui 2 0 2013-11-28 12:15:11.789
!MESSAGE Warning: EGit couldn't detect the installation path "gitPrefix" of native Git. Hence EGit can't respect system level