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
| import java.util.Properties | |
| import java.nio.file.Files | |
| val localProperties = Properties() | |
| val localPropertiesFile = rootProject.file("local.properties").toPath() | |
| if (Files.exists(localPropertiesFile)) { | |
| Files.newBufferedReader(localPropertiesFile).use { reader -> | |
| localProperties.load(reader) | |
| } | |
| } |
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
| void main() { | |
| const String text = "constitutionnellement"; | |
| var result = text | |
| .split('') | |
| .asMap() | |
| .map((idx, e) => MapEntry(idx, idx.isEven ? e.toUpperCase() : e)) | |
| .values | |
| .join(''); | |
| print(result); |
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/workflows/dart.yml | |
| name: build | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] |
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
| export * from ‘./add-benineese’; | |
| export * from ‘./delete-benineese’; | |
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
| import * as functions from “firebase-functions”; | |
| export const onBenineesseAddedFunction = | |
| functions.database | |
| .ref(benineesesPathToWatch) | |
| .onCreate((snapshot: database.DataSnapshot, | |
| context: EventContext) => { | |
| return updateCount(pathToBenineesesCounter, true); | |
| }); |
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
| ~/development/tut/rge-42 firebase database:set /benineeses functions/seed/benineeses.json |
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
| { | |
| “0”: { | |
| “first-name”: “Human-one”, | |
| “last-name”: “GUED”, | |
| “gender”: “M” | |
| }, | |
| “1”: { | |
| “first-name”: “Human-two”, | |
| “last-name”: “GUED”, | |
| “gender”: “F” |
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
| Test |