[ Launch: Tributary inlet ] 5347623 by dfernandez79
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
javascript:(function (d,w) { var s; if (!w.__toggleColGrid){s=d.createElement('script');s.src='https://rawgit.com/dfernandez79/557bff27f0b6223b2a9b/raw/column-grid.js';d.body.appendChild(s);s.onload = function() { w.__toggleColGrid() }; }else{w.__toggleColGrid();}})(document,window); |
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
(function (global) { | |
'use strict'; | |
function createBaselineGrid(height, lines, bgColor, halfLineColor) { | |
var | |
halfHeight = height/2, | |
grid = document.createElement('div'); | |
grid.id = '___baselineGrid'; | |
grid.style.position='absolute'; |
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
npm install -g yo generator-ui-prototype grunt-cli bower |
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
// 1. Overwrite your Backbone extend with barman.Nil.extend | |
Backbone.Model.extend = | |
Backbone.Collection.extend = | |
Backbone.Router.extend = | |
Backbone.View.extend = | |
Backbone.History.extend = barman.Nil.extend; | |
// 2. Now you can use traits (a special case of mixin) when using extend: |
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
HTTP/1.1 200 OK | |
Access-Control-Allow-Origin: http://myapp.com | |
Content-Type: application/json; charset=utf-8 |
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
GET /api/list HTTP/1.1 | |
Host: myapp.com | |
User-Agent: Mozilla/5.0 | |
Accept: */* | |
Accept-Language: en-US,en;q=0.5 | |
Accept-Encoding: gzip, deflate | |
Connection: keep-alive | |
Origin: http://myapp.com |
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
$.getJSON('http://myapi.com/api/list', | |
function (data) { console.log(data); }); |
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
$(function () { | |
var ul = $('<ul></ul>'); | |
$.getJSON('http://corsexample.cloudhub.io/example/values') | |
.then(function (data) { | |
data.forEach(function (item) { | |
ul.append('<li>'+item+'</li>'); }) }); | |
$('body').append(ul); | |
}); |
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
package com.mulesoft.blog.example; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; | |
@Path("/example") | |
public class ExampleResource { | |
@GET |