Skip to content

Instantly share code, notes, and snippets.

View hathibelagal-dev's full-sized avatar
🎯
Focusing

Ashraff Hathibelagal hathibelagal-dev

🎯
Focusing
View GitHub Profile
@hathibelagal-dev
hathibelagal-dev / diatest.ipynb
Last active April 23, 2025 23:25
diatest.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hathibelagal-dev
hathibelagal-dev / sesamecsm-1b.ipynb
Created March 14, 2025 02:15
SesameCSM-1B.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hathibelagal-dev
hathibelagal-dev / stormy.glsl
Created March 10, 2025 10:44
Just a beautiful, aesthetic shader try to portray a turbulent ocean
vec3 hsv(float h, float s, float v) {
vec3 c = vec3(h * 6.0, s, v);
vec3 step = vec3(5.0, 3.0, 1.0);
vec3 rgb = clamp(abs(mod(c.x + step, 6.0) - 3.0) - 1.0, 0.0, 1.0);
rgb = rgb * rgb * (3.0 - 2.0 * rgb);
return v * mix(vec3(1.0), rgb, s);
}
void mainImage(out vec4 fragColor, in vec2 FC)
{
@hathibelagal-dev
hathibelagal-dev / sentiments.py
Created December 18, 2023 02:12
Sentiment Analysis Using Google's Text Embeddings.
import vertexai.language_models as v
import jax.numpy as jnp
import jax.numpy.linalg as jl
model = v.TextEmbeddingModel.from_pretrained(
"textembedding-gecko"
)
sentiment_checks = [
"This is very good. I loved it! Thanks",
@hathibelagal-dev
hathibelagal-dev / main.dart
Created April 18, 2022 00:43
Clifford attractor in a Flutter app
import 'package:flutter/material.dart';
import 'dart:math' as Math;
import 'dart:async';
import 'dart:ui';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {