Skip to content

Instantly share code, notes, and snippets.

View SametSahin10's full-sized avatar
🏠
Working from home

SametSahin10

🏠
Working from home
View GitHub Profile
@SametSahin10
SametSahin10 / annotate_image.ts
Created March 21, 2022 10:52
A function that annotates an image using Google's Cloud Vision API
/**
* Annotates an image.
*
* @param {AnnotateImageParams} params The params.
*/
export async function annotateImage(params: AnnotateImageParams) {
const imageAnnotatorClient = new vision.ImageAnnotatorClient();
const labelDetectionFeature = {
type: "LABEL_DETECTION",
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,
@SametSahin10
SametSahin10 / create_numbered_directories.sh
Created May 26, 2020 14:52
Bash script to create numbered directories from a single command.
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"
void main() {
var name = 'ahmet';
print(name);
name = 12;
print(name);
}
import 'dart:math';
void main() {
for (int i = 0; i < 5; i++) {
print(e);
}
}
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)
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])
private readonly static string DBNAME = "Bonarego.db";
public DataBase()
{
CreateDataBase();
}
public static string documentsFolder()
{
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);
@SametSahin10
SametSahin10 / solution1.py
Last active December 2, 2018 22:17
Original Solution
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"