This file contains 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 | |
$code = '[code]hi i code![/code] [/code][/code]sad[code] asd [/code] [code]dss'; | |
function c($text){ | |
$pos1 = -1; | |
$pos2 = -1; | |
// потрібно щоб запустити while | |
$text = ' '.$text; |
This file contains 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
program lesya_polidrom; | |
uses math, SysUtils; | |
var s:string; | |
fl :boolean; | |
var pows:integer; | |
var iten:integer; | |
procedure pal(s:string; var fl:boolean); |
This file contains 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 | |
for($i=1;$i<100;$i++) { | |
$powNum = pow($i, 2); | |
if(strlen($powNum) / 2 > 0){ | |
$powNumLength = strlen($powNum) / 2; | |
} else { | |
$powNumLength = 1; |
This file contains 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
<html> | |
<head> | |
<meta property="og:locale" content="de_DE" /> | |
<meta property="og:locale:alternate" content="en_US" /> | |
<meta property="og:title" content="Beef steak" /> | |
</head> | |
<body> | |
Dog go to the shop | |
This file contains 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
data = [ | |
{id: 1, name: 'firstFolder', parent_id: null, type: 0}, | |
{id: 2, name: 'secondFolder', parent_id: 1, type: 0}, | |
{id: 3, name: 'thirdFolder', parent_id: 1, type: 0}, | |
{id: 4, name: 'fourthFolder', parent_id: 2, type: 0}, | |
{id: 5, name: 'fifthFolder', parent_id: 3, type: 0}, | |
]; | |
// data2 = [ | |
// {id: 1, name: 'firstFolder', parent_id: null, type: 0}, |
This file contains 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
// child.count is 4 | |
// manChilds.count is 2 | |
sheriph and prisoner go | |
sheriph go back | |
sheriph and manChilds go | |
sheriph and prisoner go back | |
// child.manChild.count is 1 | |
man and manChild go | |
man go back | |
// child.girlChild.count is 2 |
This file contains 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
// It can be used to save input values after change | |
// $('input').on('change', throttle(function(){ | |
// $.ajax(url); | |
//}, 1000)) | |
function throttle(fn, time) { | |
return function inner() { | |
var args = Array.prototype.slice.call(arguments); | |
clearTimeout(inner.timeout); | |
inner.timeout = setTimeout(function () { |
This file contains 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 ($, namespace) { | |
function ReloadCatcher(container) { | |
var self = this; | |
self.isItHtmlResponse = function (xhr) { | |
return xhr.getResponseHeader('Content-Type').indexOf('html') !== -1; | |
}; | |
self.convertSubmitToAjaxCalls = function () { |
This file contains 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 convertInputStringToJson(inputName){ | |
var r = inputName.replace(/]/g, '').split('['); | |
var v = {}; | |
var lastEl = null; | |
for(var i=0; i<r.length; i++) { | |
if(!Object.keys(v).length){ | |
v[r[i]] = {}; | |
lastEl = v[r[i]]; | |
} else { | |
lastEl[r[i]] = {}; |
This file contains 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
Afghanistan (+93) | |
Albania (+355) | |
Algeria (+213) | |
American Samoa (+1684) | |
Andorra (+376) | |
Angola (+244) | |
Anguilla (+1264) | |
Antigua and Barbuda (+1268) | |
Argentina (+54) | |
Armenia (+374) |
OlderNewer