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
$whatIf = $false | |
$removeHiddenFiles = $true | |
$minimumSize = 128 #dalam KB | |
$global:fileRemoved = 0 | |
$global:lengthRemoved = 0 |
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
server { | |
listen 80; | |
server_name test.test; | |
root /storage/web/test; | |
location /2018 { | |
alias /storage/web/test/2018/public; |
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 | |
class User | |
{ | |
public $firstName = 'Bob'; | |
protected $attributes = [ | |
'firstName' => 'Anto', | |
]; |
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 | |
use Illuminate\Support\Collection; | |
$nextWeek = Collection::times(7, function ($index) { | |
return \Carbon\Carbon::now()->addDay($index); | |
}); |
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
import os | |
import shutil | |
from multiprocessing.dummy import Pool as ThreadPool | |
from tqdm import tqdm | |
df['image'] = df['_id'].apply(lambda x:x+".jpg") | |
path = df['image'].tolist() | |
def move_file(pth): | |
shutil.move("/content/netaporter_gb/"+pth, "/content/netaporter_gb_images/"+pth) |