Skip to content

Instantly share code, notes, and snippets.

View mooror's full-sized avatar
🚀
Working on our web platform

Benjamin mooror

🚀
Working on our web platform
View GitHub Profile
@mooror
mooror / History|-337260fd|entries.json
Last active November 15, 2023 03:22
Sync settings Nov 14 2023
{"version":1,"resource":"file:///home/benjamin/Web%20Design/Clients/Craig%20Chandler/site-stop-the-ndp/themes/sl-stop-the-ndp-theme/templates/Page.ss","entries":[{"id":"5LVo.ss","source":"searchReplace.source","timestamp":1683155239754}]}
@mooror
mooror / day-of-atonement-notes.md
Last active October 5, 2022 20:06
Day of Atonement Study Notes

The Day of Atonement Study

What is the Day of Atonement?

The Day of Atonement, or Yom Kippur as it called in Hebrew, is one of the seven yearly times that God has appointed for His people and laid out for us in Leviticus chapter 23.

This day is the second of the fall appointed times and is solemn day of affliction, humility, repentance, and remembrance of the cost of sin. It's placement between the day of trumpets and feast of tabernacles, and it solemn and holy nature, lead many to believe that it prophetically points to the day of judgment. Which scripturally comes after the final trumpet has sounded and the dead are raised, but before Christ's millennial kingdom.

Is it just for the Jews and Israelites?

@mooror
mooror / global-php-snippets.code-snippets
Last active March 5, 2023 21:47
Visual Studio PHP snippets
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@mooror
mooror / regex.txt
Last active May 14, 2020 04:31
PHP Debugging REGEX Strings
*** ADD DEBUG LINES ***
+ CALL ONLY DEBUG
Use the following snippet to add a debug "call" line to every method in a file.
Search:
((( )*)(public|private) (static )?function (__)?([a-zA-Z0-9]*)\(.*\)\n?(\s*)\{)
Replace:
@mooror
mooror / ProductPagination.ss
Created February 7, 2020 20:42
Product Pagination SS Include
<nav class="pagination-bar pagination-bar--bottom" aria-label="Product list navigation">
<ul class="pagination-list">
<% if $ProductList.NotFirstPage %>
<li class="pagination-list__item">
<a class="pagination-list__link prev" href="$ProductList.PrevLink">
<i aria-hidden="true" class="fa fa-caret-left"></i>
</a>
</li>
<% end_if %>
<% loop $ProductList.Pages %>
@mooror
mooror / cloudSettings
Last active February 5, 2020 18:49
VSCode Settings (Updated via Setting Sync)
{"lastUpload":"2020-02-05T18:43:15.841Z","extensionVersion":"v3.4.3"}
@mooror
mooror / ProductCatalogAdmin.php
Last active February 3, 2020 21:24
Model Admin Search Form
<?php
namespace Company\ProductCatalog\Admin;
use Company\ProductCatalog\Model\Product;
use Company\ProductCatalog\Model\Vendor;
use Company\ProductCatalog\Model\ProductTag;
use Company\ProductCatalog\Model\ProductIndustry;
use Company\ProductCatalog\Model\Manufacturer;
/**
* Return a DataList of Example DataObjects sorted by the number
* of Other records they are related to
*
* Note: This method will also filter out any Example DataObjects that aren't
* related to any Other records
*
* @param integer $limit The maximum records to return
* @return DataList Filtered DataList of Example DataObjects
*/
@mooror
mooror / php.json
Created November 3, 2019 21:09
Common Silverstripe 4 Snippets for VSCode (File->Preferences->User Snippets. Then search for php.json)
{
// Silverstripe Bootstraps
"SS Bootstrap Page Class": {
"prefix": [
"page",
"boot-page"
],
"body": [
"use SilverStripe\\CMS\\Model\\SiteTree;",
"/**",
@mooror
mooror / snippet.php
Last active March 20, 2019 22:32
PHP Code Snippet - Add hours and minutes to date time string and convert it to timestamp
<?php
///////////////////////////////////
// //
// Using DateTime Object (OOP) //
// //
///////////////////////////////////
// The original date time string
// NOTE: This is currently using the current date and time