Skip to content

Instantly share code, notes, and snippets.

View niko-afv's full-sized avatar

Nicolás Fredes niko-afv

View GitHub Profile
@niko-afv
niko-afv / podlet.js
Created May 4, 2021 00:36
Podlet.js
const express = require('express');
const Podlet = require("@podium/podlet");
const fs = require("fs");
const dotenv = require('dotenv');
const externalAssets = require('./assets/externals');
const loggerMiddleware = require('./logger');
dotenv.config();
const {
{
"payment": {
"payment_id": "1",
"amount": "10000",
"date": "2018-03-14",
"account": "xxxx",
"emiter": "xxxxxx xxxxxx xxxx",
"payment_method": "xxxxx",
"status": "xxxxx",
"recipient": {
public function register()
{
$this->app->bind(
'App\Interfaces\ICore',
'App\Classes\PlutusCore'
);
$this->app->bind(
'App\Interfaces\IMapper',
'App\Classes\AccountMapper'
@niko-afv
niko-afv / helloWorld.php
Created December 1, 2015 16:00
Hola Mundo en PHP
<?php echo 'Hola Mundo'; ?>
@niko-afv
niko-afv / helloWorld.js
Created December 1, 2015 16:00
Hola Mundo
alert("Hola Mundo!");
@niko-afv
niko-afv / helloWorld.js
Created December 1, 2015 16:00
Hola Mundo
alert("Hola Mundo!");
jQuery(".comuna_drop select").on("change", function(){
var data= {
comuna_id : jQuery(this).val(),
action: 'load_tarifa'
};
jQuery.ajax({
type: 'POST',
url: ajaxurl,
data: data,
success: function(resp){
@niko-afv
niko-afv / functions
Created May 27, 2015 15:08
Functions.php
<?php
error_reporting(E_ALL ^ E_NOTICE);error_reporting(E_ALL ^ E_NOTICE);
/**
* Theme function
*
* @version $Id$
* @package wpbase
* @author WPOpal Team <opalwordpress@gmail.com, support@wpopal.com>
* @copyright Copyright (C) 2014 wpopal.com. All Rights Reserved.
@niko-afv
niko-afv / DashboardController.php
Created April 21, 2015 19:32
DashboardController.php
<?php namespace App\Http\Controllers;
use Closure;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\RedirectResponse;
class DashboardController extends Controller {
/*
|--------------------------------------------------------------------------
@niko-afv
niko-afv / routes.php
Created April 21, 2015 18:42
My app/Http/routes.php
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.