Skip to content

Instantly share code, notes, and snippets.

@brentini
brentini / blank-template-snippets.txt
Created July 1, 2012 23:03 — forked from cod3cow/template-snippets.txt
Blank Template Snippets for Joomla! 2.5 - http://blank.vc
# all php files :: disallow direct access of file
# between <?php and ?>
defined('_JEXEC') or die;
# index.php :: define variable with application
# between <?php and ?>
$app = JFactory::getApplication();
# index.php :: define variable with document
# between <?php and ?>
@brentini
brentini / class-walker-navbar-menu.php
Last active March 23, 2018 21:32
Walker class for WordPress custom menu integration in Twitter Bootstrap navbar #wordpress
<?php
class Walker_Navbar_Menu extends Walker_Nav_Menu {
public $dropdown_enqueued;
function __construct() {
$this->dropdown_enqueued = wp_script_is( 'bootstrap-dropdown', 'queue' );
}
@brentini
brentini / symlink-joomla
Created August 2, 2012 18:59 — forked from wizmedia/symlink-joomla
This script allows you to deploy multiple installations of Joomla! using one Joomla! full source directory. Can be very useful for Multiple websites using only one main Joomla! Directory.
@brentini
brentini / blank-template-snippets.txt
Created August 20, 2012 17:59 — forked from cod3cow/template-snippets.txt
Blank Template Snippets for Joomla! 2.5 - http://blank.vc
# all php files :: disallow direct access of file
# between <?php and ?>
defined('_JEXEC') or die;
# index.php :: define variable with application
# between <?php and ?>
$app = JFactory::getApplication();
# index.php :: define variable with document
# between <?php and ?>
@brentini
brentini / media-queries.txt
Created September 29, 2012 04:47 — forked from cod3cow/media-queries.css
CSS Media Queries - Solo and Bootstrap way
/* Solo Queries
*********************************************/
/* Phones (portrait and landscape) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {}
/* Phones (landscape) */
@media only screen and (min-width: 321px) {}
/* Phones (portrait) */
@brentini
brentini / css3tabs.html
Last active December 15, 2015 19:29 — forked from anonymous/index.html
CSS3 tabs without images
<div id="global">
<ul>
<li>tab</li>
<li>tab</li>
<li class="active">tab</li>
</ul>
</div>
@brentini
brentini / HTML5 Enabler
Last active March 23, 2018 21:31 — forked from benplum/HTML5 Enabler
testing #javascript
/* Pre-Define HTML5 Elements in IE */
(function(){ var els = "source|address|article|aside|audio|canvas|command|datalist|details|dialog|figure|figcaption|footer|header|hgroup|keygen|mark|meter|menu|nav|picture|progress|ruby|section|time|video".split('|'); for(var i = 0; i < els.length; i++) { document.createElement(els[i]); } } )();
@echo off
SET st2Path=C:\Program Files\Sublime Text 2\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f
using http://nssm.cc/usage
Install BTSync
Configure your shared folders
Make sure you uncheck the "Start btsync when windows starts" option in the preferences.
Download nssm, as an admin run "nssm install BTSync"
Put in the path to the BTSync.exe
Open windows service manager and tell it to run BTSync as the user you just used to install.
Make sure BTSync isn't already running, then start the service.
@brentini
brentini / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console