Skip to content

Instantly share code, notes, and snippets.

View muatik's full-sized avatar
:bowtie:
a little more busy these days

Mustafa Atik muatik

:bowtie:
a little more busy these days
View GitHub Profile
@muatik
muatik / functional-programming.html
Created January 1, 2020 18:43
procedural, functional and oop programming
<html>
<body>
<form id="login-form">
Username: <input name="username" />
Password: <input name="password" />
<button type="submit">Submit</button>
</form>
dockerId(){docker ps | grep $1 | awk '{print $1}'; };
dockerEXEC(){docker exec -it $(dcid $1) $2; };
dockerLOG(){docker logs -f $(dcid $1); };
alias dcid='dockerId $1'
alias dcexec='dockerEXEC'
alias dclog='dockerLOG'
#include <iostream>
#include <Eigen/Dense>
//#include <mpi.h>
#include <fstream>
#include <ntsid.h>
#include <omp.h>
#include <vector>
using std::cin;
@muatik
muatik / ShortestSequence.java
Created May 1, 2017 16:54
ShortestSequence
/**
* Created by mustafaatik on 01/05/2017.
*/
public class ShortestSequence {
public static void main(String[] args) {
turnTo("dcabe", "abcde");
turnTo("abcdefghjk", "kjhgfedcba");
turnTo("abcdefghjkm", "mkjhgfedcba");
// EXPECTED OUTPUT
@muatik
muatik / gist:46fa45d9bf0ab05a9a4c96462c117ed8
Last active April 16, 2017 12:16
Resource about Matrix Factorization and ALS
@muatik
muatik / a.md
Last active January 30, 2017 17:37
Probability, Statistics, Machine Learning Concepts

Concepts

  • Max.Likelihood
  • Bernoulli Equation
  • Poisson Probability
  • Normal distribution
  • Gaussian distribution
  • The central limit theorem
  • Pearson Correlation Coefficient
python setup.py bdist_wheel --universal
python setup.py sdist bdist_wheel upload
@muatik
muatik / sublimeconf.json
Last active October 7, 2016 22:42
my sublime configuration
{
"auto_complete_function_params": "all",
"auto_complete_triggers":
[
{
"characters": ".",
"selector": "source.python"
}
],
"color_scheme": "Packages/User/Monokai (SL).tmTheme",
@muatik
muatik / python_builtin_sockets.py
Created November 5, 2014 12:39
a very first example of sockets in python
import socket
import select
class Server(object):
def __init__(self):
self.port = 8002
self.socket = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
self.socket.setsockopt( socket.SOL_SOCKET, socket.SO_REUSEADDR, 1 )
self.socket.bind(('', self.port))
self.socket.listen(5)
[
{
"city": "Oranjestad",
"code": "AW"
},
{
"city": "Kabul",
"code": "AF"
},
{