I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
<script setup> | |
import LinkItem from './LinkItem'; | |
const links = [ | |
{ | |
url: 'https://google.com', | |
text: 'Google', | |
isDisabled: false, | |
}, | |
{ |
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
// IE 10+ | |
@mixin ie-only() { | |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
@content; | |
} | |
} | |
// IE Edge 10+ { | |
@mixin ie-edge-only { | |
@supports (-ms-accelerator:true) or (-ms-ime-align:auto) { |
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
# Makefile for transpiling with Babel in a Node app, or in a client- or | |
# server-side shared library. | |
.PHONY: all clean | |
# Install `babel-cli` in a project to get the transpiler. | |
babel := node_modules/.bin/babel | |
# Identify modules to be transpiled by recursively searching the `src/` | |
# directory. |
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
// Shift the page to a div. Replace 'target' with a jquery selector query. | |
$('html,body').animate({ | |
scrollTop: $(target).offset().top | |
}, 1000); | |
// Shift a div to your current browser window location - Replace 'target' with a jquery selector query. | |
$(target).animate({ | |
top: $(document).scrollTop() | |
}, 800); |
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
# Changing the main site url and home url locations for Wordpress via SQL | |
# Useful when migrating database across environments | |
update wp_options set option_value = 'new_url' where option_name IN ('siteurl', 'home'); |
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 closeVideo(){ | |
$('#dark-overlay').fadeOut(500); | |
$('#iframe-wrapper').fadeOut(500); | |
$('#iframe-wrapper').find('iframe').attr('src', ''); | |
} | |
$(document).ready(function(){ | |
$('a.close-video').click(function(e){ closeVideo(); }); | |
$('a.play-now').click(function(e){ |
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
hr { | |
display: block; | |
height: 1px; | |
border: 0; | |
border-top: 1px solid #ccc; | |
margin: 1em 0; | |
padding: 0; | |
} |
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
/* Here's some examples of IE filters for backgrounds with opacity. The first 2 chars of the hex value are the | |
* opacity values. There are 10 classes to help narrow down which opacity value you might need. | |
*/ | |
.dark-90 { | |
background-color: rgba(0, 0, 0, 0.9); | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#E6000000,endColorstr=#E6000000); | |
} | |
.dark-80 { |
As configured in my dotfiles.
start new:
tmux
start new with session name:
NewerOlder