Skip to content

Instantly share code, notes, and snippets.

View sigridjineth's full-sized avatar
🎯
Lynne Frederick (1954-1994)

Sigrid Jin (ΰΈ‡'Μ€-'́)ΰΈ‡ oO sigridjineth

🎯
Lynne Frederick (1954-1994)
View GitHub Profile
@sigridjineth
sigridjineth / toss-frontend-rules.mdc
Created May 9, 2025 17:10 — forked from toy-crane/toss-frontend-rules.mdc
ν† μŠ€ ν”„λ‘ νŠΈμ—”λ“œ κ°€μ΄λ“œλΌμΈ 기반으둜 λ§Œλ“  Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
import pytorch_lightning as pl
import numpy as np
import torch
from torch.nn import MSELoss
from torch.optim import Adam
from torch.utils.data import DataLoader, Dataset
import torch.nn as nn
class SimpleDataset(Dataset):
@sigridjineth
sigridjineth / finetune_llama_v2.py
Created December 26, 2023 06:49 — forked from younesbelkada/finetune_llama_v2.py
Fine tune Llama v2 models on Guanaco Dataset
# coding=utf-8
# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# 1) Install dependencies: pip install cohere datasets elasticsearch==8.6.2
# 2) Start a local Elasticsearch server: docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:8.6.2
# 3) Get your Cohere API key and past it below
from elasticsearch import Elasticsearch, helpers
import cohere
from datasets import load_dataset
# Get your cohere API key on: www.cohere.com
@sigridjineth
sigridjineth / aws-sqs.policy
Created July 11, 2023 07:21 — forked from marcelog/aws-sqs.policy
SQS Policy to allow an S3 bucket to publish messages
{
"Version": "2012-10-17",
"Id": "arn:aws:sqs:YOUR-AWS-REGION:YOUR-AWS-ACCOUNT-ID:YOUR-QUEUE-NAME/SQSDefaultPolicy",
"Statement": [
{
"Sid": "example-statement-ID",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
package cmd
import (
"context"
"database/sql"
"flag"
"fmt"
// mysql driver
_ "github.com/go-sql-driver/mysql"
@sigridjineth
sigridjineth / mint.js
Created June 27, 2022 08:24 — forked from zurgl/mint.js
solana js examples
const web3 = require('@solana/web3.js');
const splToken = require('@solana/spl-token');
(async () => {
//create connection to devnet
const connection = new web3.Connection(web3.clusterApiUrl("devnet"));
//generate keypair and airdrop 1000000000 Lamports (1 SOL)
const myKeypair = web3.Keypair.generate();
// calling token program to burn some tokens
invoke(
&spl_token::instruction::burn(
&spl_token::id(),
user_token_account_ai.key,
vending_machine_mint.key,
&user.key,
&[],
price,
)?,