Instalando Docker em um WSL 2 com Ubuntu 22.04
Before start the installation process, make sure you meet the following prerequisites:
- A Windows 10 operating system with WSL 2 support.
- WSL 2 enabled.
- Ubuntu 22.04 installed on WSL 2.
Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:
project-root/
├── cmd/
│ ├── your-app-name/
│ │ ├── main.go # Application entry point
│ │ └── ... # Other application-specific files| #!/usr/bin/env ruby | |
| require 'json' | |
| require 'net/https' | |
| require 'openssl' | |
| require 'uri' | |
| # Scaleway => APIClass | |
| class Scaleway | |
| API_ENDPOINT = 'https://cp-ams1.scaleway.com'.freeze |
| import { Injectable } from '@angular/core'; | |
| import { Observable, Observer, BehaviorSubject, ReplaySubject } from 'rxjs/Rx'; | |
| import * as SockJS from 'sockjs-client'; | |
| import { Client, Frame, Stomp } from 'stompjs'; | |
| const DEFAULT_CACHE_SIZE: number = 100; | |
| class TopicSubscription { | |
| public subscription: any = null; | |
| public subject: ReplaySubject<any>; |
| package com.rogerthat.network.util; | |
| import android.content.Context; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.net.URLConnection; | |
| import okhttp3.Interceptor; |
| #include "cc1101.h" | |
| class C1101Receiver : public CC1101 | |
| { | |
| enum | |
| { | |
| SS = 10, | |
| MOSI = 11, | |
| MISO = 12, | |
| SCK = 13, |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB; | |
| // Open (or create) the database | |
| var open = indexedDB.open("MyDatabase", 1); | |
| // Create the schema | |
| open.onupgradeneeded = function() { | |
| var db = open.result; | |
| var store = db.createObjectStore("MyObjectStore", {keyPath: "id"}); |
| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |