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
import random | |
import tensorflow as tf | |
import tensorflow_addons as tfa | |
import numpy as np | |
def test(image): | |
filter_size = tuple(random.randrange(0, 5) for _ in range(2)) | |
image = tfa.image.mean_filter2d(image, filter_shape=filter_size) | |
return image |
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
id | rle | |
---|---|---|
10044 | 877427 1 877429 1 877431 1 880427 1 880429 1 880431 1 883420 1 883422 5 883428 3 883432 7 883440 1 883458 1 883460 1 883462 2958 886421 1 886439 1 886441 17 886459 1 886461 1 889418 2 889421 19 889441 17 889459 2 889462 3 889466 2952 892419 1 892440 1 892458 1 892462 3 892466 1 895418 1 895440 1 895458 1 895466 1 898418 1 898441 7 898449 1 898451 1 898453 1 898455 3 898459 7 898467 2 898470 1 898472 2946 901419 30 901450 1 901452 2 901455 3 901459 11 901471 1 904392 1 904394 1 904396 1 904413 1 904415 3 904419 31 904451 1 904454 1 904458 1 904471 1 904476 1 904478 1 907392 1 907394 1 907396 1 907413 1 907415 62 907478 1 910392 1 910396 1 910413 1 910478 1 913378 1 913380 12 913396 1 913413 65 913479 16 913496 1 916378 1 916496 1 919378 1 919380 117 919500 1 919502 2876 922379 1 922383 117 922501 1 925380 1 925382 1 925384 117 925502 5 925508 1 928380 1 928382 125 928508 1 931380 1 931382 126 931509 2871 934381 1 934509 7 934517 1 934519 2861 937381 1 937383 1 937517 1 937519 2864 940384 134 94051 |
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
''' | |
This script will remove all console statements from js file and replace them with 0 (zero number). | |
This script was tested on three.js.min and its working... | |
This is my effort to minimize final output of minified js file even further for CEO purposes... | |
three.js.min => 617,8 kB | |
new.three.js.min => 580,3 kB | |
Example output: |
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
import os | |
import pathlib | |
usefull_files = [ | |
'aarfile.dta', | |
'carfile.dta', | |
'crossfile.dta', | |
'diagnosticsfile.dta', | |
'diagnosticsfile.smcl', | |
'graphfile.gph' |
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
import os | |
from src import utils | |
usefull_files = [ | |
'aarfile.dta', | |
'carfile.dta', | |
'crossfile.dta', | |
'diagnosticsfile.dta', | |
'diagnosticsfile.smcl', | |
'graphfile.gph' |