Skip to content

Instantly share code, notes, and snippets.

View TokisakiKurumi2001's full-sized avatar
🎯
Focusing

Le Minh Khoi TokisakiKurumi2001

🎯
Focusing
View GitHub Profile
import time
import torch
import torch.nn as nn
from torch.utils.data import DataLoader, Dataset
from transformers import AutoModelForCausalLM
from torch.optim import AdamW
# --- Configuration for Qwen3-1.7B (Proxy) ---
# Based on the specs gathered: 1.7B params, 28 layers, 16 heads, 2048 hidden size.
@TokisakiKurumi2001
TokisakiKurumi2001 / ex2.cpp
Created December 28, 2020 15:15
DFS followed Tam's style
#include <stack>
class Graph
{
private:
int V;
Adjacency *adj;
public:
Graph(int V)
{
#include <iostream>
using namespace std;
template <class T>
class AQueue {
private:
int front;
int rear;
int maxSize;
int size;
#include <iostream>
#include <string.h>
#include <sstream>
using namespace std;
template <class T>
class AStack {
private:
T * arr;
int size;
@TokisakiKurumi2001
TokisakiKurumi2001 / header_with_searchbox.dart
Last active September 19, 2020 13:19
Pinned search bar.
import 'package:flutter/material.dart';
class HeaderWithSearchBox extends StatelessWidget {
const HeaderWithSearchBox({
Key key,
@required this.size,
}) : super(key: key);
final Size size;
@override
Widget build(BuildContext context) {
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int number, res;
String c;
if (Serial.available())
#define LEFT_FORWARD 11
#define LEFT_BACKWARD 8
#define LEFT_SPEED 9
#define RIGHT_FORWARD 13
#define RIGHT_BACKWARD 12
#define RIGHT_SPEED 10
void setup() {
pinMode(LEFT_FORWARD, OUTPUT);
pinMode(LEFT_BACKWARD, OUTPUT);
#include <iostream>
#include <string.h>
#include <iomanip>
using namespace std;
const int MAX = 100;
struct student
{
#include <iostream>
#include <fstream>
using namespace std;
bool checkLuhn(const string& cardNo)
{
int nDigits = cardNo.length();
int nSum = 0, isSecond = false;