This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"totalCount": "2", | |
"results": [ | |
{ | |
"name": "Batman Arkam city", | |
"node_id": "25", | |
"url": "batman-arkham-city" | |
}, | |
{ | |
"name": "Pro Evolution Soccer 2011", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Yemekler = function () { | |
var that = this; | |
this.liste = []; | |
this.ekle = function (yemekAdi) { | |
that.liste.push(yemekAdi); | |
}; | |
this.listele = function () { | |
console.log(this.liste); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |