This file contains hidden or 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
/* | |
* Spline Follower for Unity, based on Unity's official Spline package | |
* | |
* Developed by Pierre Mercy | |
* Assisted by OpenAI's GPT-4 Language Model (ChatGPT) | |
* | |
* This script allows an object to follow a spline path in Unity. | |
* It includes various features like speed control, time-based motion, loop, ping pong, and ease in and out functionality. | |
* | |
* The script was developed using Unity 2022 and the Splines 2.3.0 package. |
This file contains hidden or 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
Shader "Universal Render Pipeline/2D/Sprite-Lit-Default" | |
{ | |
Properties | |
{ | |
_MainTex("Diffuse", 2D) = "white" {} | |
_MaskTex("Mask", 2D) = "white" {} | |
_NormalMap("Normal Map", 2D) = "bump" {} | |
_ZWrite("ZWrite", Float) = 0 | |
// Legacy properties. They're here so that materials using this shader can gracefully fallback to the legacy sprite shader. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder