Skip to content

Instantly share code, notes, and snippets.

View ibrahimgunduz34's full-sized avatar
🎯
Focusing

İbrahim Gündüz ibrahimgunduz34

🎯
Focusing
View GitHub Profile
Start date: 2025-07-10
End date: 2025-10-10
Report time: 2025-10-10
Fon Positive Days Positive Days (%) Negative Days Negative Days (%) Average Gain (%) Average Loss (%) Stdev (%) Price Change (%) Max Drawdown (%) Sortino Ratio Sharpe Ratio
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BIH 44 67.69% 21 32.31% 0.74 0.46 0.79 25.42 -1.72 0.58 0.44
BDS 38 59.38% 26 40.63% 0.66 0.39 0.64
@Override
public FundTransaction handle(FundSellingTransactionCreate command) {
Fund fund = fundDataPort.retrieve(command.getCode());
Portfolio portfolio = portfolioDataPort.get(command.getUser(), command.getPortfolioId());
// TODO read the reference currency from the account profile later.
CurrencyCode referenceCurrencyCode = CurrencyCode.USD;
CurrencyRetrieveRate currencyRetrieveRateCmd = buildCurrencyRetrieveRate(
fund, referenceCurrencyCode, command);
@ibrahimgunduz34
ibrahimgunduz34 / bootstrap-snippet-login-form.markdown
Created September 10, 2023 20:27
Bootstrap Snippet: Login Form

Bootstrap Snippet: Login Form

Using default Bootstrap 3.0, here's a short CSS snippet to style your login form.

A Pen by Ace Subido on CodePen.

License.

@ibrahimgunduz34
ibrahimgunduz34 / bootstrap-snippet-login-form.markdown
Created September 10, 2023 20:27
Bootstrap Snippet: Login Form

Bootstrap Snippet: Login Form

Using default Bootstrap 3.0, here's a short CSS snippet to style your login form.

A Pen by Ace Subido on CodePen.

License.

`use strict`;
const COLUMN_DELIMITER = ';'
const LINE_DELIMITER = '\n';
const SOURCE_FILE = 'sample.txt';
const OUTPUT_FILE = 'output.txt';
const fs = require('fs');
const buffer = [];
`use strict`;
const fs = require('fs');
const writeStream = fs.createWriteStream('sample.txt');
const row = ['John', 'Doe', '905412223344','john.doe@example.com', 'Lorem Ipsum Street Nr. 2', 'Istanbul', 'Trukey'];
const sRow = row.join(';') + '\n';
const targetSize = Math.floor((500 * 1024 * 1024) / sRow.length);
@ibrahimgunduz34
ibrahimgunduz34 / display-or-download-base64-encoded-file-from-a-browser.html
Last active November 10, 2021 14:36
Display or download base64 encoded file from a browser
<button id="downloadDocument">
Download Document
</button>
<button id="showDocument">
Show Document
</button>
<embed id="inlinePdfFile" />
@ibrahimgunduz34
ibrahimgunduz34 / javascript-array-property-access.js
Last active March 4, 2020 14:07
Setting value to a complex object field by giving the object key as string
function propertyAccess(obj, key, value) {
const sKey = key.replace(/\[/gi, '.').replace(/\]/gi, '').split('.')
const current = sKey[0]
const next = sKey.slice(1).join('.')
if (sKey.length != 1) {
return propertyAccess(obj[current], next, value)
}
if (value !== undefined) {
obj[key] = value
}
@ibrahimgunduz34
ibrahimgunduz34 / how-to-install-new-license-file-to-elasticsearch.md
Created November 22, 2018 07:18
How To Install New License File To Elasticsearch

How To Install New License File To Elasticsearch

Check the elasticsearch version with the following request

$ curl http://<host>:9200/

You should see a response like the following which contains all the version information: