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 | |
$fsource = fopen('lista.txt','r'); | |
while (!feof($fsource)) { | |
$fline = fgetcsv($fsource,1000,','); | |
$remotePath = $fline[0]; | |
$localfname = ucwords($fline[1]); | |
$localfname = preg_replace("/[^a-zA-Z0-9s]/","",$localfname); | |
$xtn = pathinfo($remotePath, PATHINFO_EXTENSION); | |
$localfname ='pics/' . $localfname . '.'.$xtn; |
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
<style type="text/css"> | |
/* Dă necenzurat, sub licenta WTFPL */ | |
img { | |
-webkit-animation:spin 10s linear infinite; | |
-moz-animation:spin 10s linear infinite; | |
animation:spin 10s linear infinite; | |
} | |
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } | |
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } |
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 destroyer(arr) { | |
// var argss = [...arr]; | |
var argss = Array.from(arguments); | |
initial = argss[0]; | |
values = argss.slice(1); | |
console.log(initial, "===", values); | |
return initial.filter( function(index){ | |
return values.indexOf(index) == -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
function getIndexToIns(arr, num) { | |
arr.sort(function (a,b){ | |
return a-b; | |
}); | |
console.log(arr); | |
for (var i=0; i < arr.length; i++) | |
{ | |
if (num <= arr[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
const mainFn = () => { | |
Safari.open('msteams://'); | |
}; | |
module.exports = { | |
main: mainFn, | |
}; |