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 | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |
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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Get Mail | |
* | |
* IMAP library for CodeIgniter. Requires Datamapper (http://datamapper.wanwizard.eu/) | |
* | |
* @package Get Mail | |
* @author Web Together (http://webtogether.ie) | |
* @version 0.9 |
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 Mover : MonoBehaviour | |
{ | |
public Waypoint[] wayPoints; | |
public float speed = 3f; | |
public bool isCircular; | |
// Always true at the beginning because the moving object will always move towards the first waypoint | |
public bool inReverse = true; |
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 // You need to add server side validation and better error handling here | |
$data = array(); | |
if(isset($_GET['files'])) | |
{ | |
$error = false; | |
$files = array(); | |
$uploaddir = './uploads/'; |
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 namespace GildedRose\Tests; | |
use GildedRose\InventoryItem; | |
use GildedRose\InventoryItemLegendary; | |
use GildedRose\InventoryItemTicket; | |
use GildedRose\Program; | |
use PHPUnit\Framework\TestCase; | |
class InventoryItemTest extends TestCase |
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
/** | |
* Is Windows Mobile | |
* | |
* Check to see if the user agent is a Windows Mobile | |
* | |
* @return boolean | |
*/ | |
function is_windows_mobile(){ | |
return strstr($_SERVER['HTTP_USER_AGENT'], 'IEMobile/9.0'); |
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
/** | |
* Is Old Android | |
* | |
* Check to see it the user agent is Android and if so then | |
* check the version number to see if it is lower than 4.0.0 | |
* or passed parameter | |
* | |
* @param string $version | |
* @return boolean | |
*/ |
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 | |
switch (WEB_ENV) | |
{ | |
case 'local': | |
case 'development': | |
case 'staging': | |
case 'preview': | |
return array( |
NewerOlder