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('noSpecialChar', function() { | |
return { | |
require: 'ngModel', | |
restrict: 'A', | |
link: function(scope, element, attrs, modelCtrl) { | |
modelCtrl.$parsers.push(function(inputValue) { | |
if (inputValue == null) | |
return '' | |
cleanInputValue = inputValue.replace(/[^\w\s]/gi, ''); | |
if (cleanInputValue != inputValue) { |
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('searchBar', [function () { | |
return { | |
scope: { | |
ngModel: '=' | |
}, | |
require: ['^ionNavBar', '?ngModel'], | |
restrict: 'E', | |
replace: true, | |
template: '<ion-nav-buttons side="right">'+ | |
'<div class="searchBar item-input-inset">'+ |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
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
<title><?php if (function_exists('is_tag') && is_tag()) { echo 'Tag Archive for "'.$tag.'" - '; } elseif (is_archive()) { wp_title(''); echo ' Archive - '; } elseif (is_search()) { echo 'Search for "'.wp_specialchars($s).'" - '; } elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } elseif (is_404()) { echo 'Not Found - '; } if (is_home()) { bloginfo('name'); echo ' - '; bloginfo('description'); } else { bloginfo('name'); } ?></title> |
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> | |
<head> | |
<!-- just any other regular html tag --> | |
<title>Vue Demo App with v-show directive</title> | |
<!-- Fetch vue.js from the following library --> | |
<!-- Other alternatives are to download the original library from https://vuejs.org/ --> | |
<script src="https://unpkg.com/vue"></script> | |
<style> | |
#app { | |
font-family: 'Montserrat', Helvetica, Arial, sans-serif; |
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> | |
<head> | |
<!-- just any other regular html tag --> | |
<title>Vue Demo App with v-if & v-else directives</title> | |
<!-- Fetch vue.js from the following library --> | |
<!-- Other alternatives are to download the original library from https://vuejs.org/ --> | |
<script src="https://unpkg.com/vue"></script> | |
<style> | |
#app { | |
font-family: 'Montserrat', Helvetica, Arial, sans-serif; |
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
Links to help get stock market data: | |
http://finance.google.com/finance/info?client=ig&q=NASDAQ%3AGOOG | |
Using Google API:http://digitalpbk.com/stock/google-finance-get-stock-quote-realtime | |
External Website: https://www.quandl.com/ |
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
#Enable Keep-Alive | |
#Keep alive is a method to allow the same tcp connection for HTTP conversation instead of opening a new one with each new request. | |
#More simply put, it is a communication between the web server and the web browser that says "you can grab more than just one file at a time". | |
#Keep alive is also known as a persistant connection | |
<IfModule mod_headers.c> | |
Header set Connection keep-alive | |
</IfModule> | |
#Enable gzip |
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 | |
$encrypted_password = 'ENCRYPTED_PASSWORD_HERE'; | |
$key = 'KEY_FROM_CONFIG_FILE_HERE'; | |
$decrypted_string = $this->encrypt->decode($encrypted_password, $key); | |
echo $decrypted_string; | |
?> |
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
**This is the new best way to upgrade npm on Windows.** | |
**Run PowerShell as Administrator** | |
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force | |
npm install -g npm-windows-upgrade | |
npm-windows-upgrade | |
OlderNewer