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
#!/bin/sh | |
# Make sure to run this script in Framework folder to work properly. | |
# Create universal-framework.sh and copy all content to it. | |
# Provide FRAMEWORK_NAME to start build | |
# Globals Variables | |
# Avilable Platforms/Architectures | |
# macosx | iphoneos | iphonesimulator | appletvos | appletvsimulator | watchos | watchsimulator |
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
struct Delegation<Input, Output> { | |
private(set) var callback: ((Input) -> Output?)? | |
mutating func delegate<Target: AnyObject>(to target: Target, _ callback: @escaping (Target, Input) -> Output) { | |
self.callback = { [weak target] (input) in | |
guard let target = target else { | |
return nil | |
} | |
return callback(target, input) | |
} |
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
from bs4 import BeautifulSoup | |
with open("/Users/rehan/Documents/iOS Projects/Developers Clan/abc.html", "r") as file: | |
html_doc = file.read() | |
categories_arr = [] | |
html_parser = BeautifulSoup(html_doc, "lxml") | |
all_td_tags = html_parser.find_all("td") |
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 pathlib import Path | |
from sys import argv | |
class ResetTrial: | |
path = str(Path().home()) + "/Library/" | |
file_array = [] | |
dir_array = [] |
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
REM Initex Software Proxifier 3.28 trial reset | |
REM Close Proxifier if it is running | |
taskkill /f /im Proxifier.exe | |
REM If you're using portable edition - delete "DefaultWANProfile" line in "Settings.ini" file in Proxifier PE folder too | |
reg delete "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v DefaultWANProfile /f | |
reg delete "HKCU\Software\Initex\Proxifier\Settings" /v DefaultWANProfile /f |
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
Install Meld > Add it to SystemPath where Meld.exe is located. | |
SourceTree > Tools > Options > Diff > Diff(Custom > Meld.exe) & Merge(Custom > Meld.exe) | |
Arguements: | |
Diff: $LOCAL $REMOTE | |
Merge: $LOCAL $BASE $REMOTE --auto-merge --output=$MERGED | |
If you got DLL Issue : | |
Copy "C:\Program Files (x86)\Meld\lib\libgirepository-1.0-1.dll" to "C:\Program Files (x86)\Meld\libgirepository-1.0-1.dll". |
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
@echo off | |
REM Delete eval folder with licence key and options.xml which contains a reference to it | |
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
for /d %%a in ("%APPDATA%\JetBrains\%%I*") do ( | |
rd /s /q "%%a/eval" | |
del /q "%%a\options\other.xml" | |
) | |
) | |
reg delete "HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains\phpstorm\edca4a4e" /f |
NewerOlder