Copy the migrator.php file to the root of your project and run the following command:
for file in **/*.php; do php ./migrator.php "$file"; doneBACK UP YOUR REPOSITORY BEFORE RUNNING THIS SCRIPT!
| # Drop this into Automator using Python 3 as the shell | |
| from sys import stdin | |
| from json import dumps, loads | |
| from urllib.parse import urlencode | |
| from urllib.request import Request, urlopen | |
| AZURE_ENDPOINT="getyourowndeployment.openai.azure.com" | |
| OPENAI_API_KEY="getyourownkey" | |
| OPENAI_API_VERSION="2023-05-15" |
| "use client"; | |
| import { motion } from "framer-motion"; | |
| import { useCallback, useEffect, useRef, useState } from "react"; | |
| interface Todo { | |
| text: string; | |
| completed: boolean; | |
| } |
| <?php | |
| /** | |
| * On every loop of `while(true)` we check: | |
| * 1. If all elements in group have same head -> extract it to common head, | |
| * 2. If all elements in group have same tail -> extract it to common tail, | |
| * 3. If some elements have common head -> create sub group of this elements, and put there head as common head of group, | |
| * 4. Same for tails. | |
| * If none of previous happen - we stop loop. | |
| * Then check if current group has empty entry and convert it to optional (like `(a|b|) -> (a|b)?`). |
Copy the migrator.php file to the root of your project and run the following command:
for file in **/*.php; do php ./migrator.php "$file"; doneBACK UP YOUR REPOSITORY BEFORE RUNNING THIS SCRIPT!
| // Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: | |
| // | |
| // The above copyright notice and this permission notice shall be included in |
| <?php | |
| class PDAO implements \ArrayAccess, \Iterator | |
| { | |
| /** | |
| * @var array data | |
| */ | |
| protected $data = array(); | |
| /** |
| <?php | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |