This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| [ | |
| {"code":"ab","name":"Abkhaz","nativeName":"аҧсуа"}, | |
| {"code":"aa","name":"Afar","nativeName":"Afaraf"}, | |
| {"code":"af","name":"Afrikaans","nativeName":"Afrikaans"}, | |
| {"code":"ak","name":"Akan","nativeName":"Akan"}, | |
| {"code":"sq","name":"Albanian","nativeName":"Shqip"}, | |
| {"code":"am","name":"Amharic","nativeName":"አማርኛ"}, | |
| {"code":"ar","name":"Arabic","nativeName":"العربية"}, | |
| {"code":"an","name":"Aragonese","nativeName":"Aragonés"}, | |
| {"code":"hy","name":"Armenian","nativeName":"Հայերեն"}, |
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
| docker build -t friendlyname . # Create image using this directory's Dockerfile | |
| docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80 | |
| docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode | |
| docker exec -it [container-id] bash # Enter a running container | |
| docker ps # See a list of all running containers | |
| docker stop <hash> # Gracefully stop the specified container | |
| docker ps -a # See a list of all containers, even the ones not running | |
| docker kill <hash> # Force shutdown of the specified container | |
| docker rm <hash> # Remove the specified container from this machine | |
| docker rm $(docker ps -a -q) # Remove all containers from this machine |
| /** | |
| * Example AsyncStorage React Native | |
| * https://github.com/pradeep1991singh | |
| */ | |
| import React, { Component } from 'react'; | |
| import { | |
| AppRegistry, | |
| StyleSheet, | |
| Text, |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |