Skip to content

Instantly share code, notes, and snippets.

const mainFn = () => {
Safari.open('msteams://');
};
module.exports = {
main: mainFn,
};
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] )
{
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;
<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); } }
@mihneawalker
mihneawalker / dloader.php
Created December 27, 2011 14:17
downloader
<?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;