Skip to content

Instantly share code, notes, and snippets.

View Nabid's full-sized avatar

Nabid I. Nabid

View GitHub Profile
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@addyosmani
addyosmani / objExtend.js
Created September 16, 2011 12:08
JavaScript object 'namespace' extension experiments
$(function(){
//===========================================================
// JavaScript object 'namespace' extension experiments
// by @addyosmani (comparing deep extension in vanilla JS vs.
// jQuery's $.extend)
//
//
// The goal here is to:
//
@robwierzbowski
robwierzbowski / gitcreate.sh
Last active August 13, 2024 19:57
A simple litte script. Create and push to a new github repo from the command line.
#!/bin/bash
# https://gist.github.com/robwierzbowski/5430952/
# Create and push to a new github repo from the command line.
# Grabs sensible defaults from the containing folder and `.gitconfig`.
# Refinements welcome.
# Gather constant vars
CURRENTDIR=${PWD##*/}
GITHUBUSER=$(git config github.user)
@rahit
rahit / loggify.py
Last active August 29, 2015 13:58
Script to analyze log file and monitor changes
'''
Script to analyze log file and monitor changes
@Author: K.M. Tahsin Hassan Rahit <[email protected]> (12-21206-1)
'''
from Tkinter import *
from bsddb.dbtables import _columns_key
from difflib import Differ
from glob import glob