Skip to content

Instantly share code, notes, and snippets.

@ahhmarr
ahhmarr / agnoster.zsh-theme
Last active May 13, 2019 10:15
agnoster.zsh-theme with git stash status
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@ahhmarr
ahhmarr / index.html
Created July 18, 2018 13:15
responsive table with accordion
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
/*
module.exports = function(shipit) {
require('shipit-deploy')(shipit);
shipit.initConfig({
default: {
workspace: '/tmp/app',
deployTo: '/var/www/app',
repositoryUrl: 'git@repo',
ignores: ['.git', 'node_modules', 'bower_components'],
rsync: ['--del'],
keepReleases: 5,
@ahhmarr
ahhmarr / currency.js
Last active February 25, 2017 03:32
number formatting in JS for INR currencies
a=12345;
/**
* this accepts optinal parametes the first one is the Locale Coce ie en-US,en-IN etc and the second is an object which accepts
* conditional formatting params
*
*
**/
b=a.toLocaleString("en-IN",{style:"currency",currency:"INR"});
alert(b);
@ahhmarr
ahhmarr / index.html
Last active August 29, 2015 14:07
A Pen by ahmar siddiqui.
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>gallery exaple</title>
</head>
<body>
<!-- gallery1 -->
<div class="gallery">
<div class="gallery-item">
<img class="gallery-image" src="http://upload.wikimedia.org/wikipedia/commons/3/36/Hopetoun_falls.jpg" alt="" />
@ahhmarr
ahhmarr / gist:4442c73976edcac49ef1
Last active August 29, 2015 14:04
my grunt file
module.exports=function(grunt)
{
grunt.initConfig({
uglify:{
files :{
src : "js/*.js",
dest : "js/jsmin/",
flatten :true,
expand :true,
ext : ".min.js"