Skip to content

Instantly share code, notes, and snippets.

View macx's full-sized avatar
🚲

David Maciejewski macx

🚲
View GitHub Profile
@macx
macx / HAWK-GT1191.code-profile
Last active March 29, 2024 11:29
VS Code Profile for Beginners
{"name":"HAWK-GT1191","settings":"{\"settings\":\"{\\n \\\"workbench.colorTheme\\\": \\\"Cobalt2\\\",\\n \\\"editor.tabSize\\\": 2,\\n \\\"editor.formatOnSave\\\": true,\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\",\\n \\\"editor.fontSize\\\": 15,\\n \\\"window.zoomLevel\\\": 0,\\n \\\"editor.stickyScroll.enabled\\\": true,\\n \\\"editor.bracketPairColorization.independentColorPoolPerBracketType\\\": true,\\n \\\"editor.guides.bracketPairs\\\": true,\\n \\\"editor.wordWrapColumn\\\": 90,\\n \\\"editor.lineHeight\\\": 1.5,\\n \\\"emmet.triggerExpansionOnTab\\\": true,\\n \\\"emmet.showSuggestionsAsSnippets\\\": true,\\n \\\"prettier.bracketSameLine\\\": true,\\n \\\"prettier.singleQuote\\\": true,\\n \\\"prettier.printWidth\\\": 90,\\n \\\"terminal.integrated.fontSize\\\": 16,\\n \\\"indentRainbow.colors\\\": [\\n \\\"rgba(255,255,64,0.07)\\\",\\n \\\"rgba(127,255,127,0.07)\\\",\\n \\\"rgba(255,127,255,0.07)\\\",\\n \\\"rgba(79,236,236,0.07)\\\"\\n ],\\n \\
@codepo8
codepo8 / 7devsecrets.md
Last active November 16, 2021 13:36
Resources for the "7 Developer Tools secrets that shouldn't be secrets" talks
@fredjoseph
fredjoseph / VirtualBox.md
Last active May 5, 2022 13:44
VirtualBox - Tips and tricks

Tips

Mouse click lost after a while

The solution is to search and kill the processes named /usr/bin/VBoxClient --draganddrop

  • Search pgrep -a VBoxClient
  • Kill kill <pid> (or do both with tools like htop)

Shared clipboard lost after a while

The solution is to kill the current processes named /usr/bin/VBoxClient --clipboard and start a new one.

  • Search pgrep -a VBoxClient
  • Kill kill <pid> (or do both with tools like htop)
@OktarinTentakel
OktarinTentakel / cash-shim.js
Created March 30, 2020 12:40
Cash + Slick Slider
//###[ CASH ]###########################################################################################################
// keep this here in case we want to extend $ or $.fn
import $ from '@client/cash';
_each(
'blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu'.split(' '),
(event) => {
$.fn[event] = function(callback){
if( callback ){
@OliverJAsh
OliverJAsh / foo.md
Created December 8, 2017 11:29
Avoiding CSS overrides in responsive components

Avoiding CSS overrides in responsive components

I would like to demonstrate some of the benefits of scoped styles over mobile-first CSS with overrides for wider breakpoints. I'll start by explaining the two approaches, before listing the benefits.

Mobile-first with overrides for wider breakpoints

h2 {
  color: black;
 font-size: 2em;

Given a subscribed calendar with a url like

https://example.com/example.ics

To force Google Calendar to refresh and reload the contents right now, unsubscribe from the calendar and subscribe to a new calendar with a URL like

https://example.com/example.ics#1

Adding the anchor tag will force Google Calendar to think of it as a new calendar

@shopifypartners
shopifypartners / a-beginners-guide-to-sass-part-3-interpolation.liquid.scss
Last active February 13, 2023 08:04 — forked from stewartknapman/style.liquid.scss
A Beginner's Guide to Sass with Shopify — Part 3: Sass interpolation, Workflow and Object Oriented CSS - https://www.shopify.com/partners/blog/a-beginners-guide-to-sass-with-shopify-part-3
// Escaping Liquid in SCSS.
//
// Expected output:
// a{
// color: {{ settings.link-color }};
// }
a{
color: #{'{{ settings.link-color }}'};
}
@TylerFisher
TylerFisher / README.md
Last active July 13, 2021 18:48 — forked from onyxfish/README.md
Google Spreadsheets script to generate slugs from a range of cells

This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.

Use it like this!

# A B C
1 a b slug
2 foo baz bing =slugify(A2:B4)
3 bar BAZ
4 FOO baz-bing
@azizur
azizur / Creating a static copy of a dynamic website.md
Last active April 27, 2024 06:08
Creating a static copy of a dynamic website

The command line, in short…

wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/

…and the options explained

  • -k : convert links to relative
  • -K : keep an original versions of files without the conversions made by wget
  • -E : rename html files to .html (if they don’t already have an htm(l) extension)
  • -r : recursive… of course we want to make a recursive copy
  • -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.
@JamesMessinger
JamesMessinger / README.md
Last active March 9, 2024 17:58
VSCode GitHub Markdown Theme

GitHub Markdown Theme for Visual Studio Code

This CSS stylesheet allows you to preview markdown files in VSCode using GitHub's mardown theme. This CSS was taken directly from the official GitHub Markdown repo. I replaced their top-level .markdown-body class with the body tag so it would work in VSCode, and added styling for the html tag to match GitHub's fixed-width container.

Instructions

  1. Copy the CSS file to your computer
    Copy the github-markdown.css file below to your computer. You can put it anywhere you want, but I chose to put it in the same folder as my VSCode settings file.

  2. Edit your VSCode settings
    If you want to use this theme for all of your projects, then edit your User Settings file. If you just want to use this them