Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

SametSahin10

🏠
Working from home
View GitHub Profile
@SametSahin10
SametSahin10 / composer_instrument_classification.ipynb
Last active May 6, 2023 23:26
composer_classification.ipynb
View composer_instrument_classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SametSahin10
SametSahin10 / composer_instrument_classification.ipynb
Created May 6, 2023 18:44
composer_instrument_classification.ipynb
View composer_instrument_classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SametSahin10
SametSahin10 / composer_instrument_classification.ipynb
Last active May 6, 2023 16:59
composer_instrument_classification.ipynb
View composer_instrument_classification.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SametSahin10
SametSahin10 / annotate_image.ts
Created March 21, 2022 10:52
A function that annotates an image using Google's Cloud Vision API
View annotate_image.ts
/**
* 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
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.
View create_numbered_directories.sh
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
void main() {
var name = 'ahmet';
print(name);
name = 12;
print(name);
}
View main.dart
import 'dart:math';
void main() {
for (int i = 0; i < 5; i++) {
print(e);
}
}
View exercise02.py
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
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])