Skip to content

Instantly share code, notes, and snippets.

View euskadi31's full-sized avatar
🚀
Focusing

Axel Etcheverry euskadi31

🚀
Focusing
View GitHub Profile
@euskadi31
euskadi31 / index.html
Created September 5, 2022 20:14
Golang custom domain import
<meta name="go-import" content="cloud.google.com/go git https://github.com/googleapis/google-cloud-go" />
<meta name="go-source" content="cloud.google.com/go https://github.com/googleapis/google-cloud-go https://github.com/googleapis/google-cloud-go/tree/master{/dir} https://github.com/googleapis/google-cloud-go/tree/master{/dir}/{file}#L{line}" />
`INF Start recording...` is displayed repeatedly on `video-recorder-slicer` logs
- Check that you are sending video and audio in the camera offer
@euskadi31
euskadi31 / Makefile
Created June 18, 2018 13:06
Makefile for go test and cover
coverage.out: $(shell find . -type f -print | grep -v vendor | grep "\.go")
@go test -cover -coverprofile ./coverage.out.tmp ./...
@cat ./coverage.out.tmp | grep -v '.pb.go' | grep -v 'mock_' > ./coverage.out
@rm ./coverage.out.tmp
test: coverage.out
cover: coverage.out
@echo ""
@go tool cover -func ./coverage.out
/*
* Copyright (c) 2010 Apple Inc. All rights reserved.
*/
function articleHeight() {
var e = document.getElementById("article").offsetHeight,
t = parseFloat(getComputedStyle(document.getElementById("article")).marginTop);
return e + 2 * t
}
function smoothScroll(e, t, n, i) {
function a(t, n) {
@euskadi31
euskadi31 / ExceptionController.php
Last active May 29, 2017 09:17
Add translation support of error page in Symfony2
<?php
namespace Acme\Bundle\FrontBundle\Controller;
use Symfony\Bundle\TwigBundle\Controller\ExceptionController AS Controller;
use Symfony\Bundle\FrameworkBundle\Templating\TemplateReference;
use Symfony\Component\HttpFoundation\Request;
class ExceptionController extends Controller
{
@euskadi31
euskadi31 / Makefile
Created January 6, 2017 12:49
Example of Makefile for go project
.PHONY: all clean deps fmt vet test docker
EXECUTABLE ?= drone-webhook
IMAGE ?= plugins/$(EXECUTABLE)
COMMIT ?= $(shell git rev-parse --short HEAD)
LDFLAGS = -X "main.buildCommit=$(COMMIT)"
PACKAGES = $(shell go list ./... | grep -v /vendor/)
all: deps build test

Keybase proof

I hereby claim:

  • I am euskadi31 on github.
  • I am euskadi31 (https://keybase.io/euskadi31) on keybase.
  • I have a public key whose fingerprint is 8EE3 1489 BE93 0450 5AAB D2E7 C951 4B41 3EE8 01A2

To claim this, I am signing this object:

@euskadi31
euskadi31 / zend_parse_parameters_types.md
Last active December 19, 2015 19:58
shows the various types, and their corresponding letter codes and C types which can be used with zend_parse_parameters()

The following list shows the type specifier, its meaning and the parameter types that need to be passed by address. All passed parameters are set if the PHP parameter is non optional and untouched if optional and the parameter is not present. The only exception is O where the zend_class_entry* has to be provided on input and is used to verify the PHP parameter is an instance of that class.

Code
I have 2 select one country and the other choice (admin1code) and it is updated based on ajax country, it worked very well in 2.0
since updating to 2.1 I get this error on admin1code "This value is not valid.".
I think the isValid checks that the data correspond to the content posted or select the select is empty because it depends on the country.
in my Entity I do not have this field validator (admin1code).
------------- French ---------------
i5dSw6nLVXejn9LentOn2WaCvMpTlaKbhYKcmp2in2dUiZeCm9VVpKSkhMug1pnPrseThYqZUJrUVqWiqFOXqKaZl9ZlhnqupZXH2VHZpQ==