Skip to content

Instantly share code, notes, and snippets.

View kangaechigai's full-sized avatar
👨‍💻

Christopher Schultz kangaechigai

👨‍💻
View GitHub Profile
@Treeki
Treeki / TurnipPrices.cpp
Last active April 21, 2025 04:42
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@jderrett
jderrett / take_librato_snapshot.rb
Last active May 17, 2017 20:35
Ruby script to take a snapshot of a Librato chart
#!/usr/bin/env ruby
require 'faraday'
require 'json'
conn = Faraday.new(url: "https://metrics-api.librato.com/v1/") do |f|
f.basic_auth ENV['LIBRATO_USER'], ENV['LIBRATO_TOKEN']
# f.response :logger
f.adapter Faraday.default_adapter
end