A Pen by yoichi kobayashi on CodePen.
This file contains 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
function rastgele (x,y) { | |
/*x ten y'ye kadar rastgele sayı ver*/ | |
return ~~(Math.random() * y) + x; | |
} |
This file contains 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
function foo(a, b) | |
{ | |
a = typeof a !== 'undefined' ? a : 42; | |
b = typeof b !== 'undefined' ? b : 'default_b'; | |
} |
This file contains 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
html, body { | |
width: 100%; | |
height: 100%; | |
margin: 0px; | |
overflow:hidden; | |
} | |
body { | |
background-image: url("/gradient.jpg"); | |
background-size:cover | |
} |
This file contains 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
<?php | |
$context = stream_context_create(array('http' => array('header' => 'Accept: application/xml'))); | |
$url = 'xml adresi'; | |
$xml = file_get_contents($url, true, $context); | |
$xml = simplexml_load_string($xml); | |
$xml->getName(); //bu son nod da kullanılıyor.böyle kullanırsan hata verir. | |
$xml->children; //bu bi alt nodu buluyor. | |
?> | |
This file contains 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 (c) 2011 Alexei Kourbatov, www.JavaScripter.net | |
// function leastFactor(n) returns: | |
// * the smallest prime that divides n | |
// * NaN if n is NaN or Infinity | |
// * 0 if n is 0 | |
// * 1 if n=1, n=-1, or n is not an integer | |
leastFactor = function(n) { | |
if (isNaN(n) || !isFinite(n)) return NaN; |
This file contains 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
<html> | |
<head> | |
<script language="javascript" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.4/p5.js"></script> | |
<!-- uncomment lines below to include extra p5 libraries --> | |
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.4/addons/p5.dom.js"></script> | |
<script language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.4/addons/p5.sound.min.js"></script> | |
<!--<script language="javascript" src="../addons/p5.sound.js"></script>--> | |
<script language="javascript" type="text/javascript" src="sketch3.js"></script> | |
<script type="text/javascript"> |
This file contains 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 src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.4/p5.js"></script> |
canvas animated hue background.
Forked from Tiffany Rayside's Pen Color Embraced.
A Pen by Captain Anonymous on CodePen.
This file contains 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
canvas { | |
margin-left: 25px; | |
margin-top: 25px; | |
border-radius: 10%; | |
-webkit-animation: spin 100s linear infinite; | |
-moz-animation: spin 100s linear infinite; | |
animation: spin 100s linear infinite; | |
} | |
@-moz-keyframes spin { |
OlderNewer