Skip to content

Instantly share code, notes, and snippets.

View uhtred's full-sized avatar

Daniel França uhtred

View GitHub Profile
=index(SPLIT(AK2;",");0;1)
=TEXT(AK2; "YYYY/mm")
=TEXT(index(SPLIT('Página1'!AS2;",");0;counta(split('Página1'!AS2;","))); "mm/YYYY")
SWITCH(F2, 0, “No”, 1, “Other”)
=ifs(
REGEXMATCH(F2, "this" ),"that",
@uhtred
uhtred / france-0.2.mq5
Created November 3, 2021 11:39
France expert advisor
#include <Trade\Trade.mqh>
#include <Trade\SymbolInfo.mqh>
CTrade trade;
CSymbolInfo m_symbol;
MqlDateTime mql_StartTime, mql_StopTime, mql_CloseOrdersTime, mql_currentDateTime;
//--- input parameters
input double Volume = 1;
input double TakeProfit_Level = 20; // Take Profit
@uhtred
uhtred / france.mq5
Created October 27, 2021 23:11
France Expert Advisor
#include <Trade\Trade.mqh>
#include <Trade\SymbolInfo.mqh>
CTrade trade;
CSymbolInfo m_symbol;
MqlDateTime mql_StartTime, mql_StopTime, mql_CloseOrdersTime, mql_currentDateTime;
//--- input parameters
input double Volume = 1;
input double TakeProfit_Level = 20; // Take Profit
@uhtred
uhtred / gist:a73d2c2c060c79e368d750b8277afec1
Created August 17, 2020 17:42
jira JQL excluding weekends filter
status CHANGED AFTER -1d OR ( status CHANGED DURING (-3d, endOfWeek(-1w) ) )
# webgefrickel/docker-frontend-tools
# VERSION 1.0.0
# using debian results in a smaller image-size :-)
FROM debian:jessie
# Twitter: @webgefrickel
MAINTAINER Steffen Rademacker <kontakt@webgefrickel.de>
# set the wanted versions for dev-tools here
@uhtred
uhtred / sublime prefs
Created December 19, 2017 13:09
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
@uhtred
uhtred / triangulo-da-sorte.js
Created July 12, 2017 19:27
triangulo da sorte
var numbers = [];
$('.sorteioItem').eq(3).find('.numberDicker').each(function(i, item){
numbers.push(parseInt($(this).text()));
})
console.log( numbers.sort(function(a, b) {
return a - b;
}).join(', '))
@uhtred
uhtred / add-download-attr-link.js
Created May 10, 2017 21:11
add download attribute to link
@uhtred
uhtred / alias.rc
Created October 31, 2016 11:35
SH: Alias
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 ."
@uhtred
uhtred / killport.sh
Created October 31, 2016 11:33
SH: killport
killport(){
sudo kill -9 $(sudo fuser -n tcp $1 2> /dev/null);
}