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
name: Laravel | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
laravel-tests: |
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
const { dockStart } = require('@nlpjs/basic'); | |
const fs = require('fs'); | |
(async () => { | |
const dock = await dockStart({ use: ['Basic', 'Qna'], nlu: { useNoneFeature: false } }); | |
const nlp = dock.get('nlp'); | |
await nlp.addCorpus({ filename: './qna.tsv', importer: 'qna', locale: 'en' }); | |
await nlp.train(); | |
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
{ | |
"Dashboard": "Dashboard", | |
"Manage Account": "Manage Account", | |
"Profile": "Profile", | |
"API Tokens": "API Tokens", | |
"Manage Team": "Manage Team", | |
"Team Settings": "Team Settings", | |
"Create New Team": "Create New Team", | |
"Switch Teams": "Switch Teams", | |
"Logout": "Logout", |
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
for i in $(git branch --list "0*" --format="%(refname:short)"); do | |
git checkout $i | |
echo "Branch : ${i}" | |
echo "Press _enter_ to checkout the next branch" | |
read | |
done |
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 | |
/** | |
* Cheatsheet with PHP array functions | |
* | |
* Cheatsheet for showing some "use cases" about | |
* PHP array functions, sorting, editing, map, filter etc. | |
* | |
* @author Roberto Butti | |
* @link https://gist.github.com/roberto-butti/e8a1f5a4bae04b3a9668896ac546a24c | |
* |
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 | |
$endpoint_url="your_url_here"; | |
$string_json = "your_json_string"; | |
$username="username"; | |
$password ="password"; | |
$client = new Client(); | |
$options= array( | |
'auth' => [ | |
$username, |
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 clone https://github.com/Hi-Folks/gh-actions-yaml-generator.git | |
cd gh-actions-yaml-generator | |
composer install | |
php artisan ghygen:generate --projectdir=../your-laravel-app |
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
name: Test Laravel Github action | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- features/** | |
jobs: | |
laravel-tests: |
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 | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
$config=array(); | |
$config["hostname"] = "my-hostname-with-magento.com"; | |
$config["login"] = "soapuser"; | |
$config["password"] = "soappassword"; | |
$config["customer_as_guest"] = TRUE; | |
$config["customer_id"] = 261; //only if you don't want as Guest |
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
cache: | |
paths: | |
- vendor/ | |
variables: | |
MYSQL_ROOT_PASSWORD: root | |
MYSQL_USER: mysql_user | |
MYSQL_PASSWORD: mysql_password | |
MYSQL_DATABASE: mysql_db |
NewerOlder