View annotate_image.ts
This file contains 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
/** | |
* Annotates an image. | |
* | |
* @param {AnnotateImageParams} params The params. | |
*/ | |
export async function annotateImage(params: AnnotateImageParams) { | |
const imageAnnotatorClient = new vision.ImageAnnotatorClient(); | |
const labelDetectionFeature = { | |
type: "LABEL_DETECTION", |
View solution_to_overflow_problem.dart
This file contains 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 MyHomePage extends StatelessWidget { | |
final personNextToMe = | |
"That reminds me about the time when I was ten and our neighbour, her name was Mrs. Mable, and she said..."; | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Center( | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.center, |
View create_numbered_directories.sh
This file contains 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
create_numbered_directories() { | |
nameOfDirectories=$1 | |
indexOfLastFile=$2 | |
# Variable to hold the number of errors that may possibly occur | |
# while creating directories | |
numOfErrors=0 | |
for i in $(seq 1 $indexOfLastFile) | |
do | |
echo creating directory: $nameOfDirectories-$i | |
mkdir "$nameOfDirectories-$i" |
View main.dart
This file contains 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() { | |
var name = 'ahmet'; | |
print(name); | |
name = 12; | |
print(name); | |
} |
View main.dart
This file contains 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 'dart:math'; | |
void main() { | |
for (int i = 0; i < 5; i++) { | |
print(e); | |
} | |
} |
View exercise02.py
This file contains 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
name = input("What's your name?\n") | |
age = int(input("How old are you?\n")) | |
message = "You will turn 100 years old in {}".format(2019 + (100 - age)) | |
print(message) |
View solution.py
This file contains 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
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | |
for i in range(len(a)): | |
if a[i] < 5: | |
print(a[i]) |
View Database.cs
This file contains 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
private readonly static string DBNAME = "Bonarego.db"; | |
public DataBase() | |
{ | |
CreateDataBase(); | |
} | |
public static string documentsFolder() | |
{ |
View JavaApplication105.java
This file contains 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
public class JavaApplication105 { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
JFrame frame = new JFrame("Example"); | |
frame.setVisible(true); | |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
View solution1.py
This file contains 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 = 174 | |
points = 174 # use this input when submitting your answer | |
# set prize to default value of None | |
prize = None | |
# use the value of points to assign prize to the correct prize name | |
if points <= 50: | |
prize = "wooden rabbit" |
NewerOlder