Skip to content

Instantly share code, notes, and snippets.

View coderkan's full-sized avatar
🏠
Working from home

Erkan Güzeler coderkan

🏠
Working from home
View GitHub Profile
@coderkan
coderkan / jekyll-installation.sh
Created December 19, 2017 07:50 — forked from bast/jekyll-installation-arch.sh
Jekyll installation on Arch Linux.
sudo pacman -S ruby
gem update --user-install
gem install jekyll --user-install
gem install jekyll-paginate --user-install
gem install pygments.rb --user-install
echo "export PATH=/home/bast/.gem/ruby/2.3.0/bin:\$PATH" >> ~/.localrc
@coderkan
coderkan / db2commons.sql
Last active April 3, 2018 08:43
DB2 Common Commands
--Connect a database
db2 connect to SRCDB user username using password
--Copy a schema(_area_) from db1 to db2
db2move db1 COPY -sn _area_ -co TARGET_DB db2 USER username USING password
--Copy a schmea(SCHM1) to another db --> DSTDB and different name SCHM2
db2move SRCDB COPY -sn SCHM1 -co target_db DSTDB schema_map "((SCHM1,SCHM2))" -u userid -p password
db2move <dbname> COPY -co <COPY- options> -u <userid> -p <password>
$(function() {
// Default Language
changeLanguage("en");
// Tr button click
$("#tr_button").click(function(){
changeLanguage("tr");
});
//Eng button click
function getLangResources(){
// Define arrays how many language you want to translate
var tr = new Array();
var en = new Array();
// caption tag name
tr['hello_world'] = "Merhaba Dünya";
en['hello_world'] = "Hello World";
// Added new array defined arrays.
var resources = new Array();
function changeLanguage(lng){
var resources = getLangResources()[lng];
$("h1[name='translate']").each(function(i, elt){
$(elt).text(resources[$(elt).attr("caption")]);
});
}
<form role="form" action="sendmail.php" method="post" style="text-align:center;margin-top:50px;" >
<div>
<input id='email' type="email" name="_mail" placeholder="E-mail">
</div>
<br>
<div>
<input id = 'subject' type="text" name="_subject" placeholder="Subject">
</div>
<br>
<textarea id='mailBody' name="_body" rows="12"></textarea>
<?php
/**
* This example shows settings to use when sending via Google's Gmail servers.
* This uses traditional id & password authentication - look at the gmail_xoauth.phps
* example to see how to use XOAUTH2.
* The IMAP section shows how to save this message to the 'Sent Mail' folder using IMAP commands.
*/
//Import PHPMailer classes into the global namespace
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

This is an H1 tag

This is an H2 tag

This is an H3 tag

This is an H4 tag

This is an H5 tag
This is an H6 tag
${AnsiColor.BRIGHT_GREEN} ### ###### ###### #### #### ### ######## ########
${AnsiColor.BRIGHT_RED} ## ## ## ## ## ## ## ## ## ## ## ## ##
${AnsiColor.BRIGHT_MAGENTA} ## ## ## ## ## ## ## ## ## ## ##
${Ansi.RED}## ## ###### ## ## ## ## ## ######## ##
${Ansi.BLUE}######### ## ## ## ## ######### ## ## ##
${Ansi.CYAN}## ## ## ## ## ## ## ## ## ## ## ## ##
${Ansi.YELLOW}## ## ###### ###### #### #### ## ## ## ## ##
${Ansi.RED} :: Spring Boot${spring-boot.formatted-version} :: ${Ansi.DEFAULT}
_____ _____ _____ _____ _____ _______
/\ / ____| / ____| |_ _| |_ _| /\ | __ \ |__ __|
/ \ | (___ | | | | | | / \ | |__) | | |
/ /\ \ \___ \ | | | | | | / /\ \ | _ / | |
/ ____ \ ____) | | |____ _| |_ _| |_ / ____ \ | | \ \ | |
/_/ \_\ |_____/ \_____| |_____| |_____| /_/ \_\ |_| \_\ |_|