Skip to content

Instantly share code, notes, and snippets.

View tosh's full-sized avatar
💭
🍄🌈

Thomas Schranz tosh

💭
🍄🌈
View GitHub Profile
Model AGIEval GPT4All TruthfulQA Bigbench Average
MonarchPipe-7B-slerp 46.12 74.89 66.59 47.49 58.77

AGIEval

Task Version Metric Value Stderr
agieval_aqua_rat 0 acc 27.17 ± 2.80
acc_norm 27.17 ± 2.80
agieval_logiqa_en 0 acc 39.32 ± 1.92
@tosh
tosh / jam.jsx
Created March 17, 2021 21:41
Simple Jam React Component Example
import Jam from 'jam-react';
<Jam roomId="room-id" />
@tosh
tosh / jam.jsx
Created March 17, 2021 21:30
Jam React Component Example
import React from 'react';
import Jam from 'jam-react';
function App() {
let ids = ['01', '02', '03'];
return (
<div style={{padding: '1rem'}}>
<h1>Jam: My own Clubhouse!!!!</h1>
<div>
{ids.map(id => (
@tosh
tosh / iframe-code
Last active March 15, 2021 15:16
Jam on Wordpress iframe plugin example
[iframe src="https://jam.systems/room-id" allow="microphone *;" width="420" height="600"]
@tosh
tosh / day4.cljs
Created December 4, 2017 23:30
advent-of-code-2017-day4.cljs
(defn input [r]
(->> (.split r "\n")
(map #(.trim %))
(map #(.split % " "))))
(defn anagram? [a b]
(= (frequencies a)
(frequencies b)))
(defn valid? [passphrase]
@tosh
tosh / tab_title_change.js
Created February 10, 2016 22:54
invision style behavior of tab title change (see https://twitter.com/__tosh/status/697549109268500481)
document.addEventListener('visibilitychange', function(event) {
if (document.hidden) {
document.title = 'woohoo';
} else {
document.title = 'old title';
}
});
@tosh
tosh / md5.coffee
Last active December 10, 2015 18:59 — forked from amscotti/md5.coffee
MD5 hashing
crypto = require('crypto');
#Quick MD5 of text
text = "MD5 this text!"
md5hash1 = crypto.createHash('md5').update(text).digest("hex")
#MD5 of text with updates
m = crypto.createHash('md5')
m.update("MD5 ")
m.update("this ")
@tosh
tosh / gist:971956
Created May 14, 2011 05:51
some stuff
blah
@tosh
tosh / iso dates py -> js
Created March 21, 2011 17:28
convert python dates into iso strings for javascript
def dto(self):
"""
Data Transfer Object
http://en.wikipedia.org/wiki/Data_transfer_object
datetimes are serialized to http://www.ietf.org/rfc/rfc3339.txt
see: http://stackoverflow.com/questions/455580/json-datetime-between-python-and-javascript/456032#456032
"""
return dict(key=self.key().name(),
name=self.name,
@tosh
tosh / Designer
Created January 17, 2011 17:30
we are searching for someone who loves HTML and CSS
hey,
we (http://www.ykty.at) need you if you:
* love HTML
* dig CSS
* think you can assemble a kickass team of frontend devs (we want people who love what they do)
* want to work on projects with challenging deadlines
* want to create facebook and mobile web apps for big brands (red bull, krone, ditech, jim beam, …)
* like to experiment with new stuff (e.g. css3 transform, transition, …)