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
| """ | |
| Migrates SendGrid templates from one account to another. | |
| Requires a `.env` file with the following variables: | |
| - SOURCE_SENDGRID_API_KEY | |
| - DESTINATION_SENDGRID_API_KEY | |
| There is not much error handling here. This is not a place of honor. | |
| It turned out to run quite smoothly still. | |
| """ |
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
| NSURLConnection | NSURLSession | |
| ------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------- | |
| NSURLConnectionDelegate connectionShouldUseCredentialStorage: | | |
| ------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------- | |
| NSURLConnectionDelegate connection:willSendRequestForAuthenticationChallenge: | NSURLSessionDelegate URLSession:didReceiveChallenge:completionHandler: | |
| | N |
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 | |
| # based on https://github.com/tmurakam/cashflow/blob/0a01ac9e0350dfb04979986444244f8daf4cb5a8/android/convertStrings.rb | |
| # support comments and Converter such as "%@", "%d", "%0.1f"... | |
| # in your directory : ./main.rb Localizable.strings | |
| file = File.open("strings.xml", "w"); | |
| file.puts "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
| file.puts "<resources>" |
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 ruby | |
| # gist: https://gist.github.com/3217498 | |
| # This script can be called from an Xcode 'Run Script' build phase at the | |
| # beginning of the build process, like this: | |
| # | |
| # ${PROJECT_DIR}/LocalizeStringsFromAndroid.rb ${PROJECT_NAME} | |
| # | |
| # This script should be placed in the same directory as your .xcodeproj |