Skip to content

Instantly share code, notes, and snippets.

View meytirm's full-sized avatar
❤️
CODE

Mehdi meytirm

❤️
CODE
View GitHub Profile
@AliN11
AliN11 / typescript-dependency-injection.ts
Created September 15, 2019 12:58
Typescript Dependency Injection
interface Wheel {}
interface Engine {}
class Car {
private wheel: Wheel;
private engine: Engine;
public constructor(wheel: Wheel, engine: Engine) {
this.wheel = wheel;
this.engine = engine;
@meyt
meyt / v-the-mask.vue
Created March 6, 2019 12:09
vuetify + vue-the-mask component
<template>
<div :class="classes">
<label>{{ label }}</label>
<div class="input-group__input">
<span
v-if="prefix"
class="input-group--text-field__prefix"
v-text="prefix"
/>
<the-mask
@MohammadaliMirhamed
MohammadaliMirhamed / PhpFireBaseNotificationSample.php
Last active December 28, 2024 22:56
This repository showcases a simple and effective script to send push notifications to Android devices using Firebase Cloud Messaging (FCM). Designed for developers, the code provides a quick setup for integrating FCM notifications with minimal configuration.
<?php
#API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-SERVER-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = $_GET['id'];
#prep the bundle
$msg = array
(
'body' => 'Body Of Notification',
@jesstelford
jesstelford / event-loop.md
Last active December 5, 2024 02:05
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code

@sqndr
sqndr / example.jquery.js
Created July 16, 2014 10:45
jQuery plugin example (js)
(function($){
$.fn.extend({
example: function(options) {
var defaults = {
color: '#000000',
}