- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains 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
RewriteCond %{HTTP_HOST} ^interclick2.home\.pl$ [NC] | |
RewriteRule ^(.*)$ http://artwalls.pl/$1 [R=301,L] |
This file contains 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
var_dump((string)$db->getQuery()); |
This file contains 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
.b2j_contact form .b2j-contact-actions { | |
.g-recaptcha { | |
overflow:hidden; | |
width:180px; | |
height:65px; | |
border:1px solid #e6e6e6; | |
This file contains 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
JFactory::getApplication()->redirect(JURI::base().'strefa-uzytkownika', $error, 'error' ); |
This file contains 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
$db =& JFactory::getDBO(); | |
$query = $db->getQuery(true); | |
$query->select('value'); | |
$query->from('sls37_djc2_items_extra_fields_values_text'); | |
$query->where('item_id ='.$itemId); | |
$query->AND('field_id ='.$field->id); | |
$db->setQuery($query); | |
$fieldValue = $db->loadObjectList(); |
This file contains 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 | |
// Create a new cURL resource | |
$curl = curl_init(); | |
if (!$curl) { | |
die("Couldn't initialize a cURL handle"); | |
} |
This file contains 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 |
This file contains 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 if($this->countModules('module name')) :?> | |
<!-- code --> | |
<?php else: ?> | |
<!-- code --> | |
<?php endif;?> |
This file contains 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
if( e.target === this ) { | |
return "clicked element is parent"; | |
} | |
else { | |
return "clicked element is child" | |
} | |
// "this" always refers to the DOM element the listener was attached to, | |
// event.target is the actual DOM element that was clicked. |
NewerOlder