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
:0Wc: | |
| env python mail_receiver.py |
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
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2016 Jeevanandam M. ([email protected]) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
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
if post.comments != undefined && post.comments.length | |
.container | |
.row | |
.comments-container | |
h2="Comments" | |
ul#comments-list.comments-list | |
mixin commentView(comment) | |
- var children = post.comments.filter(function(child) { return comment.id === parseInt(child.parent); }) | |
- console.log(children) |
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
<form name="passwordForm"> | |
<input type="password" class="form-control" name="password" data-ng-model="ctrl.profile.password" check-strength="ctrl.profile.password" | |
placeholder="{{'backend.segments.password' | i18next}}"> | |
<span class="help-inline" data-ng-show='passwordForm.password.$valid && passwordForm.password.$dirty' data-ng-class="strength">This password is {{strength}} ! </span> | |
</form> |
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
.directive('checkStrength', function () { | |
return { | |
restrict: 'A', | |
link: function(scope, element, attrs){ | |
function scorePassword(pass) { | |
var score = 0; | |
if (!pass) | |
return score; |
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
.directive('validateWebsite', function() { | |
return { | |
link: function(scope, elm) { | |
function isUrlValid(userInput) { | |
var regexQuery = "^(https?://)?(www\\.)?([-a-z0-9]{1,63}\\.)*?[a-z0-9][-a-z0-9]{0,61}[a-z0-9]\\.[a-z]{2,6}(/[-\\w@\\+\\.~#\\?&/=%]*)?$"; | |
var url = new RegExp(regexQuery,"i"); | |
if (url.test(userInput)) { | |
return true; | |
} | |
return false; |
NewerOlder