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
/* | |
Theme Name: AhmadNaser Responsive WebSite CSS BASE | |
Theme URI: http://ahmadnaser.com/ | |
Author: AhmadNaser | |
*/ | |
/* | |
=============================================== 01. BASE STYLES (1140px) =============================================== |
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
wp-config.php ---> define('ENABLE_CACHE', true); | |
php.ini ---> memory_limit = 6144M | |
install wp plugin --> w3-total-cache | |
optimize table in phpmyadmin |
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
#include <string>; | |
#include <iostream>; | |
using namespace std; | |
void ex1 (); | |
void ex2 (); | |
void ex3 (); | |
float Input (float x, float y,char op); |
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
//1-Define them manually in the view | |
@Html.DropDownListFor(model => model.Location, new List<SelectListItem>{ | |
new SelectListItem() {Text = "Abu Dhabi", Value="Abu Dhabi"}, | |
new SelectListItem() {Text = "Dubai", Value="Dubai"} | |
}) | |
//or | |
//2-Define them in action and gets them in the controller (Recommended) |
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
/* Flush cache when post is saved */ | |
function clearCache($post_ID) { | |
if (function_exists('w3tc_pgcache_flush')) { | |
w3tc_pgcache_flush(); | |
} | |
return $post_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
<div data-role="content"> | |
<address>1962 Market St | |
<br>Denver, CO 80202</address> | |
<img src="https://maps.googleapis.com/maps/api/staticmap?center=1962%20Market%20St.%20Denver,%20CO&zoom=14&size=288x200&markers=1962%20Market%20St.%20Denver,%20CO&sensor=false" height="200" width="288" /> | |
<a href="index.html" data-role="button" data-icon="home">Home</a> | |
</div> | |
var embed2 ="<iframe width='100%' height='400px' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='https://maps.google.com/maps?&q="+$lat+","+$lng+"&output=embed&iwloc'></iframe>"; | |
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
http://msysgit.github.io/ | |
we want use this | |
https://windows.github.com/ | |
System Environment | |
Path--> | |
C:\Users\Sterio007\AppData\Local\GitHub\PortableGit_69703d1db91577f4c666e767a6ca5ec50a48d243\libexec\git-core | |
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
to install curl | |
http://www.confusedbycode.com/curl/ | |
to make new api service | |
https://console.developers.google.com/ | |
this is a 401 error | |
curl --header "Authorization: key=AIzaSyAMbf7mEVV-8n2tELq1l-PAdRr1n0sHxrE" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"ABC\"]}" |
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 | |
// get all the categories from the database | |
/* Loop through each category "team" and output the posts */ |
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
Example1 | |
rewrite specific page by id | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^coupons/(.*)$ /index.php?page_id=87 [L] | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f |