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 border(matrix, row, col, len) { | |
var items=[]; | |
var endCol = col - 1; | |
var endRow = row; | |
//top | |
for(;col < len; col++) { | |
items.push(matrix[row][col]); |
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 | |
define("STOP_WORDS", ["the","of","in","and","a","to","on","by","when","or","with","that","this","also","from","an","it","as","these","."]); | |
function iteratesWords($lineA, $lineB) { | |
$wordsA = preg_split("/[\s\.\,\?\;\(\)\-\%\{\}]/", $lineA); | |
$wordsB = preg_split("/[\s\.\,\?\;\(\)\-\%\{\}]/", $lineB); | |
$words = []; | |
foreach($wordsA as $wordA) { | |
foreach($wordsB as $wordB) { |
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
/** | |
* Bind com let i = 0 | |
* Bind com let i = 1 | |
* Bind com let i = 2 | |
* Bind com let i = 3 | |
* Bind com let i = 4 | |
*/ | |
for(let i = 0; i < 5; i++) { | |
setTimeout(function(){ | |
console.log('Bind com let i = '.concat(i)); |
NewerOlder