Skip to content

Instantly share code, notes, and snippets.

Daniel França uhtred

Block or report user

Report or block uhtred

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 dockerfile-frontend-1.
# webgefrickel/docker-frontend-tools
# VERSION 1.0.0
# using debian results in a smaller image-size :-)
FROM debian:jessie
# Twitter: @webgefrickel
MAINTAINER Steffen Rademacker <>
# set the wanted versions for dev-tools here
View sublime prefs
// The number of spaces a tab is considered equal to
"tab_size": 4,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// Additional spacing at the top of each line, in pixels
"line_padding_top": 1,
// Additional spacing at the bottom of each line, in pixels
View triangulo-da-sorte.js
var numbers = [];
$('.sorteioItem').eq(3).find('.numberDicker').each(function(i, item){
console.log( numbers.sort(function(a, b) {
return a - b;
}).join(', '))
uhtred / add-download-attr-link.js
Created May 10, 2017
add download attribute to link
View add-download-attr-link.js
View alias.rc
alias nginx-service="sudo service nginx"
alias nginx-conf-rw="sudo subl /etc/nginx/conf.d/realwave-ui.conf"
alias edit-hosts="subl /etc/hosts"
alias edit-alias="subl ~/.oh-my-zsh/custom/alias.zsh"
alias rm-node-modules="rm -rf node_modules"
alias rm-bower-components="rm -rf bower_components"
alias npm-fresh-install="rm-node-modules && npm cache clean && npm install && bower cache clean"
alias gmtmeld="git mergetool --tool=meld"
alias reveal="xdg-open ."
sudo kill -9 $(sudo fuser -n tcp $1 2> /dev/null);
uhtred / gist:a62983ce17bbc1ec803ffe43c83eb3e7
Created Oct 29, 2016
Angular: Order translated options
View gist:a62983ce17bbc1ec803ffe43c83eb3e7
ng-options="item.key as'telecon.entity.' + item.key | translate) for item in profileEditCtrl.keys | orderBy:'name'"
uhtred / run.js
Created Sep 30, 2016
Casperjs: cache html
View run.js
var fs = require('fs');
function savePage(name, content) {
console.log('savePage', name)
fs.write('pages/' + name + '.html', content, 'w');
const domain = ''
const pages = [
uhtred / lodash.toggle-array-value.js
Created Sep 26, 2016
Lodash: toggle array value
View lodash.toggle-array-value.js
_.xor([1], [2]);
= [1, 2]
_.xor([1, 2], [2]);
= [1]
View mob-x.pitfalls.js
class Todo {
@observable done = true
@observable title = "test"
const todo = new Todo()
"done" in todo // true
todo.hasOwnProperty("done") // false
Object.keys(todo) // []
You can’t perform that action at this time.