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
| curl \ | |
| -d 'client_id=YOUR_KEYCLOAK_CLIENT' \ | |
| -d 'username=YOUR_USERNAME' \ | |
| -d 'password=YOUR_PASSWORD' \ | |
| -d 'grant_type=password' \ | |
| 'https://YOUR_KEYCLOAK_SERVER_HOST/auth/realms/YOUR_REALM/protocol/openid-connect/token' \ | |
| | python -m json.tool |
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
| var express = require('express'); | |
| var cookieParser = require('cookie-parser'); | |
| var session = require('express-session'); | |
| var flash = require('express-flash'); | |
| var handlebars = require('express-handlebars') | |
| var app = express(); | |
| var sessionStore = new session.MemoryStore; | |
| // View Engines |
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
| var spawn = require('child_process').spawn; | |
| var Stream = require('stream'); | |
| /** | |
| * crops and resizes images to our desired size | |
| * @param {Stream} streamIn in stream containing the raw image | |
| * @return {Stream} | |
| */ | |
| exports.cropImage = function(streamIn){ |
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
| // This is my attempt at a Jquery UI Widget boilerplate which expands upon the others I have | |
| // seen. Of particular interest to me is establishing best practices for instance, widget and | |
| // global; variables, arrays, object, functions.... | |
| (function($, undefined){ | |
| // locals - accessible by all instances but not accessible outside this closure |