Skip to content

Instantly share code, notes, and snippets.

View retospect's full-sized avatar

Reto Stamm retospect

View GitHub Profile
Me:
Why are they burning the Böögg?
AI:
The burning of the Böögg is a traditional part of the annual Swiss carnival known as Fasnacht or Fastnacht. It takes place in the city of Zürich and other parts of Switzerland, and is a way of marking the end of winter and the arrival of spring.
The Böögg is a straw effigy that is filled with fireworks and placed on top of a bonfire. The burning of the Böögg is accompanied by music, dancing, and other festivities. The tradition is thought to have roots in ancient pagan celebrations of the changing of the seasons.
The burning of the Böögg is meant to be a fun and lighthearted event, and is not intended to be taken seriously. It is a way for people to come together and celebrate the end of winter and the start of a new season.
Me:
Please write french that is nonsense in french but means something when heard by an english speaker.
Bot:
Il y a un chat dans la sac à main de ma tante.
This phrase is nonsensical in French, as it literally translates to "There is a cat in my aunt's handbag." However, when spoken with an English accent, it could potentially sound like "There is a hat in the son of my aunt," which makes more sense in English. It is important to note that this is not a proper translation and does not convey a coherent message in either language.
Please write french that is nonsense in french but means something when heard by an english speaker.
Il y a un chat dans la sac à main de ma tante.
This phrase is nonsensical in French, as it literally translates to "There is a cat in my aunt's handbag." However, when spoken with an English accent, it could potentially sound like "There is a hat in the son of my aunt," which makes more sense in English. It is important to note that this is not a proper translation and does not convey a coherent message in either language.
Device kWh/year CO2 peak hour use CO2 low/use Sources
Electric Tumble Drier 556kWh 167kg 83kg [1]
Gas Tumble Drier 15kWh 122kg 119kg [2]
Dishwasher 1 1 1
Tesla Model 3 50 1 1 1 50 miles/day [4]
Chevy Bolt 1 1 1
Chevy Volt 1 1 1
Toyota Plug in Prius 1 1 1
Toyota Tundra Pickup 1 1 1
VW Bug 1 1 1 1
@retospect
retospect / config
Created June 20, 2014 17:04
Print pianobar song and artist in tab name on osx
# ~/.config/pianobar/config
user = user@example.com
password = very_secret
event_command = /Users/username/.config/pianobar/tabname.sh
@retospect
retospect / rescuetime.rb
Created September 27, 2012 21:39
Hack for rescuetime-beeminder integration
require 'rubygems'
require 'json'
gem 'beeminder', "0.2.2"
require 'beeminder'
require 'open-uri'
require 'uri'
require 'ruby-debug'
# Pulls data from Rescuetime and sends it to Beeminder.
# Maybe run it in an hourly cron job.
# Enter your keys and tokens below.
@retospect
retospect / fitbit_beeminder.rb
Created September 27, 2012 17:24
Hack to pull fitbit data to Beeminder
require 'rubygems'
gem "beeminder", "= 0.2.2"
require 'fitgem'
require 'json'
require 'beeminder'
consumer_key = 'FITBIT_KEY'
consumer_secret = 'FITBIT_SECRET'
token = 'FITBIT_TOKEN'
secret = ''
@retospect
retospect / gist:1004073
Created June 2, 2011 07:34
Amazon Turk data extraction hack
#!/opt/local/bin/ruby
require "ruby-debug"
filename = 'ex_dataset.csv'
file = File.new(filename, 'r')
line_count = -1
col_headers = {}
results = Hash.new(0)
file.each_line do |row|
line_count = line_count + 1
@retospect
retospect / gist:972775
Created May 15, 2011 00:18
Math 10: Graphing pinky length with R
# Gnu R code to generate histogram for lab
length_of_pinky = c(6,5.5,5.5,6.5,5.5, 5,5.5,6.5,5.5,6, 5.5,6,5.5,5,6, 5,6.5,6,5.5,5, 5.5,7.5,6,5.5,5.5, 6,5.5,6,6.5,7)
hist(length_of_pinky, seq(4.75, 7.75, 0.5), prob=TRUE, main="Histogram of students pinky length [cm]", xlab="Length of pinky [cm]")
lines(density(length_of_pinky, bw=0.25), col="blue")
curve(dnorm(x,mean=mean(length_of_pinky), sd=sd(length_of_pinky)), add=TRUE, col="green")
@retospect
retospect / spec_helper.rb
Created February 11, 2011 20:20
How to get nice test messages in your rspec test logs, and reset mongoid records
RSpec.configure do |config|
config.mock_with :mocha
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
# use_transactional_fixtures config option was removed by Mongoid