A Pen by Alexandre Magnier on CodePen.
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
# Remove all Underscore prefix files DS_Store | |
- Type this command in Terminal | |
sudo find / -name "._*" -exec rm -rf {} \; |
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
git checkout -f HEAD |
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
version: '3.3" | |
services: | |
redis: | |
container_name: redis | |
image: redis:4.0.11-alping | |
environment: | |
- REDIS_PASSWORD=mypassword | |
- REDIS_REPLICATION_mode=master | |
#command | |
#- "--requirepass=mypassword" |
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 | |
/** | |
* This sample code comes with the shipping web service of La Poste Colissimo | |
* The example builds a request, send it to the web service, then parse its response and save the generated label to the | |
specified location | |
* @author La Poste Colissimo - [email protected] | |
*/ | |
define("SERVER_NAME", 'https://ws.colissimo.fr'); //TODO : Change server name | |
define("LABEL_FOLDER",'./labels/'); //TODO : Change OutPut Folder: this is where the label will be saved | |
//Build the input request : adapt parameters according to your parcel info and options |
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 org.w3c.dom.Element | |
import org.w3c.dom.Node | |
import javax.xml.transform.dom.DOMSource | |
import javax.xml.transform.stream.StreamResult | |
import javax.xml.transform.TransformerFactory | |
import javax.xml.transform.Transformer | |
/** | |
* For apps targeting Android 12, if the AndroidManifest.xml file contains <activity>, <activity-alias>, <service>, or |
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
version: "3" | |
services: | |
strapiexample: | |
image: strapi/strapi | |
container_name: strapiexample | |
restart: unless-stopped | |
env_file: .env | |
environment: | |
DATABASE_CLIENT: ${DATABASE_CLIENT} | |
DATABASE_NAME: ${DATABASE_NAME} |
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
version: '3' | |
services: | |
strapi: | |
image: strapi/strapi | |
container_name: strapi_mysql | |
environment: | |
DATABASE_CLIENT: mysql | |
DATABASE_HOST: mysql | |
DATABASE_NAME: ${DATABASE_NAME:-strapidb} |
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
Create a database table to store the gift card information, such as the card number, pin, balance, expiration date, and status (active or redeemed). | |
Copy code | |
CREATE TABLE gift_cards ( | |
id INT AUTO_INCREMENT PRIMARY KEY, | |
card_number VARCHAR(16) NOT NULL, | |
pin VARCHAR(4) NOT NULL, | |
balance DECIMAL(10,2) NOT NULL, | |
expiration_date DATE NOT NULL, | |
status ENUM('active', 'redeemed') NOT NULL |
OlderNewer