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 | |
$data = array('description' => "TEST: quick brown fox", | |
'public' => true, | |
'files' => array('gistfile.php' => array('content' => "the quick brown fox jumps over the lazy dog."))); | |
$data_string = json_encode($data); | |
echo '<pre>'.$data_string.'<p>'; | |
var_dump(json_decode('{ | |
"description": "the description for this gist", | |
"public": true, | |
"files": { |
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
input[type=text], textarea { | |
-webkit-transition: all 0.30s ease-in-out; | |
-moz-transition: all 0.30s ease-in-out; | |
-ms-transition: all 0.30s ease-in-out; | |
-o-transition: all 0.30s ease-in-out; | |
outline: none; | |
padding: 3px 0px 3px 3px; | |
margin: 5px 1px 3px 0px; | |
border: 1px solid #DDDDDD; | |
} |
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
/***** Selector Hacks ******/ | |
/* IE6 and below */ | |
* html #uno { color: red } | |
/* IE7 */ | |
*:first-child+html #dos { color: red } | |
/* IE7, FF, Saf, Opera */ | |
html>body #tres { color: red } |
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
# libraries/joomla/installer/adapters/template.php | |
# line:543 | |
public function discover_install() | |
{ | |
$lang = JFactory::getLanguage();//fix for discover bug on new templates | |
... | |
} |
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
disable the following: | |
mixins.less | |
fluidgridsystem | |
inputgridsystem | |
grid.less | |
fluidgridsystem | |
forms.less |
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
"Proxima Nova Regular", "Helvetica Neue", Arial, Helvetica, sans-serif; | |
"Myriad Pro", Arial, Helvetica, sans-serif; | |
"Fanwood Text"", Georgia, Times, "Times New Roman", serif; | |
"PT Sans", "Trebuchet MS", Arial, sans-serif; |
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
// Custom WordPress Login Logo | |
function login_css() { | |
wp_enqueue_style( 'login_css', get_template_directory_uri() . '/css/login.css' ); | |
} | |
add_action('login_head', 'login_css'); | |
// CSS File | |
#login h1 a { | |
background-image: url("address-of-logo.png") !important | |
} |
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
$(function() { | |
var $frame = $('<iframe style="width:200px; height:100px;">'); | |
$('body').html( $frame ); | |
setTimeout( function() { | |
var doc = $frame[0].contentWindow.document; | |
var $body = $('body',doc); | |
console.log($body); | |
$body.html('<h1>Test2</h1>'); | |
}, 1 ); | |
}); |
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
http://fonts.googleapis.com/css?family=PT+Sans:400,700 |
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
When you want to save something in session please use: | |
$mainframe = &JFactory::getApplication(); | |
$mainframe->setUserState('sessionname',$sessionvalue); | |
Where you want to get session value please use: | |
$mainframe = &JFactory::getApplication(); | |
$value = $mainframe->getUserState('sessionname'); |