Skip to content

Instantly share code, notes, and snippets.

View josephpalmezano's full-sized avatar

Joseph Palmezano josephpalmezano

View GitHub Profile
@josephpalmezano
josephpalmezano / response_example.rb
Created July 7, 2022 14:33 — forked from yesnik/response_example.rb
Ruby on Rails request.env variable content
# This is the content of variable request.env
# We get this content in controller:
# class BlogsController < ApplicationController
# def index
# render plain: "Response: #{ YAML::dump(request.env) }"
# end
# end
import 'dart:convert';
import 'package:http/http.dart';
Response response = await get('https://jsonplaceholder.typicode.com/todos/1');
Map data = jsonDecode(response.body);
print(data);
@josephpalmezano
josephpalmezano / rails_new_help_output.md
Created January 24, 2022 16:38 — forked from eliotsykes/rails_new_help_output.md
"rails new" options explained

Run rails new --help to view all of the options you can pass to rails new:

$ bin/rails new --help
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /Users/eliot/.rbenv/versions/2.2.0/bin/ruby
@josephpalmezano
josephpalmezano / rails http status codes
Created September 28, 2021 17:41 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing

Keybase proof

I hereby claim:

  • I am josephpalmezano on github.
  • I am josephpalmezano (https://keybase.io/josephpalmezano) on keybase.
  • I have a public key ASCCNDw2XhsRt-6LoG0H8ufvVQ0Rjiw8uDkbsdbDF54MAQo

To claim this, I am signing this object: