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
Настройки Atom. Синхронизация между несколькими устройствами. | |
Смотри плагин sync-settings, чтобы забрать себе все эти настройки. Или можно скачать эти файлы и заменить у себя в ~/.atom/ |
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 $citySelect = $('#city-select'), | |
STORAGE_ITEM_NAME = 'saveCity'; | |
$citySelect.on('change', function () { | |
var url = $citySelect.val(); | |
if (url !== '') { | |
localStorage.setItem(STORAGE_ITEM_NAME, url); | |
window.location = url; |
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
/** | |
* Disable selection on document | |
*/ | |
function preventSelection(element){ | |
var preventSelection = false; | |
function addHandler(element, event, handler){ | |
if (element.attachEvent) | |
element.attachEvent('on' + event, handler); | |
else |
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 | |
/* | |
* 401 Response | |
* | |
* Sends a 401 Response Unauthorized | |
* | |
* @author Camilo Castro | |
* | |
* @date 29/07/2014 |
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
<script type="text/javascript"> | |
if( navigator.userAgent.match(/iPad/i) != null ){ | |
document.write('<meta name="viewport" content="width=1000, initial-scale=0.73, maximum-scale=1, user-scalable=1">'); | |
} else if(navigator.userAgent.match(/iPhone/i) != null ) { | |
document.write('<meta name="viewport" content="width=320">'); | |
} else { | |
document.write('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'); | |
} | |
</script> |
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 | |
$out = ''; | |
// create a new form field (also field wrapper) | |
$form = $modules->get("InputfieldForm"); | |
$form->action = "./"; | |
$form->method = "post"; | |
$form->attr("id+name",'subscribe-form'); |
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 | |
$start = $input->get->$from; | |
$start = $input->get->$from_name; | |
$start = $input->get->$to; | |
$start = $input->get->$to_name; | |
$subject = $input->get->subject; | |
$start = $input->get-> $message; | |
email_classic($from, $from_name, $to, $to_name, $subject, $message); |
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 | |
/** | |
* | |
* Añade el cliente para Newsletters de un determinado municipio | |
* Si el cliente existe lo añade a la suscripcion del municipio seleccionado | |
* Si el cliente NO existe crea el usuario y la suscripcion | |
* | |
* IN: |