Skip to content

Instantly share code, notes, and snippets.

View ahmadnaser's full-sized avatar

Ahmad Naser ahmadnaser

View GitHub Profile
@ahmadnaser
ahmadnaser / ! .gitignore
Created September 9, 2023 18:28 — forked from dphurley/! .gitignore
! .gitignore for Express app
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
@ahmadnaser
ahmadnaser / JS and jQuery learning resources
Created February 19, 2019 19:01 — forked from esergueev/JS and jQuery learning resources
JS and jQuery learning resources
JavaScript learning resources.
Starting point for those, who have already learned JS, but forgotten. Good article. Quite compact.
https://developer.mozilla.org/en/JavaScript/A_re-introduction_to_JavaScript
Question: what's the best learning source on JS. Some answers.
http://stackoverflow.com/questions/11246/best-resources-to-learn-javascript
http://stackoverflow.com/questions/2687566/learning-javascript-in-one-weekend
http://net.tutsplus.com/tutorials/javascript-ajax/the-best-way-to-learn-javascript/
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
add_action('wp_head', 'change_fp_ids');
function change_fp_ids(){
add_filter('fpc_featured_pages_ids', 'my_fp_ids', 20);
function my_fp_ids( $fp_ids ){
$role_page = array(
// Role => Page/Post name
'administrator' => 'Blog',
'editor' => 'A',
);
// do nothing if in admin backend or in the customize