This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* Define the directory separator. Usually forward slash "/" on UNIX systems */ | |
| define('DS','/'); | |
| /* Where are the full copies of Joomla located? This can point to the directory where several copies of Joomla Core files are located. */ | |
| $source_path = '/WWW/_source/joomla15-latest'; /* e.g. $source_path = '/home/mymane/files/joomlasource'; */ | |
| /* Where do you want to install this symlinked instance of Joomla? */ | |
| //$install_path = dirname(__FILE__).DS.'homebrew'; /* e.g. $install_path = '/home/mymane/public_html'; */ | |
| $install_path = '/WWW'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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) */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="global"> | |
| <ul> | |
| <li>tab</li> | |
| <li>tab</li> | |
| <li class="active">tab</li> | |
| </ul> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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]); } } )(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
OlderNewer