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
class News < ActiveRecord::Base | |
alias_method :products_original, :products | |
serialize :products | |
belongs_to :user | |
def products | |
self.products_original | |
end | |
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 | |
class DivesBox extends MetaBox | |
{ | |
var $name = 'dive-info'; | |
var $label = "Dive Info"; | |
var $post_types = 'akz-dive'; | |
var $position = 'normal'; | |
var $fields = array( | |
array( |
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
import sys | |
exit() |
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
////////////////////////////////////////////////////////////////////////// | |
/// /// | |
/// SCRIPT: kdAutoRigV0.1.mel - MEL Script /// | |
/// /// | |
/// AUTHOR: Kory Dondzila - [email protected] /// | |
/// www.korydondzila.com /// | |
/// /// | |
/// DESCRIPTION: This is a prototype script. It allows the /// | |
/// user to rig the spine and neck of a character. /// | |
/// The script generates the locators for the user /// |
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
<header id="header"> | |
<div class="logo"> | |
<a href="#"> | |
<img src="" alt="" /> | |
</a> | |
</div> | |
<nav> | |
<ul> | |
<li></li> | |
</ul> |
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 (root.loaderInfo.parameters.clickTAG.substr(0,5) == "http:") { | |
// Add more button instances here | |
ClickHotspot.addEventListener( MouseEvent.CLICK, clickTagHandler); | |
// If within a movie clip | |
// movieClipInstanceName.buttonInstanceName.addEventListener(MouseEvent.CLICK, clickTagHandler); | |
} | |
function clickTagHandler(e:MouseEvent):void { | |
navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG), "_blank"); |
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 clickTagURL:String = ""; | |
if (root.loaderInfo.parameters.hasOwnProperty("clickTAG")) { | |
clickTagURL = root.loaderInfo.parameters['clickTAG']; | |
} | |
if ((/^http\:\/\/.*/).test(clickTagURL)) { | |
setClickTagHandlers(); | |
} |
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
/* =LinkBox Widget Styles | |
-------------------------------------------------------------- */ | |
.widget.widget_link_box { | |
margin: 0; | |
} | |
.widget.widget_link_box p { | |
margin: 0; | |
} | |
.widget.widget_link_box a, | |
.widget.widget_link_box a:visited { |
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
#include <stdio.h> | |
float calcSensorValue(int originalValue) { | |
// Casting allows us to take an integer and treat it as a float, | |
// which means getting decimal numbers instead of whole numbers | |
// which would be inaccurate. | |
return 48 / (float)originalValue; | |
} | |
// Responsible for handling output. |
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> | |
<!--[if IE 6]> | |
<html id="ie6" dir="ltr" lang="en-EN"> | |
<![endif]--> | |
<!--[if IE 7]> | |
<html id="ie7" dir="ltr" lang="en-EN"> | |
<![endif]--> | |
<!--[if IE 8]> | |
<html id="ie8" dir="ltr" lang="en-EN"> | |
<![endif]--> |
OlderNewer