This file contains hidden or 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
Bootstrap 3 - Carousel/Slider Collection | |
Article: http://sevenx.de/blog | |
Demo: http://sevenx.de/demo/bootstrap-carousel | |
Working Examples (inline Styles, CDN Scripts) | |
- minimal Bootstrap Markup changes | |
- minimal CSS Styles | |
- minimal jQuery |
This file contains hidden or 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
/** | |
* @author devman | |
*/ | |
function setObjectPathValue(source, path, value) { | |
var parts = path.split('.'), len = parts.length, target = source; | |
for (var i = 0, part; i < len - 1; i++) { | |
part = parts[i]; | |
target = target[part] == undefined ? (target[part] = {}) : target[part]; | |
} |
This file contains hidden or 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
<?php | |
/** | |
* This function mixes two arrays together, | |
* taking the keys from one and the values from the other. | |
* This can be usefull when doing preq match, | |
* so the result can be accessed like this array["key"] => value in a situation like this, | |
* Message: My message could be accessed like this $matches["Message"] | |
* @param array $keys The array containing the keys to use | |
* @param type $values The array containing the values to use | |
* @return array |