Skip to content

Instantly share code, notes, and snippets.

View itsmunim's full-sized avatar
💂‍♂️
Extension over Modification...please!

Md Abdul Munim itsmunim

💂‍♂️
Extension over Modification...please!
View GitHub Profile
@itsmunim
itsmunim / AutoAdjustHeight.js
Created August 28, 2015 09:02
Adjusts the height of a list based on top elements and bottom elements in any display.
'use strict';
angular.module('MunimDibosh.directives')
.directive('adjustListHeight', function ($timeout) {
return {
restrict: 'A',
link: function (scope, element) {
var parent, elemList, parentHeight, elemIndexOnDom;
// Watch for height changes
var _watchForHeightChange = function (elemList) {
@itsmunim
itsmunim / rename_dirs.sh
Last active August 29, 2015 14:26
Rename all the folders inside current folder(where this shell script will reside) with a specified suffix.
for FILENAME in *
do
a="$FILENAME"
if [[ $a != *"$1"* && -d "$a" ]]
then
mv "$a" "$a$1"
else
"Not renaming $a"
fi
done
#!/bin/bash -x
echo Usage: Path of the Directory to be recursively traversed Current Format To Format
#convertion process
sass-convert -R "$1" -F "$2" -T "$3"
#deleting existing files
extention="*.$2"
find "$1" -name $extention -type f -delete