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
// Launch application from Illustrator
var external_app = new File("/Applications/Better Rename 9.app");
external_app.execute();
@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
{
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 23, 2025 20:11
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).
@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 == "חינם!") {
@marcnewton
marcnewton / _SetLocaleAcceptLanguage.php.md
Last active January 12, 2021 11:10
Laravel Middleware Accept-Language to setLocale
@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>
@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) => []
<?
//
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio)
//
// File: twitterFollowerCuratorBot.php
//
// Created: May 2021
// License: MIT
//
@boxabirds
boxabirds / .cursorrules
Last active June 23, 2025 22:35
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors