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
$(document).ready(function(){ | |
getMembers(); | |
}); | |
function getMembers() { | |
$('#list').html(" "); | |
$("#monitor").html("<span>loading...</span>"); | |
$.ajax({ | |
type: 'GET', |
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"> | |
<title>hello-knockout-js</title> | |
</head> | |
<body> | |
<!-- syntax: data-bind="bindingName: bindingValue"--> | |
<p>Day: <input data-bind="value: dayOfWeek" /></p> |
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"> | |
<title>hello-three-js</title> | |
</head> | |
<body> | |
<script type='text/javascript' src='three.min.js'></script> |
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"/> | |
<title>Basic Greensock</title> | |
<script src="minified/TweenMax.min.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
(function(window) {//catch the window argument | |
//public variables, outside the constructors | |
Car.prototype.kpl = 20;//"kilometers per liter" | |
//a public static property example | |
Car.music_player = "Kenwood"; | |
function Car(make, model, color) {//the object constructor | |
/* |
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
<audio id="audioplayer" controls="controls" autoplay="autoplay" data-bind="attr:{src: selectedFile}"></audio> | |
<p>Selected song: <span id="audioplayer" data-bind="text: selectedSong"></span></p> | |
<img data-bind="attr:{src: selectedCover}" width="200"/> | |
<tbody data-bind="foreach: availableSongs"> | |
<tr> | |
<td data-bind="text: artist"></td> | |
<td><img data-bind="attr:{src: cover}" width="60"/> <span data-bind="text: album"></span></td> | |
<td data-bind="text: title"></td> | |
<td><a href="#" data-bind="click: $root.selectSong">PLAY</a></td> |
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
<video autoplay></video> | |
<script type="text/javascript"> | |
function hasGetUserMedia() { | |
// Note: Opera is unprefixed. | |
return !!(navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); | |
} | |
if(hasGetUserMedia()) console.log("Good to go!"); | |
else alert("boohoo... getUserMedia() is not supported in your browser.. :("); |
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
<tbody data-bind="foreach: photoList"> | |
<tr> | |
<td> | |
<span>user: </span><strong><span data-bind="text: user.username"></span></strong><br/> | |
<span data-bind="text: 'created_time at '+created_time"></span><br/> | |
</td> | |
<td> | |
<img data-bind="attr:{src: images.thumbnail.url}" width="90"/> | |
<a href="#myModal" role="button" class="btn btn-primary btn-large" data-toggle="modal" data-bind="click: $root.showLargeImage">View</a> | |
</td> |
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 | |
require '../facebook-php-sdk/src/facebook.php'; | |
$facebook = new Facebook(array( | |
'appId' => 'YOUR_APP_ID', | |
'secret' => 'YOUR_APP_SECRET', | |
)); | |
$redirecturl = "REDIRECT_URL_AFTER_LOGIN_(THIS_FILE_FOR_THIS_EXAMPLE)"; |
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 | |
function CreateThumb($file, $photo_url) { | |
$square_size = 160; | |
$quality = 100; | |
//GET THE SOURCE IMAGE'S METADATA | |
if($photo_url!="") list($width, $height, $type, $attr) = getimagesize($photo_url); |
OlderNewer