Skip to content

Instantly share code, notes, and snippets.

View brandiqa's full-sized avatar
🏠
Working from home

Michael Wanyoike brandiqa

🏠
Working from home
  • Brandiqa
  • Nairobi
View GitHub Profile
@mgambill
mgambill / Storyblok.js
Created April 13, 2021 00:20
Vue.js v3 - Directive Plugin
// Vue 3
const addClass = (el, className) => {
if (el.classList) {
el.classList.add(className)
} else if (!new RegExp('\\b' + className + '\\b').test(el.className)) {
el.className += ' ' + className
}
}
export default {
@morewry
morewry / monorepo-tool-comparison.md
Last active May 11, 2022 08:54
Comparison of Monorepo Tools For Web Client / Front End Projects (That Probably Use HTML, CSS, and JS)

Mono Repository Tool Comparison

For Web Client / Front End Projects

(That Probably Use HTML, CSS, and JS)

I made a list of 20 things I might want out of a monorepo tool for a Design System to use as a basis for comparing some of the options including Lerna, Northbrook, and Rush.

⚠️ Northbrook's author says the project is pretty dead and now uses Lerna.

Qualifications Wanted

@profnandaa
profnandaa / 0-Messenger-Bot.md
Last active April 19, 2018 20:51
Introduction to Facebook Messenger Bots - @DevC-Nairobi

Building a Basic Messenger Bot with Node.js

For this tutorial, you need just basic understanding of JavaScript. The aim of this tutorial is to show you how easy it is to build messenger bots. When you scroll down this page, you will find out the actual lines of code that we will write are just about 19 LOC.

Prerequisites

@RickCogley
RickCogley / materialize-modal-youtube.html
Last active July 2, 2018 13:16
Materialize modal youtube
<!-- Modal Trigger -->
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">View Intro Video</a>
<!-- Modal Structure -->
<div id="modal1" class="modal green-text">
<div class="modal-content">
<h4>Modal Header</h4>
<p><div class="video-container">
<iframe width="1102" height="620" src="https://www.youtube.com/embed/VH26lrd6LSY?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</div></p>
@FullStackForger
FullStackForger / .gitignore
Last active April 6, 2024 13:19
.gitignore for Unity3d project
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild/
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/