- Create branch with the current changes
git checkout -b <new_branch> [from_branch]
- Publish branch
git checkout <branch-name> git push origin <branch-name>
- Git merge dry-run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description name of the GlobalProtect interface | |
$gp_iface = "PANGP Virtual Ethernet Adapter" | |
# Routes to remove from the GlobalProtect interface | |
$bad_routes = @( | |
'0.0.0.0/0', | |
'10.1.10.0/24', | |
'10.1.10.255/32', | |
'172.16.100.0/24', | |
'192.168.1.0/24') | |
# How many loops used to remove routes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def EMA(data, window): | |
return pd.Series(data).ewm(span=window, adjust=False).mean() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a <- runif(100, 0.01, 1) | |
o <- split(order(a), ceiling(seq_along(a)/20)) | |
a <- cbind(a, g=NA) | |
for(i in 1:length(o)) { a[o[[i]], c('g')] <- i } | |
# visual test | |
library(ggplot2) | |
ggplot(as.data.frame(a), aes(x=seq_along(a), y=a, color=g)) + geom_point() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------- | |
# | |
# Project created by QtCreator 2017-09-13T08:41:36 | |
# | |
#------------------------------------------------- | |
QT += core gui testlib network svg xml | |
CONFIG += c++11 | |
CONFIG += console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
## Using Genetic Algorithms in Quantitative Trading | |
## | |
## thertrader@gmail.com - Mar 2014 | |
############################################################ | |
library(PerformanceAnalytics) | |
library(rgenoud) | |
library(quantmod) | |
library(TTR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getSymbol.gainc <- function(pair, year, month) { | |
# Required packages, loads both zoo and xts | |
require("xts") | |
op <- options() | |
options("digits.secs"=5) | |
options("download.file.method"="wget") | |
basepair = paste(tolower(pair), year, month, sep="_") | |
pair = toupper(pair) | |
pair = paste(substr(pair, 1, 3), "_", substr(pair,4, 6), sep="") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(future) | |
library(jsonlite) | |
basicHander <- function(jsdata) { | |
print(jsdata) | |
} | |
basicDisconnect <- function(a) { | |
cat("Deberia llamar a connect_p") | |
cat("....", a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add to .gitconfig on home folder | |
[alias] | |
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all | |
lg = !"git lg1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo dpkg-reconfigure tzdata | |
sudo apt-get -y install console-data locales | |
sudo dpkg-reconfigure console-data | |
sudo dpkg-reconfigure locales |
NewerOlder