Skip to content

Instantly share code, notes, and snippets.

View jmramos02's full-sized avatar
💭
💲

Jose Mari Ramos jmramos02

💭
💲
  • Philippines
View GitHub Profile
@jmramos02
jmramos02 / Register Customer Request
Created August 19, 2020 00:39
/register/customer
{
"email_address": "ramosjosemari+9@gmail.com",
"first_name": "Jose Mari",
"last_name": "Ramos",
"password": "p@ssw0rd01",
"weight": 73.8,
"height": "5'4",
"goal": "lose weight",
"allergy": "none",
"dietary_preference": "all meat",
{
"data": [
{
"id": 6,
"created_at": "2020-08-18T10:47:46.979725+08:00",
"updated_at": "2020-08-18T10:47:46.979725+08:00",
"deleted_at": null,
"specialty": "sports_nutrition",
"years_of_experience": 10,
"customers": null,
<?php
/**
* This code retrieves course data from an external API and displays it in the user's
* My Account area. A merchant has noticed that there's a delay when loading the page.
*
* 1) What changes would you suggest to reduce or remove that delay?
* 2) Is there any other code changes that you would make?
*/
public function add_my_courses_section() {
$api_user_id = get_user_meta( get_current_user_id(), '_external_api_user_id', true );
{
"targets": {
"slack_target": {
"type": "url_target_v2",
"title": "Slack integration endpoint",
"method": "post",
"content_type": "application/json",
"target_url": "https://5cb08f33.ngrok.io"
}
},
@jmramos02
jmramos02 / Laravel PHP7 LEMP AWS.md
Created March 13, 2017 13:53 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 14.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 14.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
var gulp = require('gulp'); // Base gulp package
var babelify = require('babelify'); // Used to convert ES6 & JSX to ES5
var browserify = require('browserify'); // Providers "require" support, CommonJS
var notify = require('gulp-notify'); // Provides notification to both the console and Growel
var rename = require('gulp-rename'); // Rename sources
var sourcemaps = require('gulp-sourcemaps'); // Provide external sourcemap files
var livereload = require('gulp-livereload'); // Livereload support for the browser
var gutil = require('gulp-util'); // Provides gulp utilities, including logging and beep
var chalk = require('chalk'); // Allows for coloring for logging
var source = require('vinyl-source-stream'); // Vinyl stream support
_cleanupLineBreaks: function(toBeCleaned) {
var cleaned = toBeCleaned;
_.each(cleaned, function(value, key) {
var value = _.escape(value).replace(/\n/g, '<br>');
cleaned[key] = value.replace('<br><br><br><br><br>','<br>'); //replace excess line breaks on address
});
return cleaned;
},