Skip to content

Instantly share code, notes, and snippets.

View eliasayele's full-sized avatar
🎯
Focusing

Elias Ayele eliasayele

🎯
Focusing
View GitHub Profile
@willccbb
willccbb / grpo_demo.py
Last active August 21, 2025 00:06
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active August 16, 2025 02:17
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@jtmuller5
jtmuller5 / date_utils.dart
Created October 25, 2024 14:28
DateTime extension for formatting dates seven ways to Sunday ("EEEE") using the intl library
import 'package:intl/intl.dart';
// https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html
extension DateTimeFormattingExtensions on DateTime {
// Existing methods
String get day => DateFormat('d').format(this); // e.g., "6"
String get abbrWeekday => DateFormat('E').format(this); // e.g., "Thu"
String get weekday => DateFormat('EEEE').format(this); // e.g., "Thursday"
String get abbrStandaloneMonth => DateFormat('LLL').format(this); // e.g., "Jun"
String get standaloneMonth => DateFormat('LLLL').format(this); // e.g., "June"
@LeeKahSeng
LeeKahSeng / KeychainHelper.swift
Last active April 21, 2025 23:25
Swift simple keychain helper class for iOS and macOs
// MIT License
//
// Copyright (c) 2023 Lee Kah Seng
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
<?
# MIT license, do whatever you want with it
#
# This is my invoice.php page which I use to make invoices that customers want,
# with their address on it and which are easily printable. I love Stripe but
# their invoices and receipts were too wild for my customers on Remote OK
#
require_once(__DIR__.'/../vendor/autoload.php');
@romiroma
romiroma / Tappable-SwiftUI.swift
Created October 31, 2020 06:06
Tappable Text in SwiftUI
import Foundation
import SwiftUI
struct TappableColoredText: View {
enum Component {
case text(String)
case tappable(String, () -> Void)
}
let components: [Component]