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 phpinfo(); ?> |
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
'use strict'; | |
angular.module('SomeProject') | |
.directive('selectVehicleColor', function(){ | |
return { | |
scope: { | |
model: '=', | |
colors: '=selectVehicleColor', | |
title: '@' | |
}, |
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
<ul class="nav nav-tabs mb20"> | |
<li> | |
<a href="/batch-insert/"> | |
<i class="fa fa-align-justify"></i> | |
Текст | |
</a> | |
</li> | |
<li> | |
<a href="/files/"> | |
<i class="fa fa-th"></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
@for $i from 1 through 10 { | |
.indent#{$i} { | |
@if $i > 1 { | |
margin-left: 16px * ($i - 1); | |
} | |
} | |
} | |
.top-offers { | |
margin-top: -2px; |
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
/** | |
* Implement function check (text) which checks whether brackets within text are correctly nested. | |
* You need to consider brackets of three kinds: (), [], {}. | |
*/ | |
/** | |
* STACK approach | |
*/ | |
function check(str){ | |
var brackets = "()[]{}", |
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 array_reverse($arr) { | |
$length = count($arr); | |
for ($i=0; $i < $length/2; $i++) { | |
$tmp = $arr[$i]; | |
$arr[$i] = $arr[$length - 1 - $i]; | |
$arr[$length - 1 - $i] = $tmp; | |
} | |
} | |
var_dump(array_reverse([1,2,3,4,5])) |
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
var Tickets = function(maxLen){ | |
if (maxLen % 2) { | |
throw Error('Max length must be even: 2, 4, 6, ...'); | |
} | |
this.maxLen = parseInt((new Array(maxLen / 2 + 1)).join(9)); | |
}; | |
Tickets.prototype.count = function(num, undefined){ | |
var digits = {}, | |
i, | |
tmp; |
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
var array = [1, 2, 3, 4, 5, 6]; | |
Array.prototype.shuffle = function() { | |
var i = this.length, | |
tmp, | |
randIndex; | |
while (--i) { | |
randIndex = Math.floor(i * Math.random()); | |
tmp = this[i]; | |
this[i] = this[randIndex]; |
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
'strict mode'; | |
/** | |
* > You choose programming language, any external libraries | |
* > and strategi for implementation. | |
* > You should build a solution from scratch. | |
* | |
* I chose Javascript that work on a server (NodeJS) | |
*/ |
OlderNewer