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
SELECT | |
p.post_title AS title, | |
p.post_content AS description, | |
p.post_excerpt AS excerpt, | |
p.ID AS jigoshop_id, | |
IFNULL(pmp.meta_value, "") AS price, | |
IFNULL(pmp.meta_value, "") AS original_price, | |
IFNULL(pmw.meta_value, "") AS weight, | |
IFNULL(pms.meta_value, "") AS inventory, | |
IFNULL(pmsk.meta_value, "") AS sku, |
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 | |
// http://www.leofs.org/docs/s3_client.html | |
// i used composer with the following composer.json file and then called composer install | |
// {"require":{"aws/aws-sdk-php": "2.*"}} | |
require "vendor/autoload.php"; | |
use Aws\Common\Enum\Region; | |
use Aws\S3\S3Client; |
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
module.exports = function(grunt) | |
{ | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sourceDir: 'themes/third_party/tickets', | |
cpjsFiles: [ | |
'<%= sourceDir %>/js/cp-custom.js', | |
'<%= sourceDir %>/js/toolbar-tabs.js', | |
'<%= sourceDir %>/js/chosen.jquery.js', |
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
window.SearchView = Backbone.View.extend( | |
{ | |
typingInterval: 1000, | |
el: '#search', | |
events:{ | |
'keyup' : 'typed' | |
}, | |
initialize: function() | |
{ |
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
defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool 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
<div class="select"> | |
<select name="select_element"> | |
<optgroup label="Option Group 1"> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> | |
<option value="3">Option 3</option> | |
</optgroup> | |
<optgroup label="Option Group 2"> | |
<option value="1">Option 1</option> | |
<option value="2">Option 2</option> |
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