Skip to content

Instantly share code, notes, and snippets.

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

Bilal BARAZ bilalbaraz

🏠
Working from home
View GitHub Profile
@bilalbaraz
bilalbaraz / install-python.sh
Created June 7, 2018 08:10
Install Python 3.6.5 in Ubuntu 16+
#!/bin/bash
export PYTHON_VERSION=3.6.5
export PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz
sudo apt update
sudo apt install --no-install-recommends -y \
software-properties-common build-essential \
libssl-dev libreadline-dev libbz2-dev libsqlite3-dev zlib1g-dev \
python-minimal
@bilalbaraz
bilalbaraz / gist:8c9378f7c907ddffc6d5
Created February 29, 2016 15:25
Download Composer
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === 'fd26ce67e3b237fffd5e5544b45b0d92c41a4afe3e3f778e942e43ce6be197b9cdc7c251dcde6e2a52297ea269370680') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }"
php composer-setup.php
php -r "unlink('composer-setup.php');"
@bilalbaraz
bilalbaraz / hilbert.cpp
Created July 5, 2015 14:37
Matematikte Özel Sayılar: Hilbert Sayıları
#include <stdio.h>
#include <conio.h>
#include <locale.h>
main(){
setlocale(LC_ALL, "Turkish");
int k, i = 1, sonuc;
printf("### HILBERT SAYILARI ###\n\n");
printf("Üst sınır giriniz:");
@bilalbaraz
bilalbaraz / hilbert.py
Created July 5, 2015 14:35
Matematikte Özel Sayılar: Hilbert Sayıları
#!/usr/bin/env python
# -*-coding: iso-8859-9 -*-
print("### HILBERT SAYILARI ###\n");
k = int(raw_input("Ust sinir giriniz:"));
i = 1;
if k <= 0:
print("Ust sinir pozitif tam sayi olmalidir.");