Skip to content

Instantly share code, notes, and snippets.

View Mimer's full-sized avatar

Elmer Calderón Mimer

View GitHub Profile
@Mimer
Mimer / gist:e363e10703fd9d4efeb0
Last active August 29, 2015 14:09
iframe cnnH cm
<div id="container" style="width: 825px; height: 915px; margin:auto;">
<div id="outerdiv" style="width: 950px; height: 891px; overflow:hidden; position:relative;">
<iframe style="position:absolute; top: -575px; left: -47px; width: 1000px; height: 1789px;" width="500" height="560" src="http://bit.ly/jphero" scrolling="no" frameborder="0"></iframe>
</div>
</div>
;<?php exit; ?>
;*** DO NOT REMOVE THE LINE ABOVE ***
[openads]
installed=1
requireSSL=
sslPort=443
[ui]
enabled=1
@Mimer
Mimer / Source ticket Vaadin
Last active December 20, 2015 08:19
VAADIN Ticket html | J. Aguirre
********************************* INICIO del código HTML ***********************************
private void PrintReceipt(String allEntryNumbers, int totalEntry,
String securityCode, String drawDate, String strGameDetails) {
Window window = new Window("Certificación");
window.setPositionX(PronetWebPayMain.getInstance().mainWindow.getWidthUnits()-40);
window.setPositionY(PronetWebPayMain.getInstance().mainWindow.getPositionY()+5);
window.setCaption(null);
String capLetters[] = {"A","B","C","D","E","F","G","H","I","J" };
@Mimer
Mimer / HEADER
Created August 22, 2012 22:33
VAADIN FicohsaFoot v 1.0
mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
HorizontalLayout top = new HorizontalLayout();
top.setWidth("100%");
top.setMargin(false, false, false, true); // Poner todo en false =)
top.setSpacing(true);
top.addStyleName("HeadMain");
Embedded cover = new Embedded("");
@Mimer
Mimer / mu-functions.php
Created July 10, 2012 00:31
Funcion para Capturar Primera Imagen de cada post
//Funcion para Capturar Primera Imagen de cada post
function first_postimage() {
global $post, $posts;
$first_img = '';
ob_start(); //buffer
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); // matriz de salida
$first_img = $matches [1] [0]; //grabamos el primer match
return $first_img; // resultado final
}
@Mimer
Mimer / mu-functions.php
Created July 10, 2012 00:29
EPIC DESIGN WARP+ GALLERY CUSTOM SHORTCODE FOR LIGTHBOX AND CUSTOM STYLE
// --------- EPIC DESIGN WARP+ GALLERY CUSTOM SHORTCODE FOR LIGTHBOX AND CUSTOM STYLE ----------- //
remove_shortcode('gallery', 'gallery_shortcode');
add_shortcode('gallery', 'mcm_gallery_shortcode');
function mcm_gallery_shortcode($attr) {
global $post;
static $instance = 0;
$instance++;
@Mimer
Mimer / mu-functions.php
Created July 10, 2012 00:27
Funcion para Capturar Primera Imagen de cada post
//Funcion para Capturar Primera Imagen de cada post
function first_postimage() {
global $post, $posts;
$first_img = '';
ob_start(); //buffer
ob_end_clean();
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); // matriz de salida
$first_img = $matches [1] [0]; //grabamos el primer match
return $first_img; // resultado final
}