Skip to content

Instantly share code, notes, and snippets.

🚀
Focusing

Axel Etcheverry euskadi31

🚀
Focusing
Block or report user

Report or block euskadi31

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View readme.md
`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 Jun 18, 2018
Makefile for go test and cover
View Makefile
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
View anonyme.js
/*
* 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 / Makefile
Created Jan 6, 2017
Example of Makefile for go project
View Makefile
.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
View keybase.md

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 / uuid.php
Last active Aug 29, 2015
PHP UUID v4 class
View uuid.php
<?php
/**
* @see http://stackoverflow.com/a/15875555
*/
class UUID
{
public static function random()
{
if (function_exists('uuid_create')) {
View .profile
export EDITOR="vi"
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1) /'
}
parse_git_tag() {
git describe --always --tag 2> /dev/null
}
@euskadi31
euskadi31 / ExceptionController.php
Last active May 29, 2017
Add translation support of error page in Symfony2
View ExceptionController.php
<?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
{
View mt_adaptor.c.patch
--- src/c/src/mt_adaptor.c 2014-10-30 13:40:02.000000000 +0100
+++ src/c/src/mt_adaptor.c 2014-10-30 13:40:58.000000000 +0100
@@ -483,25 +483,9 @@
int32_t fetch_and_add(volatile int32_t* operand, int incr)
{
#ifndef WIN32
- int32_t result;
- asm __volatile__(
- "lock xaddl %0,%1\n"
- : "=r"(result), "=m"(*(int *)operand)
You can’t perform that action at this time.