Skip to content

Instantly share code, notes, and snippets.

View theamanbhargava's full-sized avatar

Aman Bhargava theamanbhargava

View GitHub Profile
@theamanbhargava
theamanbhargava / mac_zsh_confg.md
Created June 16, 2025 21:47
Ultimate Mac ZSH config

Ultimate Mac Zsh Configuration Guide

Prerequisites

  1. Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install required tools:
@johnsnook
johnsnook / jsonFormer.js
Last active December 28, 2017 15:45
jQuery plugin that turn a json object into a bootstrap form
/**
* jQuery plugin that turn a json object into a bootstrap form
* use:
* $('#form-container').jsonFormer({
* title: "Just point me at a div and pass me an object",
* jsonObject: JSON.parse(editor.getValue());
* });
*
* Make changes in the form and then call
* var newObj = $('#form-container').jsonFormer('formData');
.box {
width: 100%;
height: 200px;
background: #0B0D2C;
position: relative;
}
.box:before,
.box:after {
content: '';
@colintoh
colintoh / douchebag-vertical-align.css
Created October 27, 2014 07:08
douchebag way of vertical alignment
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@aheckmann
aheckmann / storeImgInMongoWithMongoose.js
Created April 17, 2012 19:14
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path