Skip to content

Instantly share code, notes, and snippets.

Iacami Gevaerd enapupe

  • Florianópolis, SC, Brazil
Block or report user

Report or block enapupe

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 config.test.js
import axios from 'axios'
import httpAdapter from 'axios/lib/adapters/http'
import { API_URL } from '../src/config/environment' = API_URL
axios.defaults.adapter = httpAdapter
enapupe / .prettierrc
Created Mar 13, 2018
my preferred prettier config
View .prettierrc
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"parser": "babylon",
"semi": false,
"arrowParens": "always"
View Dockerfile
FROM node
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ENV AUDIO_PATH '/proc/asound/card0/pcm0p/sub0/status'
ENV ENDPOINT_ON 'http://localhost:1880/amp/on'
ENV ENDPOINT_OFF 'http://localhost:1880/amp/off'
COPY . /usr/src/app
View .gitconfig
email =
name = enapupe
default = current
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
editor = subl -n -w
View data.js
var data = {"building": [
"volume": 3338.91764606872,
"perimeter": 137.87671346974363,
"points": [
enapupe / tooltip.directive.js
Created Nov 12, 2014
AngularJS tooltip directive
View tooltip.directive.js
angular.module("myApp").directive("theTooltip", function($timeout, $sce){
return {
restrict: "E",
template: "<tooltip-arrow arrow-top></tooltip-arrow><tooltip-content ng-bind-html=\"content\"></tooltip-content><tooltip-arrow></tooltip-arrow>",
link: function(scope, elem, attr){
scope.$on("", function(undefined, newval){
elem.css("visibility", "hidden");
scope.content = $sce.trustAsHtml(newval.content);
// aplicamos o escopo para forçar a renderizacao do novo content
// no tooltip, e assim poder calcular o novo tamanho no próximo
enapupe / reset.js
Created Nov 6, 2014
AngularJS auto $setPristine() on reset
View reset.js
angular.module("myApp").directive("form", function(){
return {
require: "^form",
link: function(scope, elem, attr, ctrl){
elem.on("reset", function(){
enapupe / controller.js
Created Sep 29, 2014
PopUp opener directive for angularjs
View controller.js
"use strict";
myApp.controller("SomeCtrl", function($scope){
$scope.callback = function(){
// do something
$scope.url = "http://some/popup";
enapupe / autofocus.directive.js
Created Sep 16, 2014
Directive that autofocus an element when scope becomes true
View autofocus.directive.js
myApp.directive("focusMe", function($timeout){
return {
restrict: "A",
link: function(scope, element, attrs){
scope.$watch(attrs.focusMe, function(value){
if(value === true){
enapupe / notification.css
Created Aug 29, 2014
AngularJS Notification Service
View notification.css
.notifications-service {
position: fixed;
top: 10px;
width: 100%;
text-align: center;
.notification-list {
list-style: none;
padding: 0;
margin: 0;
You can’t perform that action at this time.