Skip to content

Instantly share code, notes, and snippets.

View brunoais's full-sized avatar
🎯
Focusing

brunoais brunoais

🎯
Focusing
View GitHub Profile
@brunoais
brunoais / client side:
Created February 20, 2012 22:42
file changes for the fallback of jQuery
<!--[if !IE]><script defer type="text/javascript" src="{T_JQUERY_LINK}" onerror="location.href = (location.href.indexOf('?') !== -1) ? location.href.replace(/\?/, '?altjQuery&') : (location.href.indexOf('#') === -1 ? location.href + '?altjQuery': location.href.replace(/#/, '?altjQuery#'));" ></script><![endif]-->
<!--[if IE]><script type="text/javascript" src="{T_JQUERY_LINK}" onerror="location.href = (location.href.indexOf('?') !== -1) ? location.href.replace(/\?/, '?altjQuery&') : (location.href.indexOf('#') === -1 ? location.href + '?altjQuery': location.href.replace(/#/, '?altjQuery#'));" ></script>
<!--[if lt IE 9]><script defer type="text/javascript" src="{T_TEMPLATE_PATH}/isjQueryHere.js"></script><![endif]--><![endif]-->
<script defer type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js"></script>
<script defer type="text/javascript" src="{T_TEMPLATE_PATH}/ajax.js"></script>
<!-- the rest of javascript files with the defer. As long as it is same origin all is ok -->
@brunoais
brunoais / gist:1871142
Created February 20, 2012 20:15
my solution to deal with IE
<!--[if !IE]--><script defer type="text/javascript" src="{T_JQUERY_LINK}" onerror="location.href = (location.href.indexOf('?') !== -1) ? location.href.replace(/\?/, '?altjQuery&') : (location.href.indexOf('#') === -1 ? location.href + '?altjQuery': location.href.replace(/#/, '?altjQuery#'));" ></script><!--[endif]-->
<!--[if IE]><script type="text/javascript" src="{T_JQUERY_LINK}" onerror="location.href = (location.href.indexOf('?') !== -1) ? location.href.replace(/\?/, '?altjQuery&') : (location.href.indexOf('#') === -1 ? location.href + '?altjQuery': location.href.replace(/#/, '?altjQuery#'));" ></script>
<!--[if lt IE 9]><script defer type="text/javascript" src="{T_TEMPLATE_PATH}/isjQueryHere.js"></script><![endif]--><![endif]-->
<script defer type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js"></script>
<script defer type="text/javascript" src="{T_TEMPLATE_PATH}/ajax.js"></script>
<!-- the rest of javascript files with the defer. As long as it is same origin all is ok -->
$ export EDITOR="C:\Program Files (x86)\Notepad++\notepad++.exe"
$ git rebase -i HEAD~2
/libexec/git-core/git-rebase--interactive: eval: line 174: syntax error near unexpected token `('
/libexec/git-core/git-rebase--interactive: eval: line 174: `C:\Program Files (x86)\Notepad++\notepad++.exe "$@"'
Could not execute editor
(function($, window, document, undefined) { // Avoid conflicts with other libraries
var xslt = xslt('{{xslt}}');
{% for bbcode in BBCODES}
$.sceditor.plugins.bbcode.bbcode.set('{{bbcode.name}}',
{
tags: {
{% for containerTag in bbcode.containerTags}
'{{containerTag}}': {
'data-tag-id': "{{bbcode.tagId}}"
@brunoais
brunoais / long data.js
Last active August 29, 2015 14:19
generated javascript
(function($, window, document, undefined) { // Avoid conflicts with other libraries
xslt = xslt('<?xml version="1.0"?>' +
'<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">' +
' <xsl:param name="defaulted"/>' +
' <xsl:param name="content"/>' +
' <xsl:param name="size"/>' +
' <xsl:param name="L_WROTE"/>' +
' <xsl:param name="author"/>' +
' <xsl:param name="type"/>' +
' <xsl:param name="L_IMAGE"/>' +
@brunoais
brunoais / gist:e02f5724c41c94962eff
Last active August 29, 2015 14:01 — forked from nickvergessen/gist:752b6b54eedc76c793f3
Alternative for phpBB dbal for more explicit table joins
<?
array(
/** ... **/
'FROM' => array(
ONE_TABLE => '1',
TWO_TABLES => array('2', '3'),
ONE_ON_TABLE => array('4' => array('2' =>'4.case = 2.case'),
TWO_ON_TABLES => array(
'5' => array('2' => '5.case = 2.case'),
'6' => array('3' => '6.case = 3.case'),
'FROM' => array(
ONE_TABLE => '1',
TWO_TABLES => array('2', '3'),
ONE_ON_TABLE => array('4' => '4.case = 2.case',
TWO_ON_TABLES => array(
'5' => '5.case = 2.case',
'6' => '6.case = 3.case',
),
),
@brunoais
brunoais / gist:10657241
Created April 14, 2014 15:15
my forumlist_body.html
<!-- BEGIN forumrow -->
<!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT -->
</ul>
</div>
</div>
<!-- ENDIF -->
<!-- EVENT forumlist_body_category_header_before -->
@brunoais
brunoais / gist:10654807
Created April 14, 2014 14:47
twig error
Uncaught exception 'Twig_Error_Syntax' with message 'Unexpected tag name "endif" (expecting closing tag for the "for" tag defined near line 3) in "forumlist_body.html" at line 88'
@brunoais
brunoais / gist:10650977
Created April 14, 2014 14:03
phpBB synphony fatal error
Fatal error: Class 'Symfony\Component\HttpKernel\DependencyInjection\Extension' not found in \phpBB\phpbb\di\extension\config.php on line 21