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
using UnityEngine; | |
using System.Collections; | |
public class PointsHandler : MonoBehaviour { | |
GameObject CurrentPoint; | |
// Use this for initialization | |
void Start () { | |
} |
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
using UnityEngine; | |
using System.Collections; | |
public class DragDropMatchingItem : MonoBehaviour | |
{ | |
private bool startDraging;//start draging flag | |
private bool clickedOnDest;//clicked on a destination flag | |
private GameObject currentMatchingItemSource;//current matching item | |
private GameObject currentMatchingItemDest;//current matching item |
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
using UnityEngine; | |
using System.Collections; | |
using UnityEngine; | |
using System.Collections; | |
public class Controller : MonoBehaviour { | |
private bool isGrounded; | |
private float radius = 0.7f; | |
private float force = 300; |
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 | |
/** | |
* 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( |
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
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 |
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
import java.util.Calendar; | |
public void Date() { | |
Calendar cal = new GregorianCalendar(); | |
int month = cal.get(Calendar.MONTH); | |
int year = cal.get(Calendar.YEAR); | |
int day = cal.get(Calendar.DAY_OF_MONTH); | |
jLabel4.setText(year + "/" + (month + 1) + "/" + day); | |
int se = cal.get(Calendar.SECOND); |
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
($.browser.msie && $.browser.version == 6) | |
(navigator.userAgent.toLowerCase().indexOf('msie 6') != -1) |
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
var WP_REST_OB; | |
// Create an model object. | |
var WP_REST = function() { | |
var self = this; | |
self.firstName = "Ahmad"; | |
self.lastName = "Naser"; | |
// Create a dependent method (calculated field). |
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 |
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 */ |