Skip to content

Instantly share code, notes, and snippets.


Eduardo Trujillo etcinit

  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am etcinit on github.
  • I am etcinit ( on keybase.
  • I have a public key ASA2NG0xCsBHgp0jP4nTQMkGsUwBJm78TQGfHjMmzzFk8Qo

To claim this, I am signing this object:

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 / DJI_0061.SRT
Last active Apr 30, 2016
A parser for some random Drone format
View DJI_0061.SRT
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
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 / .travis.yml
Last active Jul 28, 2018
Haskell in Docker using Travis CI
View .travis.yml
sudo: required
- docker
language: c
- libgmp-dev
etcinit / Commit
Created Mar 13, 2016 — forked from brianclements/Commit
Angular Commit Format Reference Sheet
View Commit

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+
003+ Core dumped: Abort trap: 6
004+ Stack trace in /tmp/stacktrace.58679.log
005+ /Users/delta6/projects/hhvm/hphp/test/../tools/ line 91: 58679 Abort trap: 6 "$@"
etcinit / BaseMigration.php
Created Jan 25, 2015
Facade-less Laravel 5 migration
View BaseMigration.php
namespace App\Database;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Query\Builder;
* Class BaseMigration
etcinit / MoustrapMixin.js
Created Dec 14, 2014
A simple React.js mixin for using Mousetrap keyboard shortcuts (
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 / 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 / _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;