This file contains hidden or 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 | |
# It would be outdated after a while | |
# This file created at 2023.04.03 by Salih KARAHAN <[email protected]> | |
# Install docker (follow steps at the link https://docs.docker.com/engine/install/ubuntu/) | |
sudo apt-get update && sudo apt-get -y upgrade | |
sudo apt-get update | |
sudo apt-get install \ |
This file contains hidden or 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/bash | |
# Salih KARAHAN | |
# Klasördeki dosya isimlerini numaralandırarak değiştiren sh scripti | |
cd "C:\Users\skarahan\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets" | |
FILES=$(ls | grep -v sh) | |
COUNTER=1 | |
for fileName in $FILES | |
do |
This file contains hidden or 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 very basic web server in node.js | |
// Stolen from: Node.js for Front-End Developers by Garann Means (p. 9-10) | |
var port = 8000; | |
var serverUrl = "127.0.0.1"; | |
var http = require("http"); | |
var path = require("path"); | |
var fs = require("fs"); |
This file contains hidden or 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
-- String'i split eden fonksiyon | |
CREATE FUNCTION fn$_GetSplitedString | |
( | |
@seperator CHAR(1) | |
, @stringList NVARCHAR(MAX) | |
) | |
RETURNS @returnTable TABLE | |
( | |
TagName NVARCHAR(100) NOT NULL | |
) |
This file contains hidden or 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
-- http://stackoverflow.com/questions/8094156/know-relationships-between-all-the-tables-of-database-in-sql-server | |
SELECT | |
fk.name 'FK Name', | |
tp.name 'Parent table', | |
cp.name, cp.column_id, | |
tr.name 'Refrenced table', | |
cr.name, cr.column_id | |
FROM | |
sys.foreign_keys fk |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
/* | |
** Copyright Microsoft, Inc. 1994 - 2000 | |
** All Rights Reserved. | |
*/ | |
SET NOCOUNT ON | |
GO | |
USE master | |
GO |
This file contains hidden or 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
public virtual TResultType ExecuteQueryEngine<TResultType>(string query, SqlParameter[] parameters, SqlCommand command, Func<TResultType> tryBlock, Action cacthBlock, Action finallyBlock) | |
{ | |
try | |
{ | |
if (!string.IsNullOrEmpty(query) && command == null) | |
{ | |
_sqlCommand = new SqlCommand(query, _sqlConnection, _sqlTransaction); | |
if (parameters != null) | |
{ | |
_sqlCommand.Parameters.AddRange(parameters); |
This file contains hidden or 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
<system.web> | |
<!--Partial CSS JavaScript Configuration Start--> | |
<httpHandlers> | |
<add path="*.js" verb="GET,HEAD" type="System.Web.StaticFileHandler" /> | |
<add path="*.css" verb="GET,HEAD" type="System.Web.StaticFileHandler" /> | |
<add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/> | |
</httpHandlers> | |
<!--Partial CSS JavaScript Configuration End--> | |
</system.web> | |
<system.webServer> |
This file contains hidden or 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
/* | |
* PARÇADAN BÜTÜNE | |
*/ | |
var NumberWriteValue = | |
[ | |
["", "Bir", "İki", "Üç", "Dört", "Beş", "Altı", "Yedi", "Sekiz", "Dokuz"], | |
["", "On", "Yirmi", "Otuz", "Kırk", "Elli", "Altmış", "Yetmiş", "Seksen", "Doksan"] | |
]; |
This file contains hidden or 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
public static readonly DependencyProperty CaptionTextProperty = DependencyProperty.Register( | |
"CaptionText", | |
typeof(string), | |
typeof(WindowCaption), | |
new UIPropertyMetadata(CaptionTextChanged)); | |
public static void CaptionTextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) | |
{ | |
((WindowCaption)(sender)).Caption = e.NewValue.ToString(); | |
} |