System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "log" | |
| "mime/multipart" | |
| "net/http" | |
| "os" |
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |
| #Install Gource in Ubuntu | |
| ======================== | |
| #Go to the folder.... and | |
| #see http://tylerfrankenstein.com/code/install-gource-ubuntu-1010-visualize-git-repo | |
| sudo apt-get update | |
| sudo apt-get install libsdl2-dev libsdl2-image-dev libpcre3-dev libfreetype6-dev libglew-dev libglm-dev libboost-filesystem-dev libpng12-dev libsdl1.2-dev libsdl-image1.2-dev libtinyxml-dev | |
| ./configure | |
| make | |
| sudo make install |
| func split(buf []byte, lim int) [][]byte { | |
| var chunk []byte | |
| chunks := make([][]byte, 0, len(buf)/lim+1) | |
| for len(buf) >= lim { | |
| chunk, buf = buf[:lim], buf[lim:] | |
| chunks = append(chunks, chunk) | |
| } | |
| if len(buf) > 0 { | |
| chunks = append(chunks, buf[:len(buf)]) | |
| } |
| package main | |
| import ( | |
| "net/http" | |
| "os" | |
| "bytes" | |
| "path" | |
| "path/filepath" | |
| "mime/multipart" | |
| "io" |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| package main | |
| import ( | |
| "encoding/binary" | |
| "io" | |
| "log" | |
| "os" | |
| "github.com/go-audio/audio" | |
| "github.com/go-audio/wav" |
| /* Proyecto2_rev1.21 | |
| * Nombre: Tarea 2 - Sistemas Digitales | |
| * Módulo: Tiva Launchpad EK-TM4C123GXL | |
| * Descripción: | |
| * -Al presionar SW1 formar una "X" con 8 Leds | |
| * -Al presionar SW2 formar una "Y" | |
| * -Al presionar SW3 formar una "I" | |
| * -Al presionar SW4 formar una "l" Una linea vertical de 3 leds al medio | |
| * -Al presionar SW2 con SW4 formar una "L" pegado a la izquierda | |
| * |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go directory by:
| version: "2" | |
| services: | |
| db: | |
| image: mariadb | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=test | |
| - MYSQL_DATABASE=radio | |
| volumes: | |
| - ./database:/var/lib/mysql | |
| phpmyadmin: |