Snippets Collections
{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":star: Boost Days - What's on this week! :star:"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Happy Monday Singapore! We're excited to kickstart another great week in the office with our new Boost Day Program :zap: Please see below for what's coming up! "
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-26: Monday, 26th Aug",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n:coffee: *Café Partnership*: Café-style beverages with Group Therapy Coffee\n:breakfast: *Lunch*: Provided by *Group Therapy Café* from *12PM - 2PM* in the Kitchen."
			}
		},
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": ":calendar-date-31: Wednesday, 28th Aug",
				"emoji": true
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "\n:blob-party: *Social +*: Get ready for some Nashville style hot chicken from *Chix Hot Chicken* with different spicy levels to challegnes yourselves at 4pm in the Kitchen!:chilli:"
			}
		},
		{
			"type": "divider"
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "Stay tuned to this channel for more details, check out the <https://calendar.google.com/calendar/u/0?cid=Y19lZTA1MmE0NWUxMzQ1OTQ0ZDRjOTk2M2IyNjA4M[…]MjRmZmJhODk0MGEwYjQ4ZDllQGdyb3VwLmNhbGVuZGFyLmdvb2dsZS5jb20|*Singapore Social Calendar*>, and get ready to Boost your workdays!\n\nLove,\nWX Team :party-wx:"
			}
		}
	]
}
Open "imports/theme.nss" and change dark option to default or auto

dark = default

Save changes, press CTRL + RIGHT-CLICK to reload settings.
[
    {
        "$lookup": {
            "from": "participant",
            "localField": "participantId",
            "foreignField": "_id",
            "as": "participants"
        }
    },
    {
        "$unwind": {
            "path": "$participants",
            "preserveNullAndEmptyArrays": true
        }
    },
    {
        "$lookup": {
            "from": "subscription",
            "localField": "participantId",
            "foreignField": "userId",
            "as": "subscriptions"
        }
    },
    {
        "$unwind": {
            "path": "$subscriptions",
            "preserveNullAndEmptyArrays": true
        }
    },
    {
        "$lookup": {
            "from": "subscriptionPlan",
            "localField": "subscriptions.planId",
            "foreignField": "_id",
            "as": "subscriptionPlans"
        }
    },
    {
        "$unwind": {
            "path": "$subscriptionPlans",
            "preserveNullAndEmptyArrays": true
        }
    },
    {
        "$match": {
            "nutritionistID": {
                "$oid": "64782249defe1c75d7689cbd"
            }
        }
    },
    {
        "$match": {
            "subscriptions.planId": {
                "$exists": true
            }
        }
    },
    {
        "$match": {
            "participants": {
                "$exists": true
            }
        }
    },
    {
        "$match": {
            "participants": {
                "$exists": true
            }
        }
    },
    {
        "$match": {
            "active": true
        }
    }
]




//query 2
[
    {
        "$lookup": {
            "from": "participant",
            "localField": "participantId",
            "foreignField": "_id",
            "as": "participants"
        }
    },
    {
        "$unwind": {
            "path": "$participants",
            "preserveNullAndEmptyArrays": true
        }
    },
    {
        "$lookup": {
            "from": "subscription",
            "localField": "participantId",
            "foreignField": "userId",
            "as": "subscriptions"
        }
    },
    {
        "$unwind": {
            "path": "$subscriptions",
            "preserveNullAndEmptyArrays": true
        }
    },
    {
        "$lookup": {
            "from": "subscriptionPlan",
            "localField": "subscriptions.planId",
            "foreignField": "_id",
            "as": "subscriptionPlans"
        }
    },
    {
        "$unwind": {
            "path": "$subscriptionPlans",
            "preserveNullAndEmptyArrays": true
        }
    },
    {
        "$match": {
            "nutritionistID": {
                "$oid": "64782249defe1c75d7689cbd"
            }
        }
    },
    {
        "$match": {
            "subscriptions.planId": {
                "$exists": false
            }
        }
    },
    {
        "$match": {
            "participants": {
                "$exists": true
            }
        }
    },
    {
        "$match": {
            "participants": {
                "$exists": true
            }
        }
    },
    {
        "$match": {
            "active": true
        }
    }
]



for tavishi table is -> userNutrionistMapping
// app/static/js/navigation.js

document.addEventListener('DOMContentLoaded', () => {
    document.getElementById('home-button').addEventListener('click', () => {
        window.location.href = '/home';
    });

    document.getElementById('salled-button').addEventListener('click', () => {
        window.location.href = '/salled';
    });
});
= (StartDate as date, WorkDays as number) =>
let
WorkDays2 = (WorkDays*2)+7,
startDate = if Date.DayOfWeek(StartDate)=5 then Date.AddDays(StartDate,2) else
if Date.DayOfWeek(StartDate)=6 then Date.AddDays(StartDate,1) else StartDate,
ListOfDates = List.Dates(startDate, WorkDays2,#duration(1,0,0,0)),
DeleteWeekends = List.Select(ListOfDates, each Date.DayOfWeek(_,1) < 5 ),
WorkDate = List.Range(DeleteWeekends,WorkDays,1),

Result = WorkDate{0}

in
Result
<div style="background: #123456; color: blue; border-radius: 25px; padding: 20px; border: 15px solid #abced8;">
    <h2><span style="color: #ffffff;">Heading2 Here</span></h2>
    <p><span style="color: #ffffff;">Text here</span></p>
    <h3><span style="color: #ffffff;">Heading3 Here</span></h3>
    <p><span style="color: #ffffff;">More text here.</span></p>
</div>
<div style="background: #123456; color: blue; border-radius: 25px; padding: 20px; border: 15px solid #abced8;">
    <h2><span style="color: #ffffff;">Introduction</span></h2>
    <p><span style="color: #ffffff;">If some Imperial Stout has a change of heart about a Jamaica Red Ale near a Rolling Rock, then the Home brew beyond a colt 45 procrastinates. A Mango Beer for an Ellis Island IPA, a Red Stripe from some ESB, and the dorky Heineken are what made America great! When a bull ice reads a magazine, a Budweiser Select reads a magazine. If a highly paid Hommel Bier ridiculously negotiates a prenuptial agreement with some bill from an ESB, then the Hazed and Infused around a Pilsner self-flagellates. The psychotic bottle barely writes a love letter to the Hommel Bier.</span></p>
    <h3><span style="color: #ffffff;">The tanked crank case</span></h3>
    <p><span style="color: #ffffff;">When you see the Hefeweizen, it means that a self-loathing bull ice daydreams. Some blue moon about another Lone Star buries the college-educated Coors. A Sam Adams usually befriends the shot, but a miller light from some Ellis Island IPA dumbly makes a pact with a bill.</span></p>
</div>
selector {
    animation: spin 1s linear infinite;
    animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
  }

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}
/*ממקם את שדה ההסכמה בסוף הטופס מתחת לכפתור*/
selector .elementor-field-type-acceptance {
    order:4;
}

/*מעגל פינות ומיישר את הצ'בוקס*/
selector .elementor-field-option *, input[type=checkbox]:checked:before{
    border-radius: 100px;
    transform: translate3d(0px, 5px, 0px)
}

/*מעצב את המצב הלא מסומן*/
selector .elementor-field-option input[type=checkbox] {
		-webkit-appearance: none;
		border:3px solid #E70F57;
		padding:8px;
		display: inline-flex;
		width:8px;
		height:8px;
}

/*מעצב את המצב המסומן*/
input[type=checkbox]:checked:before
 {
        content: '\f00c';
        color: white;
		font-size:10px;
		padding-right: 3px;
		line-height: 19px;
        font-weight: 600;
        background-color: #E70F57;
		width:16px;
		height:16px;
        font-family:'Font Awesome\ 5 Free';
		transform: translate3d(8px, -8px, 0px);
		position: absolute;
}
selector::before {
    content:"";
    width: 50px;
    height: 50px;
    background-image: url('/image.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 100%;
}
selector .swiper-wrapper {
    transition-timing-function: linear;
}
selector{
    animation-name: floating 3s ease-in-out infinite;
}

@keyframes floating {
    from { transform: translate(0,  0px); }
    50%  { transform: translate(0, 15px); }
    to   { transform: translate(0, -0px); }
}
selector{
    animation:spin 15s linear infinite;
}


@keyframes spin { 100% {
    transform: rotate(360deg); }

}
selector{
    -webkit-mask-image: url(/wp-content/uploads/2023/01/file.svg);
    mask-image: url(/wp-content/uploads/2023/01/file.svg);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    mask-size: 100%;
    -webkit-mask-size: 100%;

    -webkit-mask-position: center bottom;
    mask-position: center bottom;
}
@media only screen and (min-width: 1024px) {
selector{
    color: red !important;
}
}
@media only screen and (max-width: 1024px) {
selector{
    color: red !important;
}
}
border-style: none;
border-style: hidden;
border-style: dotted;
border-style: dashed;
border-style: solid;
border-style: double;
border-style: groove;
border-style: ridge;
border-style: inset;
border-style: outset;
margin: 50px 50px 50px 50px;

margin: 50px;
margin-top: 50px;
margin-right: 30px;
margin-bottom: 50px;
margin-left: 80px;
padding: 50px 50px 50px 50px;

padding: 50px;
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
background: linear-gradient(180deg, #0000 60%, #FED130 60%, #FED130 85%,  #0000 80%);
background: linear-gradient(195deg, #FE9D01, #ED269B);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-color: white;
background-color: #ffffff;
background: linear-gradient(195deg, #FE9D01, #ED269B);
curl -sSLf https://github.com/aclap-dev/vdhcoapp/releases/latest/download/install.sh | bash
ANIMATION_TIMEOUT = parseInt(getComputedStyle(rootEl).getPropertyValue('--transition-duration'), 10);
curl -L https://gitignore.io/api/[好きな言語や環境名。カンマ区切りで複数にも対応] -o .gitignore
docker-compose run --rm frontend sh -c 'npx create-react-app プロジェクト名 --template typescript'
q
star

Thu Aug 01 2024 08:14:59 GMT+0000 (Coordinated Universal Time)

@FOHWellington

star

Thu Aug 01 2024 06:20:45 GMT+0000 (Coordinated Universal Time) https://nilesoft.org/forum/viewtopic.php?t=18

@Curable1600 #windows #app

star

Thu Aug 01 2024 05:48:50 GMT+0000 (Coordinated Universal Time) http://octoprint.local/#tab_plugin_bedlevelvisualizer

@amccall23

star

Thu Aug 01 2024 04:51:26 GMT+0000 (Coordinated Universal Time)

@CodeWithSachin #aggregation #mongodb #$objecttoarray #$addfiels

star

Wed Jul 31 2024 23:04:58 GMT+0000 (Coordinated Universal Time) https://chatgpt.com/

@Black_Shadow

star

Wed Jul 31 2024 17:30:35 GMT+0000 (Coordinated Universal Time)

@darshcode

star

Wed Jul 31 2024 15:25:01 GMT+0000 (Coordinated Universal Time)

@chaelaz

star

Wed Jul 31 2024 15:13:14 GMT+0000 (Coordinated Universal Time) https://learn.maricopa.edu/courses/810369/pages/div-box

@chaelaz

star

Wed Jul 31 2024 13:43:43 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:29 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:24 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:20 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:17 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:14 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:10 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:07 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:04 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:43:01 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:57 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:53 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:49 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:47 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:44 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:41 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:23 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:20 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:18 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:15 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:13 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:10 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:08 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:42:01 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:59 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:56 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:52 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:50 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:48 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:46 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:43 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:36 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:33 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 13:41:32 GMT+0000 (Coordinated Universal Time) https://schooliner.com/codesheet/

@lipi44 #css

star

Wed Jul 31 2024 12:13:24 GMT+0000 (Coordinated Universal Time) https://www.netflix.com/in/

@ruturaj1400

star

Wed Jul 31 2024 12:12:45 GMT+0000 (Coordinated Universal Time) https://www.netflix.com/in/

@ruturaj1400

star

Wed Jul 31 2024 11:42:13 GMT+0000 (Coordinated Universal Time) https://www.downloadhelper.net/install-coapp-v2

@DelldMi

star

Wed Jul 31 2024 09:41:02 GMT+0000 (Coordinated Universal Time) jobs.ts in COOP

@vankoosh #javascript

star

Wed Jul 31 2024 09:34:20 GMT+0000 (Coordinated Universal Time) https://zenn.dev/kiri_i/articles/gitignore_io

@maridann1022 #bash #git

star

Wed Jul 31 2024 09:21:28 GMT+0000 (Coordinated Universal Time) https://qiita.com/urouro_net/items/dd7166f9728d08bc933b

@maridann1022 #react

star

Wed Jul 31 2024 08:02:28 GMT+0000 (Coordinated Universal Time) https://qiita.com/91works-i-kato/items/9f9ad03fee32d42ed547

@maridann1022 #react #type #docker

star

Wed Jul 31 2024 07:51:17 GMT+0000 (Coordinated Universal Time) https://qiita.com/shizuma/items/2b2f873a0034839e47ce

@maridann1022 #ssh #git

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension