Skip to content

Instantly share code, notes, and snippets.

View iddogino's full-sized avatar
🥤
Converting Diet Coke to Code

Iddo Gino iddogino

🥤
Converting Diet Coke to Code
View GitHub Profile
@iddogino
iddogino / export_traces_to_csv.py
Last active January 20, 2026 22:10
LangSmith CSV Trace Export
#!/usr/bin/env python3
"""
LangSmith Trace Exporter
========================
Export LangSmith traces to CSV format with comprehensive metadata.
This script exports LLM call data from a LangSmith project to a CSV file with
21 columns including: messages (OpenAI format), tokens, costs, latency, and more.
swagger: '2.0'
info:
description: >-
Welcome to the DigitalOcean Spaces object storage API documentation.
Spaces provides a RESTful XML API for programatically managing the data you
store through the use of standard HTTP requests. The API is interoperable
with Amazon's AWS S3 API allowing you to interact with the service while
using the tools you already know.
@iddogino
iddogino / rsa.py
Created October 4, 2017 16:04
A simple RSA implementation in Python
'''
620031587
Net-Centric Computing Assignment
Part A - RSA Encryption
'''
import random
'''
@iddogino
iddogino / gist:1beb5dfad22edd51e24a1744c5f2e310
Created September 8, 2017 22:22 — forked from Miserlou/gist:11500b2345d3fe850c92
1000 Largest US Cities By Population
Largest 1000 Cities in America
2013 popuation data - Biggest US Cities By Population
rank,city,state,population,2000-2013 growth
1,New York,New York,8405837,4.8%
2,Los Angeles,California,3884307,4.8%
3,Chicago,Illinois,2718782,-6.1%
4,Houston,Texas,2195914,11.0%
5,Philadelphia,Pennsylvania,1553165,2.6%
@iddogino
iddogino / inject.js
Created March 28, 2017 00:11
Execute taget before origin. If target returns false - execute origins. Passes all arguments
function origin (c, num) {
for (let i = 0; i < num; i++) {
console.log(c);
}
}
function rapidWrap() {
console.log('rW');
//return false;
}
@iddogino
iddogino / pipe.js
Created December 21, 2016 02:42
Function composition in Java Script
// Declare a function, take functions as arguments
const pipe = function(...funcs){
// Return a new function which takes a value
return function(value){
// Reduce & iterate the initial argument spread (an array of functions)
return funcs.reduce(function(val, function){
// Take the function, call it, passing in the value and return the output