Skip to content

Instantly share code, notes, and snippets.

View sirdoro1's full-sized avatar
👻
Ghosting

Oghenedoro David Agbroko sirdoro1

👻
Ghosting
View GitHub Profile
@chilic
chilic / poof.php
Last active September 18, 2021 22:48
php: Self-destruct message
<?php
echo "This message will self-destruct in ..\n";
foreach (range(3, 1, -1) as $num) {
echo "$num...\n";
sleep(1);
}
unlink(__FILE__);
echo "💨 Poof!\n";
@DawidMyslak
DawidMyslak / vue.md
Last active April 22, 2024 12:49
Vue.js and Vuex - best practices for managing your state

Vue.js and Vuex - best practices for managing your state

Modifying state object

Example

If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).

Example below explains implications for different implementations.

@seankross
seankross / init.md
Created February 5, 2014 18:26
Initializing GitHub repository

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/seankross/womp.git
git push -u origin master