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
How to Remove Shortcut Virus From Pendrive / USB Drive. | |
If your USB drive doesn’t have important files you can try to Format it, but if it contains important files then you are not going to format it. | |
To Remove Shortcut Virus manually follow the Steps Below. | |
Step 1. Go to Start and Search for cmd, as it appears in start menu Right Click on it and Click “Run as Administrator“ | |
Step 2. Navigate to Flash Drive by typing its letter. [ Let’s Say it is i ], to find your USB drive letter open “My Computer” and check for the letter, type i: and hit enter. |
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
{ | |
"editor.fontSize": 11, | |
"editor.letterSpacing": -0.8, | |
"workbench.colorTheme": "Monokai", | |
"explorer.autoReveal": false, | |
"editor.multiCursorModifier": "ctrlCmd" | |
} |
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
noop = angular.noop; | |
elevated = false; | |
var popupStack = $ionicPopup._popupStack; | |
if (popupStack.length > 0) { | |
popupStack.forEach(function(popup, index) { | |
if (popup.isShown === true) { | |
popup.hide(); | |
popup.remove(); | |
popupStack.pop(); | |
} |
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
alarms.sort(function(a, b) { | |
a = a.val; | |
b = b.val; | |
return a - b; | |
}); |
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
<?php | |
namespace Services; | |
class MailChimp | |
{ | |
protected $username; | |
protected $api_key; | |
protected $api_url; | |
protected $list_id; |
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
Step 1: Register for google recaptcha here: https://www.google.com/recaptcha/intro/ | |
Step 2: You can follow the official instruction there or continue reading my simplified instruction | |
Step 3: Include the google recaptcha api at the bottom of your html head tag | |
<head> | |
<script src='https://www.google.com/recaptcha/api.js'></script> | |
</head> | |
Step 4: Include google recaptcha at the very end of your html form with the generated key from Step 1 | |
<form> | |
<div class="g-recaptcha" data-sitekey="this-is-a-generated-key-from-step-1"></div> |
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
HTML | |
<div class="banner"> | |
<div class="img-container"> | |
<img id="bannerImg" src="/img/banners/testimonial.jpg" alt="Medisource Testimonial Banner" ng-class="ngClass('bannerImg')"/> | |
</div> | |
<div class="content"> | |
<table> | |
<tr> | |
<td class="valign-m"> | |
<p class="text-center"> |
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
use S3; | |
=========================== | |
//depends on your credentials | |
$AWS = [ | |
'key'=> 'youS3Key', | |
'secret' => 'imBatman', | |
'bucket' => 'bucketNameHere']; |
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
.filter('limitHtml', function() { | |
return function(text, limit) { | |
var changedString = String(text).replace(/<[^>]+>/gm, ''); | |
var length = changedString.length; | |
return changedString.length > limit ? changedString.substr(0, limit) + '...' : (changedString == 'null' ? '' : changedString); | |
}; | |
}) |
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
.directive('intnum', function () { | |
return { | |
require: 'ngModel', | |
restrict: 'A', | |
scope: { | |
intnum: '=' | |
}, | |
link: function (scope, elem, attr, ctrl) { | |
elem.bind('change', function() { | |
var value = isNaN(parseInt(ctrl.$viewValue)) ? 1 : parseInt(ctrl.$viewValue); |
NewerOlder