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 charset="ISO-8859-1"> | |
| </head> | |
| <body> | |
| <h1>OAuth2 Test</h1> | |
| <script type="text/javascript" src="js/jquery-1.8.3.js"></script> | |
| <script type="text/javascript" src="js/jso.js"></script> |
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
| # Welcome to Serverless! | |
| # | |
| # This file is the main config file for your service. | |
| # It's very minimal at this point and uses default values. | |
| # You can always add more config options for more control. | |
| # We've included some commented out config examples here. | |
| # Just uncomment any of them to get that config option. | |
| # | |
| # For full config options, check the docs: | |
| # docs.serverless.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
| 'use strict'; | |
| module.exports.hello = (event, context, callback) => { | |
| const response = { | |
| statusCode: 200, | |
| body: JSON.stringify({ | |
| message: 'Go Serverless v1.0! Your function executed successfully!', | |
| input: event, | |
| }), | |
| }; |
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
| service: taco-gallery | |
| provider: | |
| name: aws | |
| runtime: nodejs4.3 | |
| resources: | |
| Resources: | |
| TacosDB: |
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 AWS = require("aws-sdk"); | |
| var uuid = require('uuid'); | |
| var dynamodb = require('serverless-dynamodb-client'); | |
| class TacoGallery{ | |
| constructor(){ | |
| this.db = dynamodb.doc; | |
| } | |
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
| { | |
| "name": "taco-gallery", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "handler.js", | |
| "scripts": { | |
| "install": "docker pull lambci/lambda", | |
| "setup": "./node_modules/.bin/sls config credentials --provider aws --key KEY --secret SECRET", | |
| "start": "./node_modules/.bin/sls offline start -r us-east-1 --noTimeout", | |
| "install:dynamodb": "./node_modules/.bin/sls dynamodb install", |
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 uuid from 'uuid'; | |
| import dynamodb from 'serverless-dynamodb-client'; | |
| import {ValidationUtils} from './Utils'; | |
| class TacoGallery{ | |
| constructor(){ | |
| this.db = dynamodb.doc; | |
| this.v = new ValidationUtils(); | |
| } | |
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
| /** | |
| * Created by Pedro Marquez on 6/23/2017. | |
| */ | |
| var path = require('path'); | |
| var request = require('request') | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| require('jsdom-global')() | |
| const jsdom = require("jsdom"); | |
| const { JSDOM } = jsdom; |
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 Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| tagName:"p", | |
| classNames: ["x-input"], | |
| attributeBindings: ["camelLabel:data-field-name"], | |
| camelLabel: Ember.computed('label',function(){ | |
| var label = this.get("label"); | |
| return label ? label.dasherize() : label; | |
| }), |
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
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
OlderNewer