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 | |
$abc = "hello"; | |
echo $abc; | |
function isGreaterThanZero( $a ) { | |
if ( $a > 0 ) { | |
echo "TRUE"; | |
} else { |
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
jQuery(document.body).trigger('wc_fragment_refresh'); |
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 | |
/** | |
* Plugin Name: Preview Email | |
* Author: Sourov | |
*/ | |
function sourov_preview_woo_emails() { | |
$mailer = WC()->mailer(); | |
$email = $mailer->emails['WC_Email_Customer_Processing_Order']; |
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 | |
return [ | |
'bs' => 'Bosnian', | |
'ee_TG' => 'Ewe (Togo)', | |
'ms' => 'Malay', | |
'kam_KE' => 'Kamba (Kenya)', | |
'mt' => 'Maltese', | |
'ha' => 'Hausa', | |
'es_HN' => 'Spanish (Honduras)', |
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
[ | |
{ | |
"id": "laravel-deploy", | |
"execute-command": "/home/sourov/hooks/laravel-deploy.sh", | |
"command-working-directory": "/home/sourov/sites/github-actions", | |
"trigger-rule": { | |
"match": { | |
"type": "value", | |
"value": "development", | |
"parameter": { |
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
- 'feature/**' | |
defaults: |
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
# Download base image ubuntu 18.04 | |
FROM ubuntu:18.04 | |
# DEBIAN_FRONTEND | |
ARG DEBIAN_FRONTEND=noninteractive | |
# replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# Update software repository and install cURL & Wget |
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
FROM alpine:3.10 | |
# Install cURL, Zip, Vim | |
RUN apk update && apk add curl zip vim | |
# Install PHP | |
RUN apk add php7 php7-common php7-curl php7-json php7-zip php7-mbstring php7-openssl php7-phar php7-xml | |
# Install composer | |
RUN curl -sS https://getcomposer.org/installer | php -- \ |
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 | |
/** | |
* Custom rewrite rule for career page | |
*/ | |
add_action('init', function(){ | |
add_rewrite_tag('%office_location%','([^&]+)'); | |
add_rewrite_tag('%job_position%','([^&]+)'); | |
}); |
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 | |
// Show all php errors | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
// END |
NewerOlder