Skip to content

Instantly share code, notes, and snippets.

View selvinortiz's full-sized avatar
👋

Selvin Ortiz selvinortiz

👋
View GitHub Profile
@selvinortiz
selvinortiz / index.html
Last active December 16, 2015 20:59 — forked from matfish2/boilerplate.html
HTML:Boilerplate
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
@if(empty($title))
<title>Company</title>
@else
<title>{{ $title }} | Company</title>
@endif
<link rel="stylesheet" type="text/css" href="/css/reusify.css">
@selvinortiz
selvinortiz / pdo.php
Created May 22, 2013 17:26 — forked from quoidautre/gist:3781733
PHP:PDO
<?php
// PDO Connection to MySQL
$conn = new PDO('mysql:host=localhost;dbname=yourdbname', 'username', 'password');
// PDO Connection to PostgreSQL
$conn = new PDO('pgsql:host=localhost;dbname=yourdbname', 'username', 'password');
// A quick Select Query with For Loop
foreach ($conn->query("SELECT * FROM profile") as $row)
echo $row['fullname'];
@selvinortiz
selvinortiz / load.php
Created June 17, 2013 08:59 — forked from jwage/SplClassLoader.php
PHP:Loader
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@selvinortiz
selvinortiz / app.js
Created July 31, 2016 05:39 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');
@selvinortiz
selvinortiz / AITool.md
Created March 5, 2024 18:31 — forked from localzet/AITool.md
AI Tool Master List