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
using UnityEditor; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
public class UIHelperGizmoDrawer | |
{ | |
#if UNITY_USE_UI_MARGINS_VIEWER | |
[DrawGizmo(GizmoType.Selected)] | |
static void DrawGizmoForMyScript(RectTransform rect, GizmoType gizmoType) |
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
#usage: search_text_pattern_android_libs android.permission.WRITE_EXTERNAL_STORAGE | |
function recursiveSearchInAARs { | |
for file in *; do | |
if [ -d "$file" ]; then | |
(cd -- "$file" && recursiveSearchInAARs) | |
fi | |
#foreach file with extension .aar in folder recusevly | |
if [[ $file == *.aar ]]; then | |
if ( unzip -c "$file" | grep --color -Ri --include="*.xml" "$pattern"); then |
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 subprocess | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
def git(command): | |
command_to_execute = str.split(command) | |
output = subprocess.check_output(["git"] + command_to_execute) | |
return output |