Skip to content

Instantly share code, notes, and snippets.

@elenakondrateva
elenakondrateva / VerifyCsrfToken.php
Created June 15, 2020 02:12
Enable Postman requests in Laravel (exception for CSRF Middleware)
<?php
namespace App\Http\Middleware;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
@mdalvi
mdalvi / ta-lib_64-bit_installation.md
Last active October 1, 2024 12:58
ta-lib 64-bit Installation on Windows 10

Here are the instructions to build the 64-bit ta-lib.

Install TA-Lib C Library on Windows 10

  • Download and Unzip ta-lib-0.4.0-msvc.zip
  • Move the Unzipped Folder ta-lib to C:\
  • Download and Install Visual Studio Community 2015
  • Remember to Select [Visual C++] Feature
  • Build TA-Lib Library
  • From Windows Start Menu, Start [VS2015 x64 Native Tools Command Prompt]
@jonahlyn
jonahlyn / DBConnection.php
Created September 1, 2011 16:59
PDO Connection Class
<?php
/*
* Class DBConnection
* Create a database connection using PDO
* @author jonahlyn@unm.edu
*
* Instructions for use:
*
* require_once('settings.config.php'); // Define db configuration arrays here
* require_once('DBConnection.php'); // Include this file