Skip to content

Instantly share code, notes, and snippets.

View luis-pinheiro's full-sized avatar

Luis Pinheiro luis-pinheiro

View GitHub Profile
@JeffreyWay
JeffreyWay / countries.php
Created July 23, 2015 17:01
Country Names + Codes
[
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
"American Samoa" => "as",
"Andorra" => "ad",
"Angola" => "ad",
"Anguilla" => "ai",
"Antarctica" => "aq",
@retlehs
retlehs / header.php
Created April 29, 2015 04:55
Sage header template for Bootstrap top navbar component
<?php
// This file assumes that you have included the nav walker from https://github.com/twittem/wp-bootstrap-navwalker
// somewhere in your theme.
?>
<header class="banner navbar navbar-default navbar-static-top" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only"><?= __('Toggle navigation', 'sage'); ?></span>
@luis-pinheiro
luis-pinheiro / Print all variables snippet
Last active September 12, 2016 09:21
Joomla Snippets
<?php print_r($this);?>
@kid1412-net
kid1412-net / install.bat
Last active March 17, 2017 08:31
Batch install
@ECHO off
MKDIR LOG
SET "LOG_FOLDER=%CD%/LOG"
SET "LOG_FLASH_ACTIVEX=%LOG_FOLDER%/flash_activex.log"
SET "LOG_FLASH_PLAYER=%LOG_FOLDER%/flash_player.log"
SET "LOG_LIBRE=%LOG_FOLDER%/libre_office.log"
SET "LOG_7Z=%LOG_FOLDER%/7z.log"
SET "LOG_NOTEPADPP=%LOG_FOLDER/npp.log"
<?php
/**
* Plugin Name: Static Templates
*
* If most of your site content is in .php template files, and you're tired of
* creating new pages, assigning them page templates, creating page templates
* then doing it all over again on production, this plugin is for you.
*
* Examples:
*
@baudetail
baudetail / controller.php
Created November 6, 2013 08:47
dgdfgdfgdfg
jimport('joomla.application.component.controller');
@clarklab
clarklab / sftp-config.json
Created November 7, 2012 02:04
Sample Sublime SFTP config
{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help
// sftp, ftp or ftps
"type": "sftp",
"save_before_upload": true,
"upload_on_save": false,
"sync_down_on_open": false,