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
| var arrayA = [1, 2]; | |
| var arrayB = [3, 4]; | |
| var newArray = arrayA.concat(arrayB); |
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
| module.exports = function(grunt) { | |
| require('load-grunt-tasks')(grunt); | |
| grunt.initConfig({ | |
| clean: ['dist'], | |
| copy: { | |
| generated: { | |
| src: 'src/index.html', | |
| dest: 'dist/index.html' |
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
| function template(s,d){ | |
| for(var p in d) | |
| s=s.replace(new RegExp('{'+p+'}','g'), d[p]); | |
| return s; | |
| } | |
| template('Hello {name}', {name: 'Jay'}); |
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
| module.exports = function(grunt) { | |
| require('load-grunt-tasks')(grunt); | |
| grunt.initConfig({ | |
| copy: { | |
| generated: { | |
| src: 'index.html', | |
| dest: 'dist/index.html' | |
| } |
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
| console.log("SHOPS: {% if shop.customer_accounts_enabled %}"); |
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
| // CUSTOM ADMIN MENU LINK FOR ALL SETTINGS | |
| function all_settings_link() { | |
| add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php'); | |
| } | |
| add_action('admin_menu', 'all_settings_link'); | |
| add_filter( 'login_headerurl', 'namespace_login_headerurl' ); | |
| /** | |
| * Replaces the login header logo URL | |
| * |
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
| @media (min-width: 768px) { | |
| .seven-cols .col-md-1, | |
| .seven-cols .col-sm-1, | |
| .seven-cols .col-lg-1 { | |
| width: 100%; | |
| } | |
| } | |
| @media (min-width: 992px) { | |
| .seven-cols .col-md-1, |
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
| <FilesMatch "^(wp-config\.php|wp-cache-config\.php|advanced-cache\.php|php\.ini|php5\.ini|config\.php|db\.php|db-config\.ini)"> | |
| Order Deny,Allow | |
| Deny from all | |
| </FilesMatch> | |
| ### If you have one or more dedicated IP addresses, uncomment the below | |
| ### from <FilesMatch to </FilesMatch then replace the IP addresess with | |
| ### your own; and completely remove any IP address line not necessary. | |
| ### | |
| ### For example, if you only have one dedicated IP address, there |
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
| MyApp.run(function($rootScope, $location, $routeParams, $window){ | |
| $rootScope.$on('$routeChangeSuccess', function() { | |
| var output=$location.path()+"?"; | |
| angular.forEach($routeParams,function(value,key){ | |
| output+=key+"="+value+"&"; | |
| }) | |
| output=output.substr(0,output.length-1); | |
| $window._gaq.push(['_trackPageView', output]); | |
| }); | |
| }) |
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
| window.onbeforeunload = function (e) { | |
| e = e || window.event; | |
| // For IE and Firefox prior to version 4 | |
| if (e) { | |
| e.returnValue = 'Sure?'; | |
| } | |
| // For Safari | |
| return 'Sure?'; |
NewerOlder