Skip to content

Instantly share code, notes, and snippets.

Eduardo Trujillo etcinit

Block or report user

Report or block etcinit

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
@etcinit
etcinit / merge.go
Created Feb 21, 2017
My attempt at Mergesort in Go
View merge.go
package main
import "fmt"
import "strings"
import "strconv"
import "math"
// Input:
//
// - First line: number of elements
@etcinit
etcinit / DJI_0061.SRT
Last active Apr 30, 2016
A parser for some random Drone format
View DJI_0061.SRT
1
00:00:01,000 --> 00:00:02,000
HOME(110.9043,-2.7954) 2016.04.17 09:59:08
GPS(110.9038,-2.7953,19) BAROMETER:500.0
ISO:100 Shutter:60 EV: Fnum:F2.8
2
00:00:02,000 --> 00:00:03,000
HOME(110.9043,-2.7954) 2016.04.17 09:59:09
GPS(110.9038,-2.7953,19) BAROMETER:500.0
@etcinit
etcinit / .travis.yml
Last active Jul 28, 2018
Haskell in Docker using Travis CI
View .travis.yml
sudo: required
services:
- docker
language: c
addons:
apt:
packages:
- libgmp-dev
env:
global:
@etcinit
etcinit / Commit Formatting.md
Created Mar 13, 2016 — forked from brianclements/Commit Formatting.md
Angular Commit Format Reference Sheet
View Commit Formatting.md

Git Commit Guidelines

We have very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history. But also, we use the git commit messages to generate the AngularJS change log.

Commit Message Format

Each commit message consists of a header, a body and a footer. The header has a special format that includes a type, a scope and a subject:

View gist:a1da886439ee439adf11
Running 1040 tests in 4 threads (0 in serial)
FAILED: quick/array-set-ref-catch.php
001+ libc++abi.dylib: terminating with uncaught exception of type HPHP::FatalErrorException: Array is too unbalanced (2001)
001- Fatal error\: Array is too unbalanced \(2001\) in [^\r\n]+ on line \d+
002+
003+ Core dumped: Abort trap: 6
004+ Stack trace in /tmp/stacktrace.58679.log
005+ /Users/delta6/projects/hhvm/hphp/test/../tools/timeout.sh: line 91: 58679 Abort trap: 6 "$@"
View gist:4fe5ab58c74c813be0e8
### Keybase proof
I hereby claim:
* I am etcinit on github.
* I am etcinit (https://keybase.io/etcinit) on keybase.
* I have a public key whose fingerprint is 80A1 5003 7BBF 35DD 371D 6CB3 C82C CC4C 5CEA CF85
To claim this, I am signing this object:
@etcinit
etcinit / BaseMigration.php
Created Jan 25, 2015
Facade-less Laravel 5 migration
View BaseMigration.php
<?php
namespace App\Database;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Query\Builder;
/**
* Class BaseMigration
*
@etcinit
etcinit / MoustrapMixin.js
Created Dec 14, 2014
A simple React.js mixin for using Mousetrap keyboard shortcuts (https://github.com/ccampbell/mousetrap)
View MoustrapMixin.js
/** @jsx React.DOM */
// NOTE: This file is formatted for React.js + Browserify
// You might need to make some changes to use it without Browserify
var MousetrapMixin,
Mousetrap = require('br-mousetrap');
MousetrapMixin = {
@etcinit
etcinit / deploy.js
Last active Aug 29, 2015
Nexus Client JS example for Laravel project
View deploy.js
/**
* Nexus Client Deployment Script for Laravel projects
*
* Works with Laravel 5.0 (and 4.0 if using Dotenv library)
*
* The key "appEnv" is reserved for setting the app environment
* If appEnv is not set, we assume its production
*/
"use strict";
@etcinit
etcinit / _checkbox.scss
Last active Aug 29, 2015
Foundation Checkboxes (Gmail style)
View _checkbox.scss
// Gmail-style checkboxes for Foundation
input[type='checkbox'] {
margin-top: -30px;
}
input[type='checkbox'] {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeSpeed;
width: 14px;
You can’t perform that action at this time.