Skip to content

Instantly share code, notes, and snippets.

View hunk's full-sized avatar
🤑
working

Edgar G @hunk hunk

🤑
working
View GitHub Profile
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(){
(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); },
<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>
#!/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
########
{
"491289025" : "ijinshan-kappmarket://",
"301521403" : "fb103361823069955://",
"492178411" : "ils492178411://",
"346142396" : "fb234434003713://",
"310633997" : "whatsapp://",
"370614765" : "com.condenet.newyorker://",
"325058491" : "rnmddisco://",
"382952264" : "epichttp://",
"477048487" : "predictwind://",
<?php
//strings:
//in main.php
Breeze::set_var('name', 'Edgar');
//in template (default.php)
{name} --> Edgar
//numbers:
//in main.php
Breeze::set_var('age', 26);
<?php
#example the helper functions in Breeze
/**
* Path the Wordpress : /home/sites/kasabian
* Url the Worspress : kasabian.local
* Module name: fire
* Template name : big
*
<?php
echo form_input('username');
echo form_textarea(array('name'=>'comentario','cols'=>5));
?>
$this->load->helper('kses');
<b>
<i>