Skip to content

Instantly share code, notes, and snippets.

View axeldeveloper's full-sized avatar
🏠
Working from home

Axel Alexander axeldeveloper

🏠
Working from home
View GitHub Profile
@axeldeveloper
axeldeveloper / DockerDebugVSCode.md
Created March 1, 2024 20:31 — forked from kendrahavens/DockerDebugVSCode.md
Debug a .NET Core Project in a Docker container with VS Code

title: Debug a .NET Core Project in a Docker container with VS Code description: Debug a .NET Core Project in a Docker container with VS Code keywords: .NET, .NET Core, Docker, Debug, debugging, vs code, visual studio code, dotnet, core ms.author: kendrahavens ms.date: 02/15/17 ms.topic: article ms.prod: .net-core ms.assetid: b9c42367-72e7-4947-b7e2-316a240fbb39

@axeldeveloper
axeldeveloper / banco_codigo.json
Created February 1, 2023 00:52 — forked from antoniopresto/banco_codigo.json
JSON bancos do brasil com código
[
{
"value": "001",
"label": "Banco do Brasil S.A."
},
{
"value": "003",
"label": "Banco da Amazônia S.A."
},
{
@axeldeveloper
axeldeveloper / rails-jsonb-queries
Created October 25, 2022 02:07 — forked from mankind/rails-jsonb-queries
Ruby on Rails-5 postgresql-9.6 jsonb queries
http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query
http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails
#payload: [{"kind"=>"person"}]
Segment.where("payload @> ?", [{kind: "person"}].to_json)
#data: {"interest"=>["music", "movies", "programming"]}
Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json)
Segment.where("data #>> '{interest, 1}' = 'movies' ")
Segment.where("jsonb_array_length(data->'interest') > 1")
@axeldeveloper
axeldeveloper / rspec_model_testing_template.rb
Created May 25, 2021 20:40 — forked from PWSdelta/rspec_model_testing_template.rb
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
import 'package:flutter/material.dart';
class GoogleMapsClonePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
CustomGoogleMap(),
CustomHeader(),