Skip to content

Instantly share code, notes, and snippets.

View yuxel's full-sized avatar

Osman Yüksel yuxel

View GitHub Profile
@yuxel
yuxel / tart_Msg.js
Created September 13, 2011 14:27
tart.Msg
// Copyright 2011 Tart. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
@yuxel
yuxel / veri.json
Created September 13, 2011 11:17
veri.json
{
"totalCount": "2",
"results": [
{
"name": "Batman Arkam city",
"node_id": "25",
"url": "batman-arkham-city"
},
{
"name": "Pro Evolution Soccer 2011",
@yuxel
yuxel / prototype.js
Created August 22, 2011 12:12
javascript prototype kaka
var Yemekler = function () {
var that = this;
this.liste = [];
this.ekle = function (yemekAdi) {
that.liste.push(yemekAdi);
};
this.listele = function () {
console.log(this.liste);
@yuxel
yuxel / baybaykus_head.html
Created August 7, 2011 14:38
baybaykus button
<link rel="stylesheet" href="http://baybaykus.com/Templates/default/_static/compiled/Baybaykus.min.css" type="text/css" />
<script type="text/javascript" src="http://baybaykus.com/Templates/default/_static/compiled/Baybaykus.min.js"></script>
@yuxel
yuxel / baybaykus.html
Created August 7, 2011 14:36
baybaykus buton
<script type="text/javascript">
new Baybaykus({
//buraya gonderinizin URL'ini
url: "http://yuxel.net/?module=news&action=show_id&id=442",
//buraya gonderinizin başlığını
title : "Geek'den Şair olursa",
//buraya da görüntülenecek küçük resmi girin
image : "http://yuxel.net/image/topics/others.png"
})
.setType("middle") //small, middle,big,icon40,icon72,icon128 veya icon512 olarak tip ayarlayabilirsiniz
@yuxel
yuxel / jquery.html
Created August 7, 2011 14:26
baybaykus
<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
@yuxel
yuxel / gameZone.js
Created July 18, 2011 18:44
sercan oyun2
// Random olarak oluşturduğum array'de ki aynı sayıları ayıklar.
var util = {};
util.array = {};
util.array.unique = function (arrayItem){
var a = [], l = arrayItem.length;
for(var i=0; i<l; i++){
for(var j=i+1; j<l; j++){
if(arrayItem[i] === arrayItem[j]){
j = ++i;
}
@yuxel
yuxel / oyun.js
Created July 8, 2011 21:15
sercan oyun
Array.prototype.arrayUnique = function(){
var a = [], l = this.length;
for(var i=0; i<l; i++){
for(var j=i+1; j<l; j++){
if(this[i] === this[j]){
j = ++i;
}
}
a.push(this[i]);
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.0.2/jasmine.css">
<script type="text/javascript" src="lib/jasmine-1.0.2/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-1.0.2/jasmine-html.js"></script>
</head>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Jasmine Spec Runner</title>
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine.css">
<script type="text/javascript" src="jasmine/lib/jasmine.js"></script>
<script type="text/javascript" src="jasmine/lib/jasmine-html.js"></script>
</head>