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
| const response = pm.response.json(); | |
| pm.test('status should be equal to success', function() { | |
| pm.expect(response.status).to.equal('success'); | |
| }); | |
| if (response.status === 'pending') { | |
| postman.setNextRequest('mock delay'); | |
| } else if (response.status === 'success') { | |
| postman.setNextRequest(null); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
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 twilio import rest | |
| account_sid = "INSERT_HERE" | |
| auth_token = "INSERT_HERE" | |
| client = rest.TwilioRestClient(account_sid, auth_token) | |
| message = client.sms.messages.create( | |
| body="Whaatt up", | |
| to="+1303", | |
| from_="+1720" |
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 | |
| MSG_FILE=$1 | |
| TYPE_STR=$2 | |
| MSG_STR=$(cat ${MSG_FILE}) | |
| BRANCH_NAME=$(git branch | grep '*' | sed 's/* //') | |
| TICKET_NUMBER=$(git symbolic-ref --short HEAD) | |
| TICKET_NUMBER="${TICKET_NUMBER##*/}" |
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 | |
| # path to .zshrc | |
| ZSHRC_FILE="~/.zshrc" | |
| BACK_UP_EXT="{,.bak}" | |
| eval \cp ${ZSHRC_FILE}${BACK_UP_EXT} |
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 | |
| DEFAULT_DIR="cd ~/Desktop/" | |
| SCREENSHOT_ARCHIVE_DIR="screenshot_archive" | |
| eval ${DEFAULT_DIR} | |
| if [ ! -d "$SCREENSHOT_ARCHIVE_DIR" ]; | |
| then | |
| mkdir "$SCREENSHOT_ARCHIVE_DIR" |
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 | |
| function static_opendiff { | |
| undgrn='\e[4;32m' | |
| txtred='\e[0;31m' | |
| Color_Off='\e[0m' | |
| static_repo=`pwd` | |
| string_replace="backups/static-repo-copy" |