Skip to content

Instantly share code, notes, and snippets.

View nicosuave's full-sized avatar

Nico Ritschel nicosuave

View GitHub Profile
@nicosuave
nicosuave / zoomer_boomer_translator.js
Last active November 25, 2023 08:17
Zoomer Boomer Tweet Translate
// ==UserScript==
// @name Zoomer/Boomer Speak Converter
// @version 0.1
// @description Translate tweets to zoomer or boomer speak with enhanced UI, response handling, and retry mechanism
// @author Nico Ritschel
// @match *://twitter.com/*
// @grant GM_xmlhttpRequest
// ==/UserScript==
(function() {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nicosuave
nicosuave / results.MD
Created July 26, 2023 03:29
DuckDB Benchmarks RockPi 5 Plus vs MacBook Pro M2 Max

First up, the RockPi 5 Plus

Append100KIntegersINSERT	1	17.186225
Append100KIntegersINSERT	2	17.100570
Append100KIntegersINSERT	3	17.116827
Append100KIntegersINSERT	4	17.086158
Append100KIntegersINSERT	5	16.995595
Append100KIntegersINSERTDisk	1	16.979044
Append100KIntegersINSERTDisk	2	16.988265

Keybase proof

I hereby claim:

  • I am nicosuave on github.
  • I am nicosuave (https://keybase.io/nicosuave) on keybase.
  • I have a public key ASA5dKEUzFsSLC8ZLRTPqgn83M0P6ohOlfX5x_W1HSs_Kgo

To claim this, I am signing this object:

@nicosuave
nicosuave / Schema2CaseClass.scala
Created October 5, 2017 04:07 — forked from yoyama/Schema2CaseClass.scala
Generate case class from spark DataFrame/Dataset schema.
/**
* Generate Case class from DataFrame.schema
*
* val df:DataFrame = ...
*
* val s2cc = new Schema2CaseClass
* import s2cc.implicit._
*
* println(s2cc.schemaToCaseClass(df.schema, "MyClass"))
*
@nicosuave
nicosuave / 0_reuse_code.js
Created May 19, 2016 18:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nicosuave
nicosuave / pgp_public_key
Last active December 18, 2015 12:59
PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v.1.20130228
Comment: http://openpgpjs.org
xsFNBFG79Z8BD/9w+qHDt6CUzb/qnELez+miPac658+nq9KSJgbUHTnsGfkE
54ZL9yPikupEtUvIqkEKJFQjPLuz7ODXIomMuQbUjeDFWiKBnI5a4VGFZ8Ps
fbLO9FJfv407wVC4Xx8wBjzlQVO7nMoX7BNfSsNCXICeD8PWbgJzZbgWpm7t
z6XWMtYQrFHtk4C8BiY/M4cE6jE+URFADLXLcJQiQ0Rsgy+Y9fkeKrsRogWg
rNTlfAZxN+mBDba/c89QZQpwZxGHjQy/MYE25vZr1ErE6Dm94f3gCn+9fZNe
lSr3Q6v3CQGidaqKVjcUYFUzivViZXnpF0aAqcaPdNzVNa8Qae6X1Ns4F/yt
@nicosuave
nicosuave / rules.rb
Created January 31, 2013 22:43
Maid rules
Maid.rules do
## Functions ##
# Dupe detection thanks to bobthecow
def files(paths)
dir(paths).select { |f| File.file?(f) }
end
def size_of(path)
File.size(path)
@nicosuave
nicosuave / gist:03a6483dec5244af6dc7
Created October 1, 2015 22:34
Coinbase API anomalies
GET Exchange Rates does in fact require authentication
Ex:
curl https://api.coinbase.com/v2/exchange-rates -H 'CB-VERSION: 2015-09-27'
{"errors":[{"id":"invalid_token","message":"The access token is invalid"}]}
GET Currencies does in fact require authentication
Ex:
curl https://api.coinbase.com/v2/currencies -H 'CB-VERSION: 2015-09-27'
{"errors":[{"id":"invalid_token","message":"The access token is invalid"}]}
@nicosuave
nicosuave / gist:a4a0e24076de68746dea
Created August 4, 2014 17:11
Welcome to Acorns
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>*|SUBJECT|*</title>
<style type="text/css">
.headline{font-size: 21px;color: #505050;font-weight:500;padding: 13px 0px;}
/* /\/\/\/\/\/\/\/\/ CLIENT-SPECIFIC STYLES /\/\/\/\/\/\/\/\/ */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" message */