Skip to content

Instantly share code, notes, and snippets.

View Yiddishe-Kop's full-sized avatar
🍹
Vacationing with Laravel

Yehuda Neufeld Yiddishe-Kop

🍹
Vacationing with Laravel
View GitHub Profile
<?
//
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio)
//
// File: twitterFollowerCuratorBot.php
//
// Created: May 2021
// License: MIT
//
@ton77v
ton77v / background.js
Last active August 25, 2020 10:00
example of Electron splash window @ load
'use strict'
import { app, BrowserWindow, protocol } from 'electron'
import { createProtocol } from 'vue-cli-plugin-electron-builder/lib'
import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
// --- CONTEXT MENU -----
const contextMenu = require('electron-context-menu')
contextMenu({
prepend: (defaultActions, params, browserWindow) => []
@waaronking
waaronking / index.vue
Created June 23, 2020 10:44
TipTap Align-Text Example
<!-- This file is mainly pseudo code with parts copied from a working project to illustrate how tiptap-aligntext.plugin.js can be implemented into your project -->
<template>
<div>
<editor-menu-bar :editor="editor" v-slot="{ commands }">
<div class="menubar">
<i class="fas fa-align-left" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'left' }" @click="commands.aligntext({ align: 'left' })"></i>
<i class="fas fa-align-center" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'center' }" @click="commands.aligntext({ align: 'center' })"></i>
<i class="fas fa-align-right" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'right' }" @click="commands.aligntext({ align: 'right' })"></i>
<i class="fas fa-align-justify" :class="{ 'is-active': editor.activeMarkAttrs.aligntext.align === 'justify' }" @click="commands.aligntext({ align: 'justify' })"></i>
@marcnewton
marcnewton / _SetLocaleAcceptLanguage.php.md
Last active January 12, 2021 11:10
Laravel Middleware Accept-Language to setLocale
@Yiddishe-Kop
Yiddishe-Kop / myFunctions.js
Last active March 9, 2019 18:33
My custom code to modify my Wordpress Site
// change all html code tags to "ltr"
let codes = document.querySelectorAll("code");
codes.forEach(code => {
code.setAttribute("dir", "ltr");
});
// change color of all "free" bubbles!
var bubbles = document.querySelectorAll(".badge-inner.new-bubble");
bubbles.forEach(bubble => {
if (bubble.innerText == "חינם!") {
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active April 16, 2025 04:00
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@Repox
Repox / PaginationController.php
Created November 3, 2016 11:05
Laravel 5 Pagination with transform
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
class PaginationController extends Controller
{
// Launch application from Illustrator
var external_app = new File("/Applications/Better Rename 9.app");
external_app.execute();