1.Update software & reboot
$ dnf update -y
$ reboot2.Installing dependencies
$ dnf install kernel-devel-$(uname -r) gcc dkms3.Add 'nouveau' to the blacklist, install vim to edit 'Grub'
| package main | |
| import "fmt" | |
| import "unicode/utf8" | |
| func main() { | |
| fmt.Println("Hello, 世界", len("世界"), utf8.RuneCountInString("世界")) | |
| } |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "net/http" | |
| "os" | |
| "strconv" | |
| "strings" | |
| ) |
| { | |
| "manifest_version": 2, | |
| "name": "Getting started example", | |
| "description": "This extension allows the user to change the background color of the current page.", | |
| "version": "1.0", | |
| "browser_action": { | |
| "default_icon": "icon.png", | |
| "default_popup": "popup.html" | |
| }, | |
| "permissions": [ |
| package com.example.influenciadores; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.view.View.OnClickListener; | |
| import android.widget.Button; | |
| import android.widget.EditText; | |
| public class InfluenciadoresActivity extends Activity { |
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| type PizzaOrder struct { | |
| orderNum int | |
| flavor string |
| func compare(original, translation map[string]string) map[string]string { | |
| missing := make(map[string]string) | |
| for k, v := range original { | |
| if _, ok := translation[k]; !ok { | |
| missing[k] = v | |
| } | |
| } | |
| return missing | |
| } |
| func compare(a, b []string) []string { | |
| for i := len(a) - 1; i >= 0; i-- { | |
| for _, vD := range b { | |
| if a[i] == vD { | |
| a = append(a[:i], a[i+1:]...) | |
| break | |
| } | |
| } | |
| } | |
| return a |
| Verifying that "arxdsilva.id" is my Blockstack ID. https://onename.com/arxdsilva |
1.Update software & reboot
$ dnf update -y
$ reboot2.Installing dependencies
$ dnf install kernel-devel-$(uname -r) gcc dkms3.Add 'nouveau' to the blacklist, install vim to edit 'Grub'
| func RecursiveGlob(dirPath string, pattern string) ([]string, error) { | |
| old, err := os.Getwd() | |
| if err != nil { | |
| return nil, err | |
| } | |
| defer os.Chdir(old) | |
| err = os.Chdir(dirPath) | |
| if err != nil { | |
| return nil, err | |
| } |