Skip to content

Instantly share code, notes, and snippets.

View albertkimdev's full-sized avatar
🏠
Working from home

Albert Kim albertkimdev

🏠
Working from home
View GitHub Profile
<?php
/**
* Email Styles
*
* This template can be overridden by copying it to yourtheme/woocommerce/emails/email-styles.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
.dark-logo {
display:block !important; width: auto !important; overflow: visible !important;
float: none !important; max-height:inherit !important; max-width:inherit !important;
line-height: auto !important; margin-top:0px !important; visibility:inherit !important;
}
[data-ogsc] .dark-logo {
display:block !important; width: auto !important; overflow: visible !important;
float: none !important; max-height:inherit !important; max-width:inherit !important;
line-height: auto !important; margin-top:0px !important; visibility:inherit !important;
<!--[if !mso]><! --><div style="display:none; overflow:hidden; float:left; width:0px; max-height:0px; max-width:0px; line-height:0px; visibility:hidden;" align="center">
<img src="https://designmodo-postcards-prod.s3.amazonaws.com/logo-white.png" width="130" height="22" alt="" style="max-width: 100%; height: auto; border: 0; line-height: 100%; outline: 0; -ms-interpolation-mode: bicubic; font-size: 14px; color: #1B1B1B;">
</div><!--<![endif]-->
<tr>
<td valign="middle" style="padding: 10px;">
<a href="http://example.com" style="text-decoration: none;">
<img class="light-social" src="https://designmodo-postcards-prod.s3.amazonaws.com/facebook-dark.png" width="15" height="15" alt="" style="border: 0; line-height: 100%; outline: 0; -ms-interpolation-mode: bicubic; color: #1B1B1B;">
<!--[if !mso]><! --><div class="dark-social" style="display:none; overflow:hidden; float:left; width:0px; max-height:0px; max-width:0px; line-height:0px; visibility:hidden;" align="center">
<img src="https://designmodo-postcards-prod.s3.amazonaws.com/facebook-white.png" width="15" height="15" alt="" style="border: 0; line-height: 100%; outline: 0; -ms-interpolation-mode: bicubic; color: #1B1B1B;">
</div><!--<![endif]-->
</a>
</td>
<td valign="middle" style="padding: 10px;">
const photosMain = async (mlnumAndPhotos) => {
/**
* 1. CONNECT TO FTP CLIENT
*/
const config = {
host: process.env.TREB_FTP_HOST,
user: process.env.TREB_FTP_USER,
password: process.env.TREB_PASSWORD
};
var ftp = new PromiseFtp();
# You can set multiple versions of node here
language: node_js
node_js:
- 11.6.0
# This tells Travis to cache the node_modules files
cache: npm
# Travis lifecycle methods
install:
# You can set multiple versions of node here
language: node_js
node_js:
- 11.6.0
# This tells Travis to cache the node_modules files
cache: npm
# Travis lifecycle methods
install:
@albertkimdev
albertkimdev / .travis.yml
Created May 16, 2019 20:30
1st travis yaml file
# You can set multiple versions of node here
language: node_js
node_js:
- 11.6.0
# This tells Travis to cache the node_modules files
cache: npm
# Travis lifecycle methods
before_install:
var rp = require("request-promise");
const startServer = require("../startServer");
// We need to create a variable so that we can call .close() after the tests finish
let server;
// Before the tests run, start the server
beforeAll(() => {
const port = process.env.PORT || 4000;
image: node:latest # if this isn't here, then
# gitlab runners/ci thing doesn't know it exists
# basically this is like a docker image
# and you need to add all the depenencies
# required for this shit to run!
# here you define the stages
# build, test are stages
# once this is committed in the gitlab interface
# you'll see the stages in the pipeline running