Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function()
{
$('.aboutNav img').click(function()
{
var title=$(this).attr('title');
$('.contentAbout div').fadeOut(500,function()
{
alert('faded');
$('#'+title).fadeIn(500);
});
public void doSearchButton(View v)
{
Dialog alert = new Dialog(SearchTabActivity.this);
alert.setContentView(R.layout.search_filter);
alert.setTitle("Filter Search Options");
alert.setCancelable(true);
Button butt=(Button)alert.findViewById(R.id.continueButton);
butt.setOnClickListener(new OnClickListener()
{
<?php
$url='domain.com/newyork/en/home/welcome-to-our-website';
$parts=explode('/',$url);
$domain='';
$location='';
$language='';
$page='';
$article='';
switch(count($parts))
.label
{
background-color: #f00;
margin: 0 10px 2px 10px;
position: relative;
}
<div class="label"><label>Email Address</label><label class="blue" style="position: absolute;right: 0;">Forgot Username</label></div>
#chartMeters>div
{
margin: 10px 25px 0 25px;
float: left;
position: relative;
text-align: center;
color: #F85F00;
font-size: 13px;
}
09-07 14:04:39.467: ERROR/AndroidRuntime(4537): Uncaught handler: thread main exiting due to uncaught exception
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): java.lang.NullPointerException
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java:617)
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at com.google.android.maps.ItemizedOverlay.getItemAtLocation(ItemizedOverlay.java:586)
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at com.google.android.maps.ItemizedOverlay.onTap(ItemizedOverlay.java:443)
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at com.google.android.maps.OverlayBundle.onTap(OverlayBundle.java:83)
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at com.google.android.maps.MapView$1.onSingleTapUp(MapView.java:346)
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at android.view.GestureDetector.onTouchEvent(GestureDetector.java:506)
09-07 14:04:39.518: ERROR/AndroidRuntime(4537): at com.go
@flagoworld
flagoworld / gist:1262644
Created October 4, 2011 20:06
"move is not defined"
(function($)
{
$.fn.beefSlider=function()
{
var el=this;
var move=true;
$(el).hover(function(){move=false;},function(){move=true;setTimeout('move()',10);});
// ^^^^^ in here
setTimeout('move()',10)
@flagoworld
flagoworld / gist:1286182
Created October 14, 2011 03:31
Catching warnings
<?php
ini_set('track_errors', '1');
error_reporting(0);
echo 1/0;
echo $php_errormsg;
?>
<?php
if(1)
{
?>
<h3>the if statement evaluates to true!</h3>
<?php
}else
{
?>
<h3>it wasnt true :[</h3>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="author" content="LTenuta" />
<link href="ryform.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/javascript">
$(function()
{