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
| import numpy as np | |
| A = ( | |
| (0, 1, 1, 1), | |
| (0, 1, 1, 0), | |
| (1, 1, 0, 2), | |
| (1, 0, 0, 0) | |
| ) | |
| B = ( | |
| (0, 1, 0), |
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
| from django.utils.crypto import get_random_string | |
| def get_random_specified_length_secret_key(length: int) -> str: | |
| """ | |
| Return a random string with specified length usable as a SECRET_KEY setting value. | |
| """ | |
| chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)" | |
| return get_random_string(length, chars) |
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/perl | |
| $title = "Hello!"; | |
| $body = "Hello, World from Perl.¥n"; print << "EOT"; | |
| Content-Type: text/html | |
| <html> <head><title>$title</title></head> <body> | |
| $body | |
| </body> | |
| </html> |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDIyoAbI0HwBCAS5oVElQij4ZMSNpwA2qOyxl8eYg6k4Lxf6QLTJSBIy4cAut4dv6qBFlRmbNnuI2mEeqXtBuqwmm0HDmU+D89kuWnHfZGi+lM9uEuE8M1tVCr/jqcx5mk7dx4dlEGRYdPzVMP0VjjdvVkpdRWVlF4UPKP7pRhtuCz9ZYWjwA1QIXnXT1fgjybqTSsMewiOgsBZgnfR64UUXjRM1wLbY2XxzPKmdi78zgfQY2WC6KDmjjK6x65jSgOqcnIxwElUpdtVIVBhswwu5XJFlUXdC11FT58nHpmJL7j+8lFPx4W3Iv6VpFjYVIdx9YgFDoOywTPoFDw4oopwirtjVJvRBsMoNX8nDn4lxRxlxGyvThjd0gqPqxVVnzGM0IxMW3oqO6xrOr05w97EzNLuLEhJ6duQWpAf7qmcNaNClKC8xCrQ1fxBXeFxlcu2iNHzCOkYL9iscLhbwlTTHwpCHIHFec2amVXcYPcAdoEzfqKJDiFNxc+31Aaz9GY9xPwNewU9O2rr4GhYpNNmVSN7CMT9Kbe0bpc0K08swy/j+Fdcnh2sIoRPedV5EahttUophZXu0zCaLxqGb7uRPJYzN3cLx7Ql1Vhhi6DpMqPjv5FkBSWPzMmojLNBMo+fgzOpM1Vh5HexAxCWE+TWlXUTplTRVB7hVSqJBzFiWw== [email protected] |
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
| gender | race/ethnicity | parental level of education | lunch | test preparation course | math score | reading score | writing score | |
|---|---|---|---|---|---|---|---|---|
| male | group C | associate's degree | free/reduced | completed | 64 | 60 | 57 | |
| male | group C | some college | free/reduced | none | 77 | 78 | 73 | |
| female | group D | master's degree | free/reduced | none | 77 | 89 | 91 | |
| female | group B | some college | standard | none | 85 | 88 | 89 | |
| female | group C | associate's degree | standard | none | 64 | 66 | 66 | |
| male | group B | bachelor's degree | free/reduced | none | 35 | 38 | 29 | |
| male | group B | master's degree | free/reduced | none | 66 | 69 | 59 | |
| female | group D | master's degree | standard | none | 64 | 85 | 79 | |
| female | group B | high school | standard | none | 47 | 55 | 60 |
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
| from sqlalchemy import Column, String | |
| from models.types.uuid import UUIDColumn | |
| from models.mixin.timestamp import TimeStampMixin | |
| from db import Base | |
| class IDPair(Base, TimeStampMixin): | |
| __tablename__: str = "documents" |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCyvwVApMwPK6DXN7x6nBFe907HA2HkIjMmcuGdUWg4DCW3lmfLXl5MKtPLEGeSfyJ8CeE1c4EVDGWIX9q/pYZA74VWycZ1IY+Sy1E8l8z82tczzetfxDbBahoPqLfADHyI1or70Vg3Eu/xTT/TmU0R4gRL/uw1oCzpcF5TwC6Rrn1F/zklz2GMJs1F9S8VL5xepufZz5V04PXanXu703MiJQjK1i+aFN5WEE4jN5kdxO9n5ZEadFcGGjEI/QLSMtHGCl3cza2keXpy+0ujxVYvovZiE3RWimAwnkBoNBJ89o4LWTU6ICnqdiRXz9rnKC/5bwkNVLv21Le26F+RUvJZrURQ18D1PI2+ApEF33Qps7aMsHtuDRaETAigXTG+HZX7U8OrfwddTKJA11yNH3SZjUJpsTNX2Tzr7nK3U70yaO8JUUNehbfDtBS2zTQ9jPmSJQ2AGOyRLysqgSOicBWTOLvkZNJFg/QQq0FnixAOi9raF5dtciQkR76pyoAQXpSRP2zLlVZV8RvZF0vTUDVUz44dn5wfl5+Z9NazH7Qs0wi1/+MxbpIIVKfJkKu3fBSoDQAFxNOnV0m0O5wCMxbEi3ynaCiTQyyjoFXbuEBQ6GqBHQ4q9yLmffdwAC/6AgiAhLxHdZQFyR/X50KO4A9dyI90X0S5iF8xf72OBb1Fkw== Colk-tech |
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
| #include <stdio.h> | |
| #include <math.h> | |
| #define MAX 20 | |
| int main(void) { | |
| int i; | |
| double x0, x1, fx0, dfx0, eps = 0.0001; | |
| printf("x0 = "); |
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
| #include <stdio.h> | |
| #include <math.h> | |
| double f(double x) { | |
| double result = (x * x * x) - (3 * x) - 1; | |
| return result; | |
| } | |
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
| import pygame | |
| def main() -> None: | |
| pygame.init() | |
| print("Checking number of joysticks...") | |
| print(f"{pygame.joystick.get_count()} joystick(s) found.") | |
| joysticks = [pygame.joystick.Joystick(x) for x in range(pygame.joystick.get_count())] |