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
{ | |
"491289025" : "ijinshan-kappmarket://", | |
"301521403" : "fb103361823069955://", | |
"492178411" : "ils492178411://", | |
"346142396" : "fb234434003713://", | |
"310633997" : "whatsapp://", | |
"370614765" : "com.condenet.newyorker://", | |
"325058491" : "rnmddisco://", | |
"382952264" : "epichttp://", | |
"477048487" : "predictwind://", |
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
#!/bin/sh | |
############################################################## | |
# This is the ShellShocker.net bash updater script. | |
# Version 1.0! | |
# | |
# Are you looking at this in your web browser, and would like to apply the bash patches? | |
# Just open up your terminal and type: | |
# | |
# curl https://shellshock.net/fixbash | sh | |
######## |
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
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> | |
<s:Body> | |
<GetRoomsAvailablePromoResponse xmlns="http://tempuri.org/"> | |
<GetRoomsAvailablePromoResult xmlns:a="http://schemas.datacontract.org/2004/07/CityHub" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> | |
<a:Disponibilidad> | |
<a:Available> | |
<a:CodigoError i:nil="true"/> | |
<a:CodigoTarifa>1268</a:CodigoTarifa> | |
<a:DescError i:nil="true"/> | |
<a:Descripcion>Promoción App</a:Descripcion> |
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 mf_stack = []; | |
var mf_before_sort = []; | |
var mf_after_sort = []; | |
var mf_before_save = []; | |
var methods = { | |
init : function( options ) { methods.callback_execute_js(mf_stack); }, | |
duplicate : function( ) { methods.callback_execute_js(mf_stack); }, | |
add: function( content){ mf_stack.push(content); }, | |
before_sort: function(content){ mf_before_sort.push(content); }, |
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
jQuery.mf_bind('add',function(){ | |
if('undefined' != typeof tinyMCEPreInit){ | |
jQuery(".multiline_custom_field .add_editor_mf").each( function(index,value){ | |
var editor_text = jQuery(this).attr('id'); | |
tinyMCE.execCommand('mceAddEditor', true, editor_text); | |
jQuery(this).removeClass('add_editor_mf'); | |
}); | |
} | |
}); | |
jQuery.mf_bind('before_sort', function(){ |
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 | |
query_posts( array( | |
'post_type' => array( 'post', 'postType1', 'postType2', 'other_post_type' ), | |
'showposts' => 5 ) | |
); | |
?> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<p><?php the_title(); ?></p> |
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
// https://github.com/hunk/Kit-iOS/tree/master/rotation | |
//para iniciar la animación | |
// el primer parametro es el tiempo en segundos de cada ciclo (vuelta completa) | |
// el segundo parametro es la dirección de la rotación | |
[my_button spinInfinityButtonWithTime:2 direction:-1]; | |
[my_image spinInfinityImageWithTime:5 direction: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
var deviceAgent = navigator.userAgent.toLowerCase(); | |
var iOS = deviceAgent.match(/(iphone|ipod|ipad)/); | |
if (iOS) { | |
// iOS | |
} else { | |
// not iOS | |
} |
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
NSString *path = [[NSBundle mainBundle] bundlePath]; | |
NSURL *baseURL = [NSURL fileURLWithPath:path]; | |
int numFrase = arc4random() % 3; | |
NSString *html = [NSString stringWithFormat:@"<html><body style=\"background-color: transparent;\" ><img src='%d.gif'></body></html>",numFrase]; | |
if (cual == 2) { | |
[homero loadHTMLString:html baseURL:baseURL]; |
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
//remove the ugly shadow of uiwebview | |
for(UIView *wview in [[[myCustomWebView subviews] objectAtIndex:0] subviews]) { | |
if([wview isKindOfClass:[UIImageView class]]) { | |
wview.hidden = YES; | |
} | |
} |