This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/* | |
* Google Maps Geocoding Directive - Angularjs | |
* ----------- | |
* @restrict : 'E' = element, 'A' = attribute | |
* @example : <google-map class="gmap" id="gmap" zipcode="{{obj.zipcode}}"></google-map> | |
* @link : https://developers.google.com/maps/documentation/geocoding/ | |
* @version : 1.0 | |
* @author : @ElmahdiMahmoud | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @usage generateElement(_tagName, _attributes, _parent); | |
* @param _tagName:String | |
* @param _attributes:Object | |
* @param _parent:Selector | |
* @return an element object | |
* @author Mahmoud Elmahdi | |
*/ | |
function generateElement(_tagName, _attributes, _parent) { | |
Element.prototype.setAttributes = function(attrs) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function toggleClass(element, className) { | |
if (!element || !className) { return; } | |
var classString = element.className, nameIndex = classString.indexOf(className); | |
if (nameIndex == -1) { | |
classString += (classString.length) ? ' ' + className : className; | |
} else { | |
classString = classString.replace(' '+className, ''); | |
classString = classString.replace(className, ''); | |
} | |
element.className = classString; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element.prototype.rmClass = function (className) { | |
var classString = this.className; | |
var classNameIndex = classString.indexOf(className); | |
if (className) { | |
classString = classString.replace(' ' + className, ''); | |
classString = classString.replace(className, ''); | |
} | |
this.className = classString; | |
}; | |
/* @usage */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var offset = $("SELECTOR").offset(); | |
if($('SELECTOR').get(0)) { | |
$(window).scroll(function() { | |
if ( $('body').scrollTop() > offset.top){ | |
$('SELECTOR').addClass('is-fixed'); | |
} else { | |
$('SELECTOR').removeClass('is-fixed'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @link cdn: https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js | |
* @jade svg#demo(viewBox="0 0 600 600", preserveAspectRatio="none") | |
*/ | |
var s = Snap("#demo"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// == Defind breakpoint variables | |
// | |
//## | |
$screen-xs: 480px !default; | |
$screen-sm: 768px !default; | |
$screen-md: 992px !default; | |
$screen-lg: 1200px !default; | |
// == Breakpoints map | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$colors-pallette: (#5856d6, #008aff, #34aadc, #ff2d55); | |
.wrapper { | |
@for $i from 1 through length($colors-pallette) { | |
&:nth-child(#{length($colors-pallette)}n+#{$i}) { | |
.item { | |
background-color: nth($colors-pallette, $i); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imdone-atom | |
rest-client | |
highlight-selected | |
file-icons | |
atom-jade | |
emmet | |
linter | |
linter-eslint | |
terminal-plus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plugins | |
https://packagecontrol.io/packages/AutoFileName | |
https://packagecontrol.io/packages/Case%20Conversion | |
https://packagecontrol.io/packages/Console%20Wrap%20for%20js | |
https://packagecontrol.io/packages/AdvancedNewFile | |
https://packagecontrol.io/packages/Local%20History | |
https://packagecontrol.io/packages/SideBarEnhancements | |
https://packagecontrol.io/packages/SwapStrings | |
https://packagecontrol.io/packages/All%20Autocomplete |
OlderNewer