😶🌫️
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
| """ | |
| The most atomic way to train and inference a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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 { | |
| z, | |
| ZodArray, | |
| ZodBoolean, | |
| ZodDefault, | |
| ZodEffects, | |
| ZodEnum, | |
| ZodLiteral, | |
| ZodNumber, | |
| ZodObject, |
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 React, { | |
| Children, | |
| Fragment, | |
| ReactNode, | |
| useEffect, | |
| useMemo, | |
| useRef, | |
| useState, | |
| } from 'react'; |
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 requests | |
| import json | |
| import os | |
| from datetime import datetime | |
| # Configuration | |
| SOURCE_REPO = "logickoder/source" | |
| DEST_REPO = "logickoder/destination" | |
| GITHUB_TOKEN = "{GITHUB_TOKEN}" |
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 android.annotation.SuppressLint | |
| import android.app.Activity | |
| import android.app.ActivityManager | |
| import android.content.ActivityNotFoundException | |
| import android.content.ComponentName | |
| import android.content.Intent | |
| import android.content.Intent.FLAG_ACTIVITY_CLEAR_TOP | |
| import android.content.Intent.FLAG_ACTIVITY_SINGLE_TOP | |
| import android.content.pm.PackageManager | |
| import android.content.pm.ResolveInfo |
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
| name: Distribute Latest APK to Firebase | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| actions: read | |
| contents: read | |
| jobs: |
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 requests | |
| import re | |
| import pandas as pd | |
| def fetch_student_result(matric_no): | |
| url = "https://student-results-db.onrender.com/" | |
| response = requests.post(url, data={"matric_no": matric_no}) | |
| if response.status_code == 200: |
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 android.content.Context | |
| import android.util.Log | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import androidx.compose.ui.semantics.SemanticsNode | |
| import androidx.compose.ui.semantics.SemanticsOwner | |
| import androidx.compose.ui.semantics.SemanticsProperties | |
| import androidx.compose.ui.semantics.SemanticsPropertyKey | |
| import androidx.compose.ui.semantics.SemanticsPropertyReceiver | |
| import androidx.compose.ui.semantics.getOrNull |
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 'dart:async'; | |
| import 'dart:convert'; | |
| import 'package:collection/collection.dart'; | |
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter_riverpod/flutter_riverpod.dart'; | |
| import 'package:web_socket_channel/io.dart'; | |
| import 'package:web_socket_channel/web_socket_channel.dart'; | |
| import '../../../config/app_config.dart'; |
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
| package dev.logickoder.printer | |
| import android.app.Dialog | |
| import android.content.Context | |
| import android.graphics.Bitmap | |
| import android.graphics.Canvas | |
| import android.graphics.Rect | |
| import android.graphics.pdf.PdfDocument | |
| import android.view.View | |
| import androidx.compose.foundation.gestures.scrollBy |
NewerOlder