Skip to content

Instantly share code, notes, and snippets.

View yortuc's full-sized avatar
💭
big dreams

Evren Yortucboylu yortuc

💭
big dreams
View GitHub Profile
var List = function(){
this.data = [];
this.add = add;
this.remove = remove;
this.count = count;
}
function add(item){
this.data.push(item);
}
@yortuc
yortuc / gist:f4d132e6b90d65e3e772
Created February 28, 2015 17:33
List veriyapısı
var List = function(){
this.data = [];
this.add = add;
this.remove = remove;
this.count = count;
}
function add(item){
this.data.push(item);
}
@yortuc
yortuc / gist:c3f6faf4acb124e0f953
Created February 28, 2015 17:34
List veriyapısı
var List = function(){
this.data = [];
this.add = add;
this.remove = remove;
this.count = count;
}
function add(item){
this.data.push(item);
}
var List = function(){
this.data = [];
this.add = add;
this.remove = remove;
this.count = count;
}
function add(item){
this.data.push(item);
}
var List = require("./List.js");
// List denemesi
var list = new List();
list.add("stratocaster");
list.add("telecaster");
list.add(1950);
console.log(list.data);
var List = require("./List.js");
// List denemesi
var list = new List();
list.add("stratocaster");
list.add("telecaster");
list.add(1950);
console.log(list.data);
@yortuc
yortuc / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<html>
<head>
<title>Drum Machine</title>
<style>
div.Key{
display: inline-block;
margin-right: 10px;
border:1px solid #ccc;
background-color: #efefef;
border-radius: 3px;
@yortuc
yortuc / KonamiCode.html
Created November 21, 2017 19:52
Konami code implementation with javascript
<html>
<head>
<title>KONAMI CODE</title>
<style type="text/css">
body{
font-size: 60px;
font-family: sans-serif;
}
.fullScreen{
position: absolute;
@yortuc
yortuc / 4-canvas-fractals.html
Created November 29, 2017 19:41
Fractal fun with JavaScript
<html>
<head>
<title>Canvas Fractals</title>
</head>
<body>
<canvas id="myCanvas" width="401" height="401"></canvas>
<script>