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
| # Add a "QA" top and bottom bars to App Icons | |
| # Using ImageMagick | |
| #brew install imagemagick | |
| ######## | |
| # Phone | |
| ######## | |
| convert "App Icon 1024x1024.png" \ | |
| -size 1024x128 -font "Times New Roman" -pointsize 96 -background 'rgb(106, 228, 222)' -fill red \ |
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
| from tika import parser # pip install tika | |
| import os | |
| FOLDER_WITH_PDF="./" | |
| files = [f for f in os.listdir(FOLDER_WITH_PDF) if f.endswith('.pdf')] | |
| for infile in files: | |
| full_path = os.path.join(FOLDER_WITH_PDF, infile) | |
| raw = parser.from_file(full_path) |
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
| #!/usr/bin/env python | |
| # Copyright 2016 Google, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.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
| """ | |
| Recreate the Core ML model from scratch using | |
| coremltools' neural_network.NeuralNetworkBuilder | |
| """ | |
| import coremltools | |
| import coremltools.models.datatypes as datatypes | |
| from coremltools.models import neural_network as neural_network | |
| from coremltools.models.utils import save_spec | |
| import numpy as np |
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
| #Grab archived stories from stage.co.il using | |
| #wayback_machine_downloader -c 8 -a http://stage.co.il/Stories | |
| # | |
| #This script, reads a "stage.co.il" index.html file and outputs the following HTML tag dirty text: | |
| #Author name | |
| #Title | |
| #Story | |
| #<|endoftext|> | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #Read xml in OpenSubtitles format, output text intended for training machine learning models | |
| import sys | |
| from os import path | |
| import time | |
| import xml.etree.ElementTree as ET | |
| if len(sys.argv) != 2: | |
| print("Usage: "+ str(sys.argv[0]) + " input.xml") | |
| exit(-1) |
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
| /*===---- immintrin.h - Intel intrinsics -----------------------------------=== | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * | |
| * The above copyright notice and this permission notice shall be included in |
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
| # How to completely remove Xcode 10 | |
| # Info taken from this thread: https://forums.developer.apple.com/thread/110227 | |
| # Keywords: | |
| # Uninstall, Remove, Wipe, Delete, Xcode, Xcode 10 | |
| # Assuming everythig is installed in the default path |
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
| exports | |
| ------- | |
| export CUDA_HOME=/usr/local/cuda | |
| export DYLD_LIBRARY_PATH=/Users/dadler/lib:/usr/local/cuda/lib:/usr/local/cuda/extras/CUPTI/lib | |
| export LD_LIBRARY_PATH=$DYLD_LIBRARY_PATH | |
| export PATH=$DYLD_LIBRARY_PATH:$PATH | |
| bazel | |
| ----- | |
| I used bazel 0.10.0 (installed from bazel-0.10.0-installer-darwin-x86_64.sh) |