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
| export const parseQueryParameters = (url) => { | |
| const parsed = {} | |
| const matches = url.match("\\?([^#]+)") | |
| if (matches && matches.length >= 2) { | |
| const query = matches[1] | |
| query.split('&').forEach((params) => { | |
| const frag = params.split('=') | |
| parsed[frag[0]] = frag[1] | |
| }) |
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
| import com.sun.jersey.api.client.Client; | |
| import com.sun.jersey.api.client.WebResource; | |
| import lombok.Data; | |
| import org.codehaus.jackson.map.ObjectMapper; | |
| import javax.ws.rs.core.MediaType; | |
| import java.io.IOException; | |
| /** | |
| * A easy to use class to facilitate calling the IFTTT Maker API (https://ifttt.com/maker) to trigger IFTTT recipes. |
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
| app.directive('vodSvg', function() { | |
| return { | |
| restrict: 'E', | |
| replace: 'true', | |
| template: '<object type="image/svg+xml" data=""></object>', | |
| link: function(scope, element, attrs) { | |
| var paintSvg = function (svgElem){ |
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> | |
| <head> | |
| <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> | |
| <title> | |
| My Page Title | |
| </title> | |
| <meta content="" name="steak" /> | |
| <link href="http://www.w3.org/StyleSheets/Core/Modernist" media="all" rel="stylesheet" type="text/css" /> | |
| <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script><![endif]--> |