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
gulp.task('config', function () { | |
var parser = new xml2js.Parser(); | |
var builder = new xml2js.Builder({ | |
renderOpts: { | |
pretty: true, | |
indent: ' ' | |
}, | |
xmldec: { | |
version: '1.0', | |
encoding: 'utf-8' |
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
<ion-toolbar> | |
<ion-segment [(ngModel)]="selectedSegment" (ionChange)="onSegmentChanged($event)"> | |
<ion-segment-button value="first"> | |
First | |
</ion-segment-button> | |
<ion-segment-button value="second"> | |
Second | |
</ion-segment-button> | |
<ion-segment-button value="third"> | |
Third |
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
controller('SwiperCtrl', function($scope, $stateParams) { | |
$scope.options = { | |
// loop: false, | |
// grabCursor: true, | |
// paginationHide: false, | |
// paginationClickable: false, | |
// direction: 'vertical', | |
// spaceBetween: 50, | |
effect: 'coverflow', | |
speed: 100, |
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
^(?!list|of|words).* |
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 checkIfUnique(array) { | |
var map = {}; | |
for(var i = 0, size = array.length; i < size; i++) { | |
if (map[array[i]]) { | |
return false; | |
} | |
map[array[i]] = true; | |
} | |
return true; | |
} |