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 | |
| echo "Updating Release State (.releaseState.json) with version $BACKEND_VERSION, with message $RELEASE_MESSAGE" | |
| echo "$(sed '$d' .releaseState.json), | |
| \"$BACKEND_VERSION\":{ | |
| \"message\":\"$RELEASE_MESSAGE\", | |
| \"sandbox\":true, | |
| \"production\":false | |
| } |
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
| GITHUB_URL="https://api.github.com/repos/ChangEdApps/changed-javascript/pulls/$PULL_REQUEST" | |
| # echo $GITHUB_URL | |
| PULL_REQUEST_MERGED=$(curl -H "Authorization: Bearer $autoCommitterPAT" $GITHUB_URL 2> /dev/null | grep -oE '"merged": (true|false)' | cut -d " " -f 2 ) | |
| GITHUB_URL="https://api.github.com/repos/ChangEdApps/changed-javascript/commits/30af705280793c3acb94f70bc02c6fd0163d357b" | |
| # echo $GITHUB_URL | |
| PULL_REQUEST_MERGED=$(curl -H "Authorization: Bearer $autoCommitterPAT" $GITHUB_URL) |
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
| Circle() | |
| .fill(.white) | |
| .frame(height: shelfHeight / 2, alignment: .center) | |
| .opacity(isAnimating ? 1.0 : 0.0) | |
| .animation(Animation.linear(duration: 1).repeatForever(), value: isAnimating) | |
| .onAppear{ | |
| isAnimating.toggle() | |
| } | |
| .allowsHitTesting(false) | |
| // .offset(CGSize(width: -metrics.size.width * 0.40, height: -shelfHeight * 9.5)) // Back |
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 | |
| # build script for savingsCalculator | |
| adminDir=web-apps/changed-admin-app/functions/buildFunctions/ | |
| webDir=web-apps/changed-web-app/functions/buildFunctions/ | |
| adminFile=web-apps/changed-admin-app/functions/buildFunctions/savingsCalculator.js | |
| webFile=web-apps/changed-web-app/functions/buildFunctions/savingsCalculator.js |
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
| // This is to assert the odds "5, Pass Line, 50" | |
| func assertLabelContainsBets(labelToTest: String, baseLabel:String, checqueLabel:String, oddsLabel:String) -> Bool { | |
| let userBets = [baseLabel, checqueLabel, oddsLabel] | |
| let labelToTestElements = labelToTest.components(separatedBy: ", ") | |
| return userBets.sorted() == labelToTestElements.sorted() | |
| } |
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
| func assertStringEqualsEitherOrder(labelToTest: String, baseLabel:String, checkLabel:String) -> Bool { | |
| if labelToTest == "\(baseLabel), \(checkLabel)" { return true } | |
| if labelToTest == "\(checkLabel), \(baseLabel)" { return true } | |
| return false | |
| } | |
| // example usage | |
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
| lsof -t -i tcp:8085 | xargs kill |
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
| { | |
| "key": "numpad7", | |
| "command": "git.sync", | |
| "when": "editorTextFocus" | |
| }, | |
| { | |
| "key": "numpad_add", | |
| "command": "git.stage", |
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
| struct HopBetsView: View { | |
| @ObservedObject var localGameManager: GameManagerPro | |
| @State var namespaceShowoff = false | |
| @Namespace var showoff | |
| var body: some View { | |
| GeometryReader { metrics in | |
| ... | |
| HStack(alignment: .center, spacing: .zero, content: { |
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
| var assert = require('assert'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| let adminBuildFile = fs.readFileSync(path.join(__dirname, "../../web-apps/changed-admin-app/functions/buildFunctions/savingsCalculator.js")).toString(); | |
| let webBuildFile = fs.readFileSync(path.join(__dirname, "../../web-apps/changed-web-app/functions/buildFunctions/savingsCalculator.js")).toString(); | |
| let srcFile = fs.readFileSync(path.join(__dirname, "../utility/src/savingsCalculator.js")).toString(); | |
| describe("Testing whole file of savingsCalculator to ensure src matches buildFunctions", function() { | |
| var prependMsg = "\n\n\n// WARNING!\n// READ ONLY BUILD FILE! DO NOT EDIT; SOURCE FILE LOCATED AT backend/utility/src/savingsCalculator.js\n\n\n\n"; |