Wanted to get some interactivity in my portfolio-images, this is one of the ideas that I had and something that I will use for the site. (Only works in webkit at the moment)
A Pen by Patrik Hjelm on CodePen.
/* | |
Simple recipe for using these together. Use npm to install: | |
npm install -g express | |
npm install -g hbs | |
*/ | |
/* | |
Import and config like so: | |
*/ |
Wanted to get some interactivity in my portfolio-images, this is one of the ideas that I had and something that I will use for the site. (Only works in webkit at the moment)
A Pen by Patrik Hjelm on CodePen.
// Avoid `console` errors in browsers that lack a console. | |
(function() { | |
var method; | |
var noop = function () {}; | |
var methods = [ | |
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', | |
'timeStamp', 'trace', 'warn' | |
]; |
/* | |
Generally helpful method for making https calls to your api | |
*/ | |
var querystring = require('querystring'); | |
var https = require('https'); | |
exports.performRequest = function(host, endpoint, method, data, success) { | |
var dataString = JSON.stringify(data); | |
var headers = {}; |
{ | |
"name": "", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "", |
"use strict"; | |
var gulp = require('gulp'); | |
var connect = require('gulp-connect'); //Runs a local dev server | |
var open = require('gulp-open'); //Open a URL in a web browser | |
var browserify = require('browserify'); // Bundles JS | |
var reactify = require('reactify'); // Transforms React JSX to JS | |
var source = require('vinyl-source-stream'); // Use conventional text streams with Gulp | |
var concat = require('gulp-concat'); //Concatenates files | |
var lint = require('gulp-eslint'); //Lint JS files, including JSX |
console.log('Loading event'); | |
var Q = require('q'); | |
var aws = require('aws-sdk'); | |
var cloudfront = new aws.CloudFront(); | |
exports.handler = function (event, context) { | |
//_log('Received event: ', event); | |
var bucket = event.Records[0].s3.bucket.name; |
<body> | |
<h1> | |
Solution - Token Authentication Using the Nuxeo JS Client | |
</h1> | |
<h2> | |
Your Goal | |
</h2> |
#!/usr/bin/env node | |
'use strict' | |
const Nuxeo = require('nuxeo'); | |
// let baseURL = 'http://localhost:8080/nuxeo/'; | |
let baseURL = 'http://localhost:8080/nuxeo/'; | |
// let username = 'Administrator'; | |
// let password = 'Administrator'; |