Introduction - Learning Rust With Entirely Too Many Linked Lists
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
LOAD DATA LOCAL INFILE 'C:/Users/Gladson/Downloads/users.csv' | |
INTO TABLE test_db.users_tb | |
FIELDS TERMINATED BY '|' | |
OPTIONALLY ENCLOSED BY '' | |
LINES TERMINATED BY '\n' | |
IGNORE 1 LINES | |
(@name,@email,@password,@age,@gender,@created_at,@updated_at,@deleted_at) | |
SET name = @name, email = @email, password = @password, age = @age, | |
gender = @gender, created_at = @created_at, updated_at = @updated_at, | |
deleted_at = @deleted_at; |
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
COND_A = NO | |
COND_B = YES | |
all: | |
# AND condition | |
ifeq ($(COND_A) $(COND_B), YES YES) | |
@echo "A and B is true" | |
else | |
@echo "A and B is false" | |
endif |
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
{ | |
"mcu": [ | |
{ | |
"adult": false, | |
"backdrop_path": "/yFuKvT4Vm3sKHdFY4eG6I4ldAnn.jpg", | |
"genre_ids": [ | |
28, | |
12, | |
878 | |
], |
podman machine ssh
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
version: '3.7' | |
services: | |
backend_npm: | |
container_name: backend_npm | |
image: jc21/nginx-proxy-manager:latest | |
restart: always | |
ports: | |
# Public HTTP Port: | |
- 6000:80 | |
# Public HTTPS Port: |
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 'package:flutter/material.dart'; | |
class SCheckbox extends StatefulWidget { | |
final ValueChanged<bool> onChanged; | |
final bool isChecked; | |
final String title; | |
final double size; | |
final double iconSize; | |
final Color selectedColor; | |
final Color selectedIconColor; |
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
uploadFile() async { | |
var postUri = Uri.parse("<APIUrl>"); | |
var request = new http.MultipartRequest("POST", postUri); | |
request.fields['user'] = 'blah'; | |
request.files.add(new http.MultipartFile.fromBytes('file', await File.fromUri("<path/to/file>").readAsBytes(), contentType: new MediaType('image', 'jpeg'))) | |
request.send().then((response) { | |
if (response.statusCode == 200) print("Uploaded!"); | |
}); | |
} |
NewerOlder