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
<div itemscope itemtype="http://schema.org/Product"> | |
<span itemprop="name">Kenmore White 17" Microwave</span> | |
<img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' /> | |
<div itemprop="aggregateRating" | |
itemscope itemtype="http://schema.org/AggregateRating"> | |
Rated <span itemprop="ratingValue">3.5</span>/5 | |
based on <span itemprop="reviewCount">11</span> customer reviews | |
</div> | |
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> |
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 yourUrl = 'http://maps.googleapis.com/maps/api/directions/json?origin=enschede&destination=arnhem&sensor=false'; | |
var xhReq = new XMLHttpRequest(); | |
xhReq.open("GET", yourUrl, false); | |
xhReq.send(null); | |
var jsonObject = JSON.parse(xhReq.responseText); | |
var lat = jsonObject.results[0].geometry.location.lat; | |
var lng = jsonObject.results[0].geometry.location.lng; | |
var afstand = parseFloat(jsonObject.routes[0].legs[0].distance.text); |
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
getDistance = function(start, end) { | |
var start = start, | |
end = end, | |
xhReq = new XMLHttpRequest(), | |
geoUrl = 'http://maps.googleapis.com/maps/api/directions/json?origin='+start+'&destination='+end+'&sensor=false'; | |
xhReq.open("GET", geoUrl, false); | |
xhReq.send(null); | |
var jsonObject = JSON.parse(xhReq.responseText); |
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
// | |
// CRUD API for RESTful services with URLs similar 'http://services.mysite.com/classes/Book'. | |
// | |
// e.g. parse.get( | |
// "Book", | |
// 123, | |
// function(response){ console.log(response.toString());} | |
// ); | |
// | |
services.factory('parse', function($rootScope, $http) { |
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 paramList:Object=this.root.loaderInfo.parameters; | |
clickme.addEventListener(MouseEvent.CLICK, openURL); | |
function openURL(evtObj:MouseEvent):void | |
{ | |
var request:URLRequest = new URLRequest(paramList["ClickTag"]); | |
navigateToURL(request, "_blank"); | |
} |
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
package | |
{ | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.GeolocationEvent; | |
import flash.sensors.Geolocation; | |
import flash.text.TextField; | |
import flash.text.TextFormat; |
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 | |
// Extra column at media library | |
add_filter("manage_upload_columns", 'upload_columns'); | |
add_action("manage_media_custom_column", 'media_custom_columns', 0, 2); | |
function upload_columns($columns) { | |
unset($columns['parent']); | |
$columns['better_parent'] = "Parent"; |
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 | |
/** | |
* Laravel Generator | |
* | |
* Rapidly create models, views, migrations + schema, assets, tests, etc. | |
* | |
* USAGE: | |
* Add this file to your Laravel application/tasks directory | |
* and call the methods with: php artisan generate:[model|controller|migration] [args] |
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 m = angular.module('myApp', []); | |
m.config(function($interpolateProvider) { $interpolateProvider.startSymbol('(('); $interpolateProvider.endSymbol('))'); }); | |
return m; |
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
define(['editor', 'settings', 'tags', 'bootstrap'], function (editor, settings, tags) { | |
return { | |
initialize: function () { | |
editor.initialize(); | |
tags.initialize(); | |
settings.initialize(); | |
} | |
}; | |
}); |