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
CSS3, please! | |
This element will receive instant changes as you edit the CSS rules on the left. Enjoy! | |
/* [toggle styling] */ | |
/* ------------------------------------------------------------- | |
CSS3, Please! The Cross-Browser CSS3 Rule Generator | |
=================================================== | |
You can edit the underlined values in this css file, | |
but don't worry about making sure the corresponding | |
values match, that's all done automagically for you. |
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
)', |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="copyright" content="" /> | |
<meta name="description" content="" /> |
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 getRandomImage(tags,callBack){ | |
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?", | |
{ tags: tags,tagmode: "any",format: "json" }, | |
function(data) { | |
var rnd = Math.floor(Math.random() * data.items.length); | |
var imgs = []; | |
for(var i=0; i<data.items.length; i++){ | |
var url = data.items[i].media.m.replace('_m','_b'); | |
imgs.push(url); | |
// var img = document.createElement("img"); |
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
stats = new Stats(); | |
stats.domElement.style.position = 'absolute'; | |
stats.domElement.style.top = '0px'; | |
document.body.appendChild(stats.domElement); | |
stats.update(); |
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
var frameW = this.compareTargetInfo.width, | |
frameH = this.compareTargetInfo.height, | |
aspect = this.targetInfo.aspect, | |
targetCss = this.targetInfo.css; | |
if(frameW/aspect < frameH){ | |
targetCss.width = frameH*aspect; | |
targetCss.height = frameH; | |
}else{ | |
targetCss.width = frameW; |
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
var interval = 1000/30; | |
var then = Date.now(); | |
var startTime = then; | |
var elapsed; | |
var frameCount = 0; | |
function animate(){ | |
now = Date.now(); | |
elapsed = now - then; |
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 | |
$to = 'heowongeun@gmail.com'; | |
$name = $_POST['name']; | |
$company = $_POST['company']; | |
$email = $_POST['email']; | |
// Email Submit | |
// Note: filter_var() requires PHP >= 5.2.0 |
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
<body onselectstart="return false"> |
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 translate3d(dom,x,y,z){ | |
dom.style.transform = "translate3d("+x+","+y+","+z+")"; | |
} |
OlderNewer