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
| # RouterOS script to forward all incoming sms messages to Slack | |
| # Run this script as a scheduled task e.g. every 10 minutes | |
| # Author: Dominik Hadl | |
| # Date: 2024-12-01 | |
| # Version: 1.0 | |
| # Platform: RouterOS 7.15.3 (Mikrotik Chateau LTE6) | |
| # setting variables | |
| :local slackHookUrl "REPLACE_YOUR_SLACK_HOOK_URL"; | |
| :local cHeader "Content-Type: application/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
| TODO_PROJECT_NAME="YourProject" | |
| if [ $CONFIGURATION = "Release" ]; then | |
| TAGS="FIXME" | |
| find "${SRCROOT}/${TODO_PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ error: \$1/" | |
| TAGS="TODO" | |
| find "${SRCROOT}/${TODO_PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
| else | |
| TAGS="FIXME|TODO" | |
| find "${SRCROOT}/${TODO_PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
| fi |
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 | |
| require "fileutils" | |
| require 'digest' | |
| require 'optparse' | |
| require 'xcodeproject' | |
| # Constants | |
| COMPILER_VER = /(?<=\()(.*)(?= )/.match(`xcrun swift -version`)[0] | |
| CARTHAGE_RESOLVED_FILE="Cartfile.resolved" |
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
| retakeBtn.setOnClickListener(View.OnClickListener() { | |
| @Override | |
| public void onClick(View view) { | |
| retakeBtn.setVisibility(View.GONE); | |
| } | |
| }); |
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
| points = int(input("Enter desired points: ")) | |
| if points > 1000 or points < 0: | |
| if points > 1000: | |
| print("Does fairplay mean something to you at all?") | |
| else: | |
| print("What was that supposed to mean? You want minus points or what?") | |
| else if points == 300: | |
| print("Here is " + str(300) + " points.") | |
| else: |
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
| Program NodesQuiz_Question8; | |
| Var | |
| Points : Integer; | |
| YourName : String; | |
| Begin {NodesQuiz_Question7} | |
| Writeln('Welcome to another test question!'); | |
| Writeln('What is your name?'); | |
| Readln(YourName); | |
| Write('Hey ', YourName); |
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
| class Quiz { | |
| private static int pointsValue = 500; | |
| void PrintPointsValue() { | |
| Console.WriteLine("This quiz question is worth " + pointsValue); | |
| } | |
| } | |
| Quiz q = new Quiz(); | |
| q.PrintPointsValue(); |
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
| 10 PRINT "WELCOME TO NODES QUIZ" | |
| 20 PRINT "THIS IS A PROGRAM IN BASIC" | |
| 30 INPUT "CAN YOU FIGURE OUT WHAT IS WRONG HERE?"; A$ | |
| 40 IF LEN(A$) = 0 THEN GOTO 30 | |
| 50 A$ = LEFT$(A$, 1) | |
| 60 IF A$ = "Y" || A$ = "y" THEN GOTO 80 | |
| 70 GOTO 30 | |
| 80 PRINT "NICE CATCH!" | |
| 90 END |
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 | |
| def say(text) | |
| "Nodes " + text | |
| end | |
| put say 'Tech Quiz' |
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
| program BinaryConvertor; | |
| { ----------------------------------------------------------- } | |
| uses | |
| Sysutils; | |
| { ----------------------------------------------------------- } | |
| { DIVIDE BY TWO } |
NewerOlder