Skip to content

Instantly share code, notes, and snippets.

View moeproblems's full-sized avatar

Moe Hosseini moeproblems

  • San Jose, CA
View GitHub Profile
$('#mouseover-top').bind('mouseenter', function(e) {
var tab = that.tabs[that.settings.tab];
var elem = $('#' + that.settings.tab + '-box');
var $this = $(this);
$('#mouseover-bottom').show();
elem.stop().animate({top: 0}, 3000, function() {
$this.hide();
tab.top = 0;
});
}).bind('mouseleave', function(e) {
$('#mouseover-top').bind('mouseenter', function(e) {
var tab = that.tabs[that.settings.tab];
var elem = $('#' + that.settings.tab + '-box');
var $this = $(this);
$('#mouseover-bottom').show();
var speed = Math.abs(tab.top) / (tab.height - that.settings.height);
elem.stop().animate({top: 0}, Math.round(that.settings.maxSpeed * speed), function() {
$this.hide();
tab.top = 0;
});
/**
* Module to display a lightbox with a set of images
* @author Moe
*/
Site.MediaOverlay = (function($) {
//private variables
var canComment = true,
imageIndex = 0,
fullWidth = 935,
shortWidth = 650,
$(selector).live('keyup', function(e) {
}).live('focus', function(e) {
activeElem = $(this);
activeElem.trigger('keyup');
}).live('blur', function(e) {
hideDropDown();
});
{
*
-
result: [
o
-
{
+ id: "589303468"
+ server: "620"
$.when(Utils.post({ message: text, services: services, media: uploadedImages} ))
.then(function(r) {
Site.resetUploadArea(message_id);
if(services.length == 0)
Utils.triggerGlobalInformer(inform, Uploader.informerDelay);
})
.fail(function(r) {
Utils.triggerGlobalInformer("Well, something went wrong. Embarrassing, isn't it?", 5);
});
<script type="text/javascript">
GA_googleAddSlot("ca-pub-7137941865592088", "yfrog2_landing");
GA_googleAddSlot("ca-pub-7137941865592088", "yfrog_Seacrest_LandingPage");
{if $screen_name}
GA_googleAddAttr("passback", "loggeduser");
GA_googleAddAttr("twitterid", "{$screen_name}");
{/if}
</script>
{assign var='modded' value=false}
{foreach from=$targeting item=m}
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
[root@moe apache]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
[root@moe apache]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere