Skip to content

Instantly share code, notes, and snippets.

View bstonedev's full-sized avatar

Brett Stone bstonedev

View GitHub Profile
@bstonedev
bstonedev / hide-scrollbar.css
Created June 20, 2020 08:51
Hide Scrollbar with CSS
::-webkit-scrollbar {
display: none;
}
@bstonedev
bstonedev / mac-keyboard-shortcuts-to-reduce-stress.md
Last active June 24, 2020 03:53
Mac keyboard shortcuts that save a lot of stress!

Alternate between open programs

⌘ + Tab

Alternate between open windows of the same program

⌘ + `

Paste Special -> Values within Excel (AMAZING)

⌘ + option + V THEN V THEN enter

Quit application

⌘ + Q

Close current tab in Chrome

⌘ + W

@bstonedev
bstonedev / fav-excel-formulas.md
Last active July 11, 2020 04:16
Favourite Excel Formulas (Work In Progress)

TEXTJOIN

Combine text across a bunch of cells into one cell =TEXTJOIN("",TRUE,A2:A10)

EXCTRACT FIRST N NUMBER OF SENTENCES OUT OF STRING IN CELL

Replace 3 with the number of sentences you wish to extract. =TRIM(LEFT(A2,FIND("^",SUBSTITUTE(TRIM(A2)&".",".","^",3))-1))&"."

@bstonedev
bstonedev / make-the-$-issues-go-away.js
Created June 29, 2020 00:13
Make the $ Issues Go Away
var $ = jQuery.noConflict();
@bstonedev
bstonedev / addeventlistener-methods.js
Created June 29, 2020 00:15
addEventListener() Methods
document.getElementById("myBtn").addEventListener("click", function(){
document.getElementById("demo").innerHTML = "Hello World";
});
document.getElementById("myBtn").addEventListener("click", myFunction);
function myFunction() {
document.getElementById("demo").innerHTML = "Hello World";
}
@bstonedev
bstonedev / fire-an-event-date-select-jquery-datepicker.js
Created June 29, 2020 00:18
jquery datepicker: how to fire an event when a date is selected
$('.selector').datepicker({
onSelect: function(dateText, inst) {
console.log(dateText + " has been selected!");
}
});
@bstonedev
bstonedev / re-instantiate-jquery-datepicker.js
Created June 29, 2020 00:19
re-instantiate jquery datepicker
$( ".selector" ).datepicker( "destroy" );
$( ".selector" ).datepicker( {
// ... new instant
dateFormat: "dd/mm/yy",
minDate: "+1"
});
@bstonedev
bstonedev / dig-thru-tld-nameserver.md
Created July 5, 2020 23:28
DIG thru certain TLD nameserver

dig website.com @8.8.8.8 MX

@bstonedev
bstonedev / inset-box-shadow.md
Created August 12, 2020 22:47
CSS for inset box-shadow

| With border | With box-shadow | | border: 1px solid red | box-shadow: inset 0 0 0 -1px red | | border-top: 1px solid red | box-shadow: inset 0 1px 0 0 red | | border-right: 1px solid red | box-shadow: inset -1px 0 0 red | | border-bottom: 1px solid red | box-shadow: inset 0 -1px 0 0 red | | border-left: 1px solid red | box-shadow: inset 1px 0 0 red |