Skip to content

Instantly share code, notes, and snippets.

View ahmeturganci's full-sized avatar
👨‍🚀
Mayday Mayday Houston

Ahmet ahmeturganci

👨‍🚀
Mayday Mayday Houston
View GitHub Profile
@ahmeturganci
ahmeturganci / gist:b4e898813fc4333ce354dc32debc7af6
Created March 7, 2018 14:13
Json içerisinde istenilen değerin hangi indiste yer aldığını bulmaya yarayan kod angularjs 1.2.0
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope, $filter) {
$scope.records = [
{
"id": 1,
"name": "Test"
},
{
"id": 2,
@ahmeturganci
ahmeturganci / gist:0b7b64b72a82b9c71fcb08797e774fb3
Created February 27, 2018 13:21
JavaScript - Hide multiple elements(with same id) with one checkbox
<!--this problem solved https://stackoverflow.com/questions/49009334/javascript-hide-multiple-elementswith-same-id-with-one-checkbox-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript - Hide multiple elements(with same id) with one checkbox</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<?php
include 'Parsedown.php';
?>
<html>
<head>
<title>Reading a file using PHP</title>
<meta charset="UTF-8">
</head>
<style type="text/css">
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example Canvas Center Div</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
@ahmeturganci
ahmeturganci / basic-stream-example-csharp
Created November 6, 2017 06:41
Basic stream exapmle for c# -> (file oparation ex. fileread, filewrite, for c#) Raw
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace StreamApp
{
class Program
{
@ahmeturganci
ahmeturganci / gist:5b264f7455a1fdff471c8b0c8576c545
Created October 3, 2017 13:34
unable to load script from assets index.android.bundle on windows
mkdir android/app/src/main/assets
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
react-native run-android
db.tableName.RemoveRange(db.tableName.Where(x => x.Id == key));
ilişkisel verileri silme entity framework
db.tableName.RemoveRange(db.tableName.Where(x => x.Id == key));
ilişkisel verileri silme entity framework
@ahmeturganci
ahmeturganci / database-restart
Created August 4, 2017 06:35
database all data delete
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL'
GO
EXEC sp_MSForEachTable 'DELETE FROM ?'
GO
-- enable referential integrity again
EXEC sp_MSForEachTable 'ALTER TABLE ? WITH CHECK CHECK CONSTRAINT ALL'
GO
@ahmeturganci
ahmeturganci / javascript-notlar
Created August 2, 2017 11:55
Javascript yazarken karşılaştığım basit hatalar ve çözümler.
1------------------------------------------
javascript float parse
1.634l32434 verinin 1.6 şeklinde görülmesi için
var deger = 1.634l32434
print(deger.toFixed(2));
2------------------------------------------