With a code like this:
package main
import "fmt"
var (
version = "dev"
commit = "n/a"
FROM golang:1.21.0-bullseye as builder | |
COPY . /workdir | |
WORKDIR /workdir | |
ENV CGO_CPPFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-all" | |
ENV GOFLAGS="-buildmode=pie" | |
RUN go build -ldflags "-s -w" -trimpath ./cmd/app |
With a code like this:
package main
import "fmt"
var (
version = "dev"
commit = "n/a"
// Get height action bar compat | |
TypedValue tv = new TypedValue(); | |
int attr = android.support.v7.appcompat.R.attr.actionBarSize; | |
if (getTheme().resolveAttribute(attr, tv, true)){ | |
int actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data,getResources().getDisplayMetrics()); | |
Log.w("ACTIONBAR", "height - " + actionBarHeight); | |
} |
# build with | |
# docker build -t 'necrobious/haskell-ghc-7.8-64' . | |
FROM ubuntu:14.04 | |
MAINTAINER [email protected] | |
ENV DEBIAN_FRONTEND noninteractive | |
####### Install Dependencies ################################################### | |
RUN apt-get -y update |
## Lenguaje Go | |
set --export GOROOT /usr/local/go | |
set -gx PATH /usr/local/go/bin $PATH | |
#set -gx PATH GOROOT/bin $PATH | |
set --export GOPATH $HOME/GoProjects | |
set -gx PATH $GOPATH/bin $PATH | |
## AppEngine para GO | |
set -gx PATH $HOME/programs/go_appengine $PATH |
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url 'https://oss.sonatype.org/content/repositories/snapshots/' | |
} | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT' |
/** | |
* This method will be used to calculate the Hausdorff distance | |
* | |
* @param distanceMax this is the value of the maximum distance to compare | |
* @param routeOne this is one of the routes to compare | |
* @param routeTwo this is one of the routes to compare | |
* @return returns true if the value of the maximum distance is not exceeded, false otherwise | |
*/ | |
public boolean distanceHausdorff(final int distanceMax, LinkedList<Posicion> routeOne, | |
LinkedList<Posicion> routeTwo) { |
;; ;;(add-to-list 'auto-mode-alist '("\\.jsx\\'" . web-mode)) | |
;; ;;(add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode)) | |
;; ;;(setq web-mode-content-types-alist '(("jsx" . "*\\.js[x]?\\'")) | |
;; ; Para que el demonio de emacs cargue nuestro archivo de configuración, | |
;; ; el comando de inicio debería ser algo así: | |
;; ;; emacs -u usuario --daemon -l ~/.emacs | |
(require 'package) | |
(package-initialize) |
# use syntax glob for this file | |
syntax: glob | |
#archivos con extensiones de configuracion local del proyecto o compilados | |
*.class | |
*.apk | |
*.dex | |
*.ap_ | |
*.suo | |
*.properties |