Skip to content

Instantly share code, notes, and snippets.

@nagyist
nagyist / grpo_demo.py
Created November 28, 2025 08:30 — forked from willccbb/grpo_demo.py
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},
@nagyist
nagyist / auto-deploy.md
Created September 24, 2017 10:53 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@nagyist
nagyist / Opendetection_GSOC2017.md
Created September 18, 2017 19:48 — forked from gautamMalu/Opendetection_GSOC2017.md
Adding CNN based classifiers and detectors to Opendetection framework

Adding CNN based classifiers and detectors to Opendetection framework

OpenDetection (OD) is a standalone open source project for object detection and recognition in images and 3D point clouds. The support CNN based classifiers and object detection methods with Caffe backend were added as part of Google Summmer of Code 2017. All related code can be found at https://github.com/gautamMalu/opendetection.git

Major Contributions

  • Interfacing of Caffe in OpenDetection framework
  • Addition of CNN classifier class (ODClassifier.h)
  • Providing methods to convert data from folder/list into LMDB format
  • Addition of CNN training module (ODConvTrainer.h)

Introduction

This gist started with a collection of resources I was maintaining on stream data processing — also known as distributed logs, data pipelines, event sourcing, CQRS, and other names.

Over time the set of resources grew quite large and I received some interest in a more guided, opinionated path for learning about stream data processing. So I added the reading list.

Please send me feedback!

@nagyist
nagyist / codebird.js
Created April 24, 2016 20:38 — forked from viezel/app.js
Codebird for Appcelerator Titanium.Using the Twitter API 1.1
/**
* A Twitter library in JavaScript
* https://github.com/mynetx/codebird-js
*
* @package codebird
* @version 2.4.0-dev
* @author J.M. <me@mynetx.net>
* @copyright 2010-2013 J.M. <me@mynetx.net>
*
* This program is free software: you can redistribute it and/or modify
@nagyist
nagyist / gist:5de9d35317de570bb027
Created January 3, 2016 09:14 — forked from hamzasood/gist:02e6e87835a17f4e1b9e
Apple Pencil 3D Touch
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
// Hook with ObjC runtime functions
%config(generator=internal)
// New methods created below
@interface UIGestureRecognizer ()
+ (void)hs_beginForcingAllNewGestureRecognizersToAllowPencilInput;
+ (void)hs_endForcingAllNewGestureRecognizersToAllowPencilInput;
@nagyist
nagyist / compareTemplates.xsl
Last active December 9, 2015 20:20 — forked from kwboone/compareTemplates.xsl
Compares HL7 CDA templates developed using Trifolia
<?xml version="1.0" encoding="UTF-8"?>
<!--
This stylesheet compares Implementation Guides in Trifolia format (see trifolia.lantanagroup.com)
It takes one parameter: newVersion, which identifies the filename of the new version of the guide to compare.
Its input is the older version of the guide.
Its output is HTML. It produces a section in the HTML for each template in the old guide that is present in some version in the new guide. The table heading
compares the template metadata and highlights changed rows in the first column. It then compares the Narrative text constraints for the two templates, using