Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Deniz SirmaXX

🏠
Working from home
View GitHub Profile
@SirmaXX
SirmaXX / index.html
Created Jun 12, 2021
bahattin benchmark
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="work.js"></script>
</head>
View demo.c
#include <stdio.h>
#include <Python.h>
int addition (int a, int b) {
return a+b;
}
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
</head>
@SirmaXX
SirmaXX / nodejs.sh
Last active Feb 20, 2021
remove all components of nodejs and node.js
View nodejs.sh
#author:SirmaXX
#date :20/02/2020
sudo apt-get upgrade
sudo apt-get update
sudo npm uninstall npm -g
cd /usr/local/bin
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/bin/node
sudo apt-get autoremove
@SirmaXX
SirmaXX / multip.js
Last active Feb 9, 2021
multiplication and counting table with react.js
View multip.js
import React from "react";
function NumberTable() {
const row = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const col = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11];
return (
<div>
@SirmaXX
SirmaXX / piyango.py
Created Feb 2, 2021
milli piyango çekilişi için uygulama
View piyango.py
import random
#cekilen top sayisi
topsayisi=7
#1 den n e kadar sayı üstsinir=n
üstsinir=90
#her kolon icin alınan ücret
kolonfiyati=3
#büyük ikramiye miktarları
bikramiye=5000000
#kullanıcının bileti
@SirmaXX
SirmaXX / base.py
Created Jan 31, 2021
same file finder script
View base.py
import os
import sys
#usage
# python base.py 'first file path' 'sec file path'
#order of arguments
@SirmaXX
SirmaXX / fakefilecreator.js
Last active Jul 10, 2020
its for frontend developers help to develop unknown file length when develop frontend
View fakefilecreator.js
function chunkArray(myArray, chunk_size){
var results = [];
while (myArray.length) {
results.push(myArray.splice(0, chunk_size));
}
return results;
}
function filecreator (filetypes,namelength){
@SirmaXX
SirmaXX / haversin.js
Created Jun 27, 2020
haversin function
View haversin.js
var R = 6371 //km
function sinsqr(x,x1){
difference =(x1-x)*Math.PI/180;
result=Math.pow(Math.sin( difference /2) ,2)
return result;
}
function d2tan(a){
result= 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
return result;
}
View stat.vb
' x ,frekans için 2 dizi ve yineleyiciler için değişkenler tanımladık '
Dim x() As Single, freq() As Integer, i As Integer, k As Integer, l As Integer
Private Sub Command1_Click()
' ortalama ve n değerini kullanabilmek için yeni değişken tanımladık '
Dim ort As Single, sendn As Integer
' nn değeri text1.texten gelen bir değer değişik amaçlar için ek değişkenler tanımladık'
nn = Text1.Text: n = nn - 1: sendn = nn