Skip to content

Instantly share code, notes, and snippets.

@softwaregravy
softwaregravy / Comparison Espressif ESP MCUs.md
Created March 29, 2023 01:40 — forked from sekcompsci/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@softwaregravy
softwaregravy / main.rb
Created March 14, 2020 20:13 — forked from coorasse/main.rb
CanCanCan Issue
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
gem 'rails', '5.1.0' # use correct rails version
@softwaregravy
softwaregravy / rspec-syntax-cheat-sheet.rb
Created September 9, 2011 21:25 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
# Bit.ly API implementation - thanks to Richard Johansso http://gist.github.com/112191
require 'httparty'
class Api::Bitly
include HTTParty
base_uri 'api.bit.ly'
format :json
# Usage: Bitly.shorten("http://example.com")
def self.shorten(url)
@softwaregravy
softwaregravy / Questions
Created July 11, 2011 21:42
Magma Rails Give-away
Day Job: Sr. Software Engineer at ThinkNear
Open Source contribution (if any): rails docs and guides
Tell me about your experience with Ruby/Rails: started using it in fall 2010, and have been on it full time every since. Big change from my background in Java (used to work at Amazon.com)
How do you use GitHub: for everything. personal and business. We keep our companies repositories on github. We also use it to collaborate with contractors.
Favorite luchador(es):Rikochet
@softwaregravy
softwaregravy / api.feature
Created February 26, 2011 20:27 — forked from guenter/api.feature
I prefer symbols to strings when accessing hash. So make the looks with_indifferent_access
Feature: API
In order to use the service from third party apps
As a user
I want to be able to use an API
Background:
Given a user exists # Pickle
And I login as the user using basic auth
Scenario Outline: Get a ticket