A brief document explaining when to use props and when to use state.
React context
es = require("event-stream") | |
es.concat( | |
gulp.src('*.coffee') | |
.pipe(coffee()), | |
gulp.src('*.js') | |
).pipe(concat('all.js')) | |
.pipe(gulp.dest('.')) |
/** | |
* | |
* MOVED TO: https://github.com/iFind/html5MultidimensionalStorage | |
* | |
* This methods extends the default HTML5 Storage object and add support | |
* to set and get multidimensional data | |
* | |
* @example Storage.setObj('users.albums.sexPistols',"blah"); | |
* @example Storage.setObj('users.albums.sexPistols',{ sid : "My Way", nancy : "Bitch" }); | |
* @example Storage.setObj('users.albums.sexPistols.sid',"Other songs"); |
A brief document explaining when to use props and when to use state.
React context
@GET
@Path("/attachments/{attachmentId}/{version}")
public Response downloadAttachment(@PathParam("attachmentId") Long attachmentId, @PathParam("version") Long version) {
Attachment attachment = AttachmentAPI.get(attachmentId, version);
// Extract the content and the name
byte[] content = attachment.getContent();
String fileName = attachment.getFileName();
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | |
<meta charset="utf-8"> | |
<link rel="apple-touch-icon" href="/assets/icon.png"/> | |
<link rel="apple-touch-icon" sizes="72x72" href="/assets/icon.png"/> | |
<link rel="apple-touch-icon" sizes="114x114" href="/assets/icon.png"/> |
{ test: /\.css$/, loader: "style!css!postcss" }
postcss: {
defaults: [
require('autoprefixer')({browsers: ['> 1%']}),
require('csswring'),
require('postcss-nested'),
The MIT License (MIT) | |
Copyright (c) 2014 Tomas Kafka | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |