Skip to content

Instantly share code, notes, and snippets.

@nkmathew
nkmathew / index.html
Created April 12, 2021 18:36
Opening Sequence
<div class="container">
<div class="os-phrases" id="os-phrases">
<h2>Sometimes it's better</h2>
<h2>to hide</h2>
<h2>in order to</h2>
<h2>survive evil</h2>
<h2>Thanatos</h2>
<h2>This fall</h2>
<h2>Prepare</h2>
<h2>Refresh to replay</h2>
@nkmathew
nkmathew / index.html
Created April 12, 2021 18:33
LOVE Text Effect
<div id="container">
<div id="message">
<a id="animate" href="#">Transmit</a>
</div>
</div>
@nkmathew
nkmathew / futuristic-resolving-typing-text-effect-feat-glados.markdown
Created April 12, 2021 17:55
Futuristic Resolving/Typing Text Effect feat. GLaDOS

Futuristic Resolving/Typing Text Effect feat. GLaDOS

Futuristic resolving/typing text effect usually found in game or movie cut scenes to reveal text on screen. This one here features some GLaDOS lines from Portal 2, enjoy!

A Pen by Kevin on CodePen.

License.

@nkmathew
nkmathew / bubbling-text-effect.markdown
Created April 12, 2021 17:54
Bubbling Text Effect

Bubbling Text Effect

A jQuery powered example of how you can create a bubbling effect on a HTML heading. The bubbles appear as though they're coming from behind the text, and then fade out and are removed.

A Pen by html5andblog on CodePen.

License.

@nkmathew
nkmathew / bundles.py
Last active August 6, 2017 17:28
Get your Safaricom data bundle balance without leaving your prompt
#!/usr/bin/env python3
'''
@date Aug 06, 2017
@author nkmathew
bundles - Get your Safaricom data bundle balance without leaving your prompt
Saves you the effort of going to this page every time : http://www.safaricom.com/bundles/
@nkmathew
nkmathew / bitbucketclone.py
Last active July 18, 2017 23:05
Script for easily cloning all the repos in a Bitbucket account
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
r"""
Date: Jul 17, 2017
Author: nkmathew
A script for cloning all repositories by a certain user from Bitbucket. Can also
clone your private repos if you want(requires authentication). It's supposed to give
you a bit more control than you would have with an equivalent curl command, e.g
@nkmathew
nkmathew / GitProtocolSchemeHandler.cs
Last active July 13, 2017 22:09
git:// protocol scheme handler for Windows
using Microsoft.Win32;
using System.Text.RegularExpressions;
using System;
/**
* @author nkmathew
* @date July 10, 2017
*
* The program makes it possible to open "git://" like urls clicked from a console
* emulator like ConEmu in your default browser as Windows doesn't recognize that
@nkmathew
nkmathew / pull-all.sh
Created July 6, 2017 06:59
Git update all the repos in the current folder
#!/usr/bin/env bash
NC='\033[0m' # No Color
LYELLOW='\033[01;33m'
# Git update all the repos in the current folder
for folder in *; do
if [[ -d $folder ]]; then
cd $folder
if [[ -d ".git" ]]; then
@nkmathew
nkmathew / server.cmd
Last active July 2, 2017 08:40
Batch script that runs a php dev server by on the next free localhost port
@echo off
:: Runs php dev server and opens the link in the currently running browser starting
:: with Chrome. Used for one-off testing or viewing how a cloned project runs
:: Look for a free port
set /a PORT_NUMBER=8080
:NEXT_PORT
netstat /an | findstr :%PORT_NUMBER% >nul
@nkmathew
nkmathew / youtube-relative-time.user.js
Last active January 26, 2018 10:28
Userscript that changes the upload time of a Youtube video to a relative format
// ==UserScript==
// @name Youtube Relative Time
// @namespace http://nkmathew.net
// @author nkmathew
// @description Changes the upload time of a Youtube video to a relative format
// @icon http://www.youtube.com/favicon.ico
// @icon64 http://www.youtube.com/favicon.ico
// @version 0.1.0
// @include /^https?:\/\/(.+\.)?youtube\.com\/watch?.*$/
// @require https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js