Skip to content

Instantly share code, notes, and snippets.

View keoshi's full-sized avatar
🙌
What's up?

Filipe Varela keoshi

🙌
What's up?
View GitHub Profile
<script>
let name = "world"
</script>
<div class="component">
<h2>Hello, {title}</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lorem ipsum, consectetur nec arcu ac, euismod egestas justo. Vivamus euismod est ultrices mi maximus eleifend. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Phasellus at quam sodales, malesuada purus et, bibendum nulla. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Vivamus viverra lectus eu nisl vulputate tempor. Aliquam dignissim vehicula finibus.</p>
</div>
<style>
@keoshi
keoshi / 2020.txt
Last active March 16, 2021 14:22
To-do Template
# Wednesday
### 29 Apr 2020
- Done to-do item
finally I got this done!
- To-do item
note to check:
https://mutelife.com/ongoing-to-dos-dones-document/
@keoshi
keoshi / 2020.md
Created April 29, 2020 10:57
To-dos / Dones template
@keoshi
keoshi / #day
Created April 29, 2020 09:31
Alfred snippet: new day
# {date +0d:EEEE}
### {date}
{cursor}
---
@keoshi
keoshi / functions.php
Created December 4, 2018 15:32
Dequeue and deregister Facebook embed from Jetpack site
function keoshi_dequeue_facebook_embed() {
wp_dequeue_script( 'jetpack-facebook-embed' );
wp_deregister_script( 'jetpack-facebook-embed');
}
add_action( 'wp_enqueue_scripts', 'keoshi_dequeue_facebook_embed', 100 );
@keoshi
keoshi / alfred-yourls.php
Created March 21, 2018 21:38
Alfred workflow script for getting shortened URL from Yourls API
<?php
// Costumize your params here
$domain = 'CHANGE_ME';
$token = 'CHANGE_ME';
// Don't change anything below this line
$timestamp = time();
$signature = md5( $timestamp . $token );
@keoshi
keoshi / camphor.scss
Last active December 11, 2017 15:16 — forked from bdno86/camphor.scss
Camphor
$camphor300:'d09GMgABAAAAAQ5UABIAAAAEn0QAAQ3tAAEZmQAAAAAAAAAAAAAAAAAAAAAAAAAAG4SkahzOKgZgFotgAIosCCIJgnMRCAqLlgCKvTwBNgIkA5lwE4GnDguZdAAEIAW7bwcgDHJb0WS0WUXZkokWaBHx4wKbY7TigANIU/t980QCGzI/IkCsdbqJZwY1ZOgWDngIamw3I43435Dd+zJ1kNmKVp/DvXNAwaNm//////////////////+/NZkMZ5cAl0CpbZ3oiwloFA5GyIWNzOYVLt1bpXPX+pABI2fo5rMZpgVYIzYqgxt92ajECqUKh2G9gaOCVRC23VSRVypHfbvb7wYcwEM25WArF0esm1yKzDixrJRdcBGtcpBZTFbFbIl8LIU4gWOnEdSITqkoGrHWJ8ywn9eVFWWk3lC6m07qp1TXntHaWp6ekYHLrFoyzOXYiQnn2kWX2zqMaFBTca25vHKndPhJV66HRhQzL9lB3OT20KGTXuFHu62wm1qzoV/iTnaiLdc8o/D7B+1O94BrjSE3cia6U1A5XNp0kHmUj8IMBaeiGaiNJV7b1csb0bq8EWYo2h1TuipR+7hmYjxeZsonGLNcmgsKp5EUDCEj9SvRyxX2uMUNfINmfNqglBYNNtjtNmdwWV2ly4uQKheyDyka2RTRoQ3IEfs+0BNcGJ4Z5AnmHNpFbCKW5PsXkAzJ6VVzzVMo0fwIUpQQT67itTNRE946/NxDashl9KuAFUbZ6yW91vObh+WAMZ1mQ1J4wotF6KXHuo65X6wSz406hW/T6XZMf/6W+HGYUxCDfhyjPaoMGcWccmbYM/H35NdHTOd79Jg0ho/BDBvRy2vcg8pHsv07UYiKrDFeqzL0Qk7qCkXLuukl2EKuR3xS6VtsLEaT0BfWoDYoQ1YvEjjT729XNMYoCX3j+2ApedBG/UHLOJ7AAnfPSqdmmePsY+522MpfPaf7kf6fIJMn0/4SE6PmuI3yjyeGjWn+1qj/ukf09DE
@keoshi
keoshi / gist:8d479eaba63af5847bcf8cef76a94ed5
Created May 25, 2017 13:03
Webcam stopped working on a Mac?
sudo killall VDCAssistant
@keoshi
keoshi / _typography.scss
Last active January 13, 2017 13:52
System Fonts in CSS/SASS/SCSS
$font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
@keoshi
keoshi / separateValues.js
Last active January 13, 2017 13:51
Neatly separate multiple values
var altNames = "cena cena3;cena2; cena4 ;cena5; ;;cena6.cena7";
// 1. Split with space, dot or semicolon
// 2. Filter out empty values
var debug = altNames.split(/[ .;]+/).filter(Boolean);
console.log( debug );