Skip to content

Instantly share code, notes, and snippets.

View forethoughtde's full-sized avatar
🎯
Focusing

forethoughtde

🎯
Focusing
  • Munich, Germany
View GitHub Profile
/*
Mix function
*/
const deleteProperty = (obj, condition) => {
Object.keys(obj).forEach((key) => {
$delivery_id = 10;
$userObj->notify(new PacketReceiveNotification(delivery_id));
public function toMail($notifiable)
{
return (new MailMessage)
->line('We have received your package. Please schedule your delivery')
->action('Schedule the delivery', url('/dashboard/delivery_schedule/'.$this->delivery_id))
->line('Thank you for using our application!');
}
<?php
class PacketReceiveNotification extends Notification
{
use Queueable;
protected $delivery_id;
/**
@forethoughtde
forethoughtde / hoverColorWorldMap.json
Created January 23, 2018 22:59
JSON list which holds corresponding hover color for the actual color.
{
"#647d2d": "#97B060",
"#d7d7cd": "#F1F1E7",
"#50bed7": "#83F1FF",
"#005f87": "#3392BA",
"#73645a": "#A6978D",
"#aaaa96": "#DDDDC9"
}
@forethoughtde
forethoughtde / CheckListNewsLetter.md
Last active April 6, 2017 14:55
Checklist for Email Newsletter
  1. HTML should be properly closed and valid HTML documents. Validate the document in https://validator.w3.org/
  2. Have comments for opening and closing of the block.
  3. Do not add extra CSS like margin-top
  4. Copying and pasting; remove extra - from the HTML document
  5. Check for <sup></sup>s
  6. should be used instead of
@forethoughtde
forethoughtde / PHP Learning Resource
Last active January 23, 2018 23:06
How does PHP foreach work?
## PHP foreach
http://stackoverflow.com/questions/10057671/how-does-php-foreach-actually-work
@forethoughtde
forethoughtde / events.js
Created January 2, 2017 23:56
Handles both key and mouse events
(function(){
var keyElements = selectElements('key', 'class');
function selectElements(element, selectType)
{
var elements;
if( selectType == 'class')
{
elements = document.getElementsByClassName(element);
(function() {
'use strict';
var headElements = new Array();
var bodyElements = new Array();
var tableElement;
var selector = ".Tabelle-Titel-nur-oben";
var app = angular.module("StartKurse", ['ngRoute']);
app.service('total', ['$rootScope', function ($rootScope) {
this.tScore = 0;
}]);
app.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/kapitelhome/:kapitelNum/:kapitelDesc',{
templateUrl: "partials/specific_kapitel.html",
controller: "KapitelHomePage"