Skip to content

Instantly share code, notes, and snippets.

Nafeu Nasir nafeu

Block or report user

Report or block nafeu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nafeu
nafeu / python3-script-template.py
Created Jan 29, 2019
Python3 Terminal Script Template
View python3-script-template.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Template for python3 terminal scripts.
This gist allows you to quickly create a functioning
python3 terminal script using argparse and subprocess.
"""
import argparse
@nafeu
nafeu / example.memd
Last active Jun 15, 2018
Example minimal-elearning presentation
View example.memd
---
title: "Using Minimal eLearning with Github Gists"
author: "Nafeu Nasir"
description: "A tutorial on how to create minimal-elearning presentations with Github Gists"
date: 2018-6-10
---
# Getting Started
First create a brand [new Github Gist](https://gist.github.com/), fill in the description however you'd like, and for the filename, make sure you end with the extension `.memd`. For the document itself, start off by filling it with front-matter like so:
@nafeu
nafeu / .zshrc-powerlevel9k-theme
Created Jul 2, 2017
Nafeu's iTerm-Zsh Theme Config
View .zshrc-powerlevel9k-theme
# Insert into your .zshrc file
# ...
POWERLEVEL9K_MODE='awesome-patched'
ZSH_THEME="powerlevel9k/powerlevel9k"
# ...
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
POWERLEVEL9K_SHORTEN_DIR_LENGTH=0
@nafeu
nafeu / server.js
Last active Oct 9, 2018
Simple Express.js static file/folder configuration with Express API
View server.js
var express = require('express')
, app = express()
, http = require('http')
, server = require('http').Server(app)
, bodyParser = require('body-parser')
, io = require('socket.io')(server);
// ---------------------------------------------------------------------------
// Configuration
// ---------------------------------------------------------------------------
You can’t perform that action at this time.