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
// In order to make this trigger work you need to add it in "Tiggers" menu at left | |
function onChange(e) { | |
tryToBuildValidationForNextCell(); | |
return; | |
} | |
/** | |
* Dinamycally build data validation on next cell based on possible values extracted from a column with the same name that current cell value stored in current cell col name sheet. | |
* | |
* You have a column named/first cell "Process" |
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
# Just place it in your home directory and Xcode will load it alwys | |
# If you want to reload it in middle of a ebugging session just execute `command source ~/.lldbinit` | |
# json anyObjectContainingJson | |
# https://soffes.blog/debugging-json-data-in-lldb | |
command regex json 's/(.+)/expr let input = %1; print(String(data: try! JSONSerialization.data(withJSONObject: (input is String ? try! JSONSerialization.jsonObject(with: (input as! String).data(using: .utf8)!, options: []) : (input is Data ? (try! JSONSerialization.jsonObject(with: input as! Data, options: [])) : input as! Any)), options: [.prettyPrinted]), encoding: .utf8)!)/' |
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
property primaryWiFiDevice : "en0" | |
property wfhSSID : "" | |
property remoteSSID : "" | |
on getIfWorkingHours() | |
set todaySeconds to (time of (current date)) | |
return todaySeconds > 21600 and todaySeconds < 72000 | |
end getIfWorkingHours |
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
on isRunning(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end isRunning | |
on quitExplicitApps() | |
repeat with thisApp in {"Mail", "Safari", "Spotify", "Skype", "Terminal", "Toggl Track", "Xcode"} | |
set thisApp to thisApp as text | |
if isRunning(thisApp) then |
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
#!/bin/bash | |
bundleId="com." | |
simulatorUUID=$(xcrun simctl list | grep Booted | awk -F"[()]" '{print $2}') | |
xcrun simctl terminate $simulatorUUID $bundleId | |
xcrun simctl uninstall $simulatorUUID $bundleId |
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/osascript | |
set answer to the button returned of (display dialog "Select audio source" buttons {"🔊", "🎧"} default button 2 with icon caution) | |
if answer = "🔊" then | |
selectRothMyers() | |
else if answer = "🎧" then | |
selectHeadphones() | |
end if | |
quit application "System Preferences" |
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
// | |
// LineHeightLabel.swift | |
// LineHeightLabel | |
// | |
// Created by Shinichiro Oba on 20/06/2018. | |
// Copyright © 2018 bricklife.com. All rights reserved. | |
// | |
import UIKit |
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
#!/bin/bash | |
# chmod +x projectXcode10.command | |
open -a /Applications/Xcode10.app "/Users/.../project.xcworkspace" --args -ApplePersistenceIgnoreState YES & | |
osascript -e 'quit app "Terminal"' & |
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/ruby | |
#encoding: utf-8 | |
#Origin: https://github.com/PaulTaykalo/swift-scripts | |
Encoding.default_external = Encoding::UTF_8 | |
Encoding.default_internal = Encoding::UTF_8 | |
class Item | |
def initialize(file, line, at) | |
@file = file | |
@line = line |
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
tell application "System Events" | |
tell application "Slack" to activate | |
key code 40 using {command down} | |
delay 1 | |
-- keystroke "the_style_outlets" | |
keystroke "ingenieria" | |
delay 0.5 | |
key code 36 | |
delay 0.3 | |
keystroke "Sé que os la trae al pairo, pero a mi me emociona decio esto mediante un ApplScript" |
NewerOlder