Skip to content

Instantly share code, notes, and snippets.

View kaizakin's full-sized avatar
💭
Ball Hard ⏫

Kaiza Kin kaizakin

💭
Ball Hard ⏫
View GitHub Profile
class Solution {
public:
bool isvalid(vector<vector<char>>& board, int row, int col, char d){
for(int i = 0; i<9; ++i){
if(board[i][col] == d) return false;
if(board[row][i] == d) return false;
}
int start_row = row/3 * 3;
{
"workbench.editor.empty.hint": "hidden",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.linkedEditing": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"editor.cursorSmoothCaretAnimation": "on",
"editor.cursorBlinking": "smooth",
{
"workbench.editor.empty.hint": "hidden",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"github.copilot.enable": {
"*": false,
"plaintext": false,
"markdown": false,
"scminput": false
},
@kaizakin
kaizakin / VscodeVim.json
Created July 16, 2025 07:02
My VSCode vim config
"vim.useSystemClipboard": true,
"vim.visualModeKeyBindingsNonRecursive": [
{
"before": ["p"],
"commands": ["editor.action.clipboardPasteAction", "extension.vim_escape"]
}
],
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useCtrlKeys": true,
@kaizakin
kaizakin / Binary Exponentiation.cpp
Created July 14, 2025 16:25
Implementation of the Binary Exponentiation function
int power(int x, int m) {
int result = 1;
while (m > 0) {
if (m % 2 == 1) {
result *= x;
}
x *= x;
m /= 2;
}
return result;
@kaizakin
kaizakin / index.js
Created July 13, 2025 17:00
aws sdk s3 upload client
import express from 'express';
import { S3Client, PutObjectCommand } from '@aws-sdk/client-s3';
import bodyParser from 'body-parser';
import dotenv from 'dotenv';
import fetch from 'node-fetch';
dotenv.config();
const app = express();
app.use(bodyParser.urlencoded({ extended: false }));