Skip to content

Instantly share code, notes, and snippets.

HARUN PEHLİVAN harunpehlivan

View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" -----------------------------
" IMPORTANT:
" Keep Plugin commands between vundle#begin/end.
@harunpehlivan
harunpehlivan / logistic_regression_grapefruit.m
Created February 19, 2019 00:05 — forked from egonSchiele/logistic_regression_grapefruit.m
Logistic regression for orange vs grapefruit
% data
x = [1, 2, 3, 4, 5, 6];
y = [0, 0, 0, 1, 1, 1];
% function to calculate the predicted value
function result = h(x, t0, t1)
result = sigmoid(t0 + t1 * x);
end
% sigmoid function
@harunpehlivan
harunpehlivan / Casually_Tossed_Photos
Created January 4, 2019 23:57 — forked from AlanSimpsonMe/Casually_Tossed_Photos
Photos casually tossed on a table - HTML5 and CSS3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Photos casually tossed on a table - HTML5 and CSS3">
<meta name="author" content="Alan Simpson">
<title>Casually Tossed Photos</title>
// including plugins
var gulp = require('gulp')
var minifyCSS = require('gulp-minify-css')
var autoprefixer = require('gulp-autoprefixer')
var gp_concat = require('gulp-concat')
var gp_rename = require('gulp-rename')
var gp_uglify = require('gulp-uglify')
var path = require('path')
gulp.task('css-main', function(){
@harunpehlivan
harunpehlivan / formcontrols.txt
Created July 31, 2018 20:19 — forked from AlanSimpsonMe/formcontrols.txt
Style form controls
<!DOCTYPE html>
<html lang="en">
<head>
<title>Alan Simpson</title>
<style>
/* These can go in an external style sheet, of course. I just put
them here so all of the code would be in one place */
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
@harunpehlivan
harunpehlivan / JavaScript_Music_Player
Created July 17, 2018 20:15 — forked from AlanSimpsonMe/JavaScript_Music_Player
Super simple JavaScript music player with Play, Pause, and Volume controls.
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="A simple JavaScript music player with Play, Pause, and Volume controls, for JavaScript learners. Source at https://alansimpson.me/javascript/code_quickies/musicplayer">
<meta name="author" contant="Alan Simpson">
<title>Music Player</title>
<!-- Just some basic styling, style yours to taste -->
<style>
table.player {
<!DOCTYPE html>
<html>
<head>
<title>Responsive List</title>
<style>
.responsive{
column-width: 320px;
column-gap: 36px;
}
</style>
@harunpehlivan
harunpehlivan / flyout.txt
Created July 13, 2018 20:56 — forked from AlanSimpsonMe/flyout.txt
Flyout menus
<!DOCTYPE html>
<html>
<head>
<title>Fly-out Menu</title>
<!-- Similar to one in class, but not background images -->
<style>
/* Side menu bar */
nav ul {
list-style-type: none;
@harunpehlivan
harunpehlivan / DropCap
Created July 13, 2018 20:54 — forked from AlanSimpsonMe/DropCap
Super Simple CSS Drop Cap
<!DOCTYPE html>
<html>
<head>
<title>Drop Cap Example</title>
<!-- Feel free to use however you wish http://AlanSimpson.me -->
<style>
/* This width is just to make the paragraphs narrow, not required in real life */
p {
width: 400px;
}