Skip to content

Instantly share code, notes, and snippets.

@stillfinder
stillfinder / gist:8b2a086f0617a6a77ba9c6aa127bfab8
Created December 17, 2019 13:42 — forked from nebadon2025/gist:3143d837350ab443482b0f5a6faccd6b
Full Screen Youtube Autoplay URL format
https://www.youtube.com/embed/HH0zOJVOzxs?rel=0&autoplay=1;fs=0;autohide=0;hd=0;
@stillfinder
stillfinder / vue.error
Created December 18, 2019 09:45
Vue error
<p><code>&lt;input class="form-input" id="tags" placeholder="Enter tags separated by comma." name="tags" type="text"</code></p>
<p><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;value="{{ $tags ?? old('tags') ?? '' }}"&gt;</code></p>
@stillfinder
stillfinder / self_vs_static.php
Last active November 5, 2022 15:21
Self vs Static in PHP
<?php
class Animal
{
public static $name = "animal";
// Return the class that is represented by "self::"
public function getSelfClass()
{
return get_class();
@stillfinder
stillfinder / textarea_insert_at.vue
Created August 7, 2020 07:39
Insert text in cursor position in textarea
<template>
<div>
<textarea ref="body" class="form-input" @input="handleInput" @click="handleInput" v-model="content"></textarea>
<div>{{ position}}</div>
<button class="button" @click="insertWtf">Insert '<-WTF->'</button>
</div>
</template>
<script>
export default {