Skip to content

Instantly share code, notes, and snippets.

@Benedikt1992
Benedikt1992 / .gitignore
Last active May 26, 2018 12:29
External Header example
main
import os
import pandas as pd
import pickle
from keras.layers import BatchNormalization, Dropout, regularizers
from keras.layers import Dense
from keras.layers import Input
from keras.layers.merge import concatenate
from keras.models import Model
from keras.models import Sequential
from keras.utils import plot_model
import os
import pickle
import pandas as pd
from sklearn.metrics import make_scorer
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import KFold
from sklearn.model_selection import train_test_split
from xgboost import XGBRegressor
import os
import pandas as pd
import pickle
from keras.layers import BatchNormalization, Dropout, regularizers
from keras.layers import Dense
from keras.layers import Input
from keras.layers.merge import concatenate
from keras.models import Model
from keras.models import Sequential
from keras.utils import plot_model
@Benedikt1992
Benedikt1992 / example.rb
Created August 27, 2017 09:39
ruby send mails with 'mail'
#!/usr/bin/env ruby
require 'mail'
def send_mail(content)
mail = Mail.new do
from 'mail@example.com'
to 'recipient@domain.com'
subject "Subject"
body content
end
@Benedikt1992
Benedikt1992 / uru_guide
Last active August 2, 2017 12:27
multiple ruby versions on windows with cygwin with uru
Gewünschte Ruby wie Standalone installieren ohne die executables zum Path aufzunehmen
uru von https://bitbucket.org/jonforums/uru/ runterladen und zunächste die Windows Variante gemäß anleitung installieren
Um uru auch aus cygwin nutzen zu können sollte innerhalb von cygwin eine linux installation von uru durchgeführt werden
Damit die cygwin installation die richtigen ruby versionen findet muss folgender Umgebungsvariable angelegt werden:
export URU_HOME="C:\Pfad\zur\.uru"
#Um immer die richtige ruby version automatisch zu nutzen kann das hier in die .bashrc aufgenommen werden (oder entsprechende Dateien)
localhost, 127.0.0.*, 10.*, 172.23.*, 192.168.*, *.dm-drogeriemarkt.com, *.dm.int, *.dm-drogeriemarkt.de
@Benedikt1992
Benedikt1992 / .vimrc
Last active June 26, 2016 12:02
Vim config
set mouse-=a
scriptencoding utf-8
set encoding=utf-8
set nocompatible " be iMproved, required
filetype off " required by Vundle
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
@Benedikt1992
Benedikt1992 / sven-ola.list
Created November 11, 2015 19:59
Debian-Kit updated repository for andromize and other packages
deb http://sven-ola.commando.de/repo/ wheezy main
deb-src http://sven-ola.commando.de/repo/ wheezy main
@Benedikt1992
Benedikt1992 / dns_setup.sh
Last active November 10, 2022 19:20
Setup DNS configuration for cygwin/babun using windows configuration
#! /bin/bash
ipconfig /all | gawk '
BEGIN {
# Initialize state variables.
addSuffixes=0;
searchList="";
addServers=0
};
{