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
$(function(){ | |
var ratioEl = $("#videoratio"); | |
if(ratioEl){ | |
var ratio = ratioEl.html().split(':'); | |
$("#dnn_dnnARTICLE_aembed object").attr('height', 500 * ratio[1] / ratio[0]); | |
} | |
}); |
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
$javascript = <<<JS | |
function javascriptFunction() | |
{ | |
/* Some javascript code here */ | |
} | |
JS; |
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
bizintel = { | |
/** Should give a brief overview of what kinda scripts are running on this site **/ | |
init: function(){ | |
//call function accordingly | |
banner.init(); | |
new.init(); | |
}, | |
banner:{ | |
config:{ | |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Lorem ipsum</title> | |
</head> | |
<body> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script>window.jQuery || document.write("<script src='js/libs/jquery-1.6.2.min.js'>\x3C/script>")</script> |
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
/*** | |
* http://www.java-forums.org/java-tips/6296-inner-class-accessing-outer-class.html | |
**/ | |
public class TestIt { | |
public static void main(String a[]){ | |
new TestIt().doit(); | |
/* | |
output : | |
Hello world! |
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
function edit() { | |
if(!empty($this->data)) { | |
$this->Profile->saveAll($this->data['Profile']); | |
} | |
else { | |
$this->data['Profile'] = Set::combine($this->Profile->find('all'), '{n}.Profile.id', '{n}.Profile'); | |
} | |
} |
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
Testing |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
html, body{ | |
height: 100%; | |
} | |
.content_botbg{ | |
background: #eeeeee; | |
background: -moz-linear-gradient(top, #eeeeee 0%, #ededed 16%, #e5e5e5 43%, #dddddd 57%, #d0d0d0 73%, #d0d0d0 75%, #cccccc 77%, #b7b7b7 100%); |
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
// | |
// Database.h | |
// ChanelVIP | |
// | |
// Created by Mike Han on 1/12/12. | |
// Copyright (c) 2012 Comwerks Interactive. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
SELECT `p`.`code`, `p`.`building_num`, `w`.`building_number`, `s`.`name`, `b`.`name` FROM postcodes AS `p` | |
LEFT JOIN `streets` AS `s` ON (`p`.`street_key` = `s`.`id`) | |
LEFT JOIN `buildings` AS `b` ON (`p`.`building_key` = `b`.`id`) | |
LEFT JOIN `walkups` AS `w` ON (`w`.`postalcode` = `p`.`code`); |