Skip to content

Instantly share code, notes, and snippets.

View musebe's full-sized avatar
🎯
Focusing

eugene musebe musebe

🎯
Focusing
View GitHub Profile
@musebe
musebe / 0_reuse_code.js
Created April 19, 2017 12:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@musebe
musebe / deploy.php
Created February 3, 2018 15:49 — forked from Billcountry/deploy.php
This file will deploy your git repository to a php server or the directory it's. It's convenient for cpanel hosting and you can add it's URL as a web-hook so that it's updated every time you push your updates to git.
<?php
ini_set('display_errors', 1);
header('Content-Type: text/plain');
$account = '_YOUR_ACCOUNT_NAME_'; // Example Billcountry
$repo = '_REPO_TO_DEPLOY_'; // iF i NEED TO EXPLAIN THIS YOU SHOULD PROBABLY LEAVE
$branch = '_BRANCH_TO_DEPLOY_';
$url = "https://github.com/$account/$repo/archive/$branch.zip";
echo("Cloning into $url\n");
$path = dirname(__FILE__)."/$branch.zip";
@musebe
musebe / images.js
Created February 4, 2018 11:34 — forked from Billcountry/images.js
Load images after the whole page has loaded by just adding the class .async-img
// Default image data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mO8dPv2fwAImAOJMh4kwgAAAABJRU5ErkJggg==
function load_images(){
var images = document.querySelectorAll(".async-img");
for(var id=0; id<images.length; id++){
var image = images[id];
var img_url = image.getAttribute('url');
image.src = img_url;
}
@musebe
musebe / sample.md
Created March 24, 2018 08:50 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic

@musebe
musebe / myscript.sh
Created May 17, 2018 21:20 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@musebe
musebe / gist:5a08248ad4f46c542fe3f731586cee9c
Created June 28, 2018 18:51 — forked from paulallies/gist:0052fab554b14bbfa3ef
Remove node_modules from git repo
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@musebe
musebe / webdev_online_resources.md
Created July 18, 2018 22:17 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@musebe
musebe / docker-help.md
Created September 12, 2018 19:37 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@musebe
musebe / README.md
Created September 29, 2018 00:33 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@musebe
musebe / Dockerfile
Created January 7, 2019 06:46 — forked from igaskin/Dockerfile
Intro to GraphQL in Docker
FROM node:7-alpine
COPY ./ /app
WORKDIR /app
CMD node hello.js