Skip to content

Instantly share code, notes, and snippets.

View davejtoews's full-sized avatar

David Toews davejtoews

View GitHub Profile
@davejtoews
davejtoews / .czrc
Created March 14, 2022 15:52
Custom Commitizen config
{
"path": "cz-emoji",
"config": {
"cz-emoji": {
"symbol": true,
"types": [
{
"emoji": "🎨",
"code": ":art:",
"description": "Improving structure / format of the code.",
@davejtoews
davejtoews / jsObject.code-snippets
Last active March 9, 2021 22:58
JavaScript object code snippet
{
"DataObject": {
"scope": "javascript",
"prefix": "exportableObject",
"body": [
"const ${1:Name} = {",
" $2",
"};",
"",
"export default ${1:Name};",
@davejtoews
davejtoews / davetoews.zsh-theme
Created March 4, 2021 18:02
Custom ZSH Theme
THEME_GREEN=$FG[113]
THEME_ORANGE=$FG[173]
THEME_BLUE=$FG[080]
THEME_RED=$FG[167]
THEME_PURPLE=$FG[134]
THEME_YELLOW=$FG[179]
PROMPT_SUCCESS_COLOR=$THEME_GREEN
PROMPT_FAILURE_COLOR=$THEME_ORANGE
PROMPT_PROMPT=$THEME_BLUE
@davejtoews
davejtoews / SilverStripe.code-snippets
Last active November 18, 2021 22:44
SS4 Code Snippets
{
"DataObject": {
"scope": "html",
"prefix": "SSDataObject",
"body": [
"<?php",
"",
"namespace ${1:Namespace};",
"",
"use SilverStripe\\ORM\\DataObject;",
@davejtoews
davejtoews / findOverflowingElements.js
Created August 15, 2019 22:56
Detect elements which are overflowing your window and causing a side scroll.
[].forEach.call(document.querySelectorAll('*'), function(element) {
if (element.offsetLeft + element.offsetWidth > window.innerWidth) {
console.log(element);
}
});