This file contains hidden or 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 | |
public function iuguCreateSubscription($subscriptionData, $debug = false) | |
{ | |
\Fuel\Core\Config::load('iugu'); | |
$url = \Fuel\Core\Config::get('iugu.url'); | |
$idIugu = \Model\Treasury_Marketplace_Store::getTokenStore(new \MongoId($subscriptionData['_store']), true); | |
$modelPlan = new Treasury_Marketplace_Store_Plan(); | |
$modelBrother = new Hospitality_Brother(); |
This file contains hidden or 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" : ObjectId("5966e4fc025a6132018b456b"), | |
"type" : "payment gateway", | |
"gateway" : "iugu", | |
"action" : "create subscription", | |
"uri" : "http://backoffice.maconarialegal.com.br/treasury/subscriptions/add", | |
"result" : { | |
"id" : "B5AC216621254BFDB06FD5783C818469", | |
"suspended" : false, | |
"plan_identifier" : "new-test", |
This file contains hidden or 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
$this->get('/deleteall', function ($request, $response, $args) { | |
$params = $_GET; | |
$modelSkyhub = new ModelSkyhubCategories(); | |
$categoriesSkyhub = $modelSkyhub->getCategories($params); | |
foreach ($categoriesSkyhub as $key => $category) { | |
$delete = $modelSkyhub->delete($category['code']); | |
flush(); | |
ob_flush(); | |
var_dump($category['code']); |
This file contains hidden or 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
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/VYk8Lw for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: phpunit/phpunit:5.0.3 | |
pipelines: | |
default: | |
- step: |
This file contains hidden or 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
<div class=\"vc_row wpb_row vc_row-fluid dt-default\" style=\"margin-top: 0px;margin-bottom: 0px\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner \"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element \">\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<h2>Manhã</h2>\n\n\t\t</div>\n\t</div>\n<div class=\"vc_tta-container\" data-vc-action=\"collapse\"><div class=\"vc_general vc_tta vc_tta-tabs vc_tta-color-grey vc_tta-style-classic vc_tta-shape-rounded vc_tta-spacing-1 vc_tta-tabs-position-top vc_tta-controls-align-left\"><div class=\"vc_tta-tabs-container\"><ul class=\"vc_tta-tabs-list\"><li class=\"vc_tta-tab vc_active\" data-vc-tab><a href=\"#1493824828636-34808e78-6db0\" data-vc-tabs data-vc-container=\".vc_tta\"><span class=\"vc_tta-title-text\">Aquático</span></a></li><li class=\"vc_tta-tab\" data-vc-tab><a href=\"#1495088624918-f1e1542c-6aa2\" data-vc-tabs data-vc-container=\".vc_tta\"><span class=\"vc_tta-title-text\">Esportes de Quadra</span |
This file contains hidden or 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
# Roteiro de Deploy Projeto 2017#B2w Skyhub | |
# Magento | |
## Habilitação de REST do magento nos ambientes de Homologação e produção | |
1. Criar usuários e autenticar | |
2. Configurar Nginx (rivendel) para ambientes de produção o vhost habilitando a API REST | |
2. Documentar usuários na WIKI | |
3. Instalar modulo Marketplace e API |
This file contains hidden or 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
var services = angular.module('ecofit.services', ['ngResource']) | |
.factory('Session', function ($resource) { | |
return $resource('http://localhost:8010/sessions/:sessionId'); | |
// return $resource('http://ecofit-api.joaovagner.com.br/sessions/:sessionId'); | |
}) | |
.factory('News', function ($resource) { | |
return $resource('http://www.ecofit.com.br/noticias/mobile.json'); | |
// return $resource('http://ecofit.com.br/noticias/mobile.json'); | |
// return $resource('http://ecofit-api.joaovagner.com.br/news/:slug'); | |
}) |
This file contains hidden or 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
EcofitApp | |
.config(function($stateProvider, $urlRouterProvider) { | |
$stateProvider | |
.state('app', { | |
url: "/app", | |
abstract: true, | |
templateUrl: "templates/menu.html", | |
controller: 'welcome' | |
}) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> | |
<title>Ecofit - Mobile</title> | |
<link rel="manifest" href="manifest.json"> | |
<!-- un-comment this code to enable service worker |
This file contains hidden or 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
// Guntfile | |
module.exports = function (grunt) { | |
'use strict'; | |
const pathForJavascriptFiles = 'skin/frontend/enterprise/oppa/js/**/*.js', | |
pathForNewLayout = 'skin/frontend/oppa/default/js/*.js', | |
pathForJavascriptFilesHomepage = ['skin/frontend/enterprise/oppa/js/**/*.js'], | |
pathForCssFilesHomepage = ['skin/frontend/enterprise/oppa/css/*.css'], | |
dateFormat = require('dateformat'), | |
now = new Date(), |