forked from Aniket965/Hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Added Fibonacci Program in Main"
- Loading branch information
Showing
671 changed files
with
49,236 additions
and
277 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"Hello world!"r\ | ||
o;!?l< |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Hello world in ACPI Source Language | ||
|
||
Scope(\) { | ||
Method(_WAK) { | ||
Store ("Hello World", Debug) | ||
Return(Package(2){0x00000000,0}) | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
with Ada.Text_IO, Ada.Integer_Text_IO; | ||
use Ada; | ||
|
||
procedure Solution is | ||
begin | ||
Ada.Text_IO.Put_Line("Hello-world"); | ||
|
||
|
||
end Solution; | ||
|
||
--thank in advance for hackerank XD |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BEGIN DISPLAY("HELLO WORLD!") END. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Setup an AWS account: https://aws.amazon.com/free | ||
|
||
Lambda code: https://github.com/alexa/skill-sample-nodejs-hello-world | ||
|
||
Alexa Docs: https://developer.amazon.com/alexa-skills-kit | ||
|
||
Alexa Console (after signup): https://developer.amazon.com/alexa/console/ask | ||
|
||
Connecting Alexa and Lambda walkthrough (in depth): https://tutorials.botsfloor.com/how-to-build-a-hello-world-alexa-skill-bcea0d01ee8f | ||
|
||
Walkthrough for beginners: https://www.youtube.com/watch?v=V0PwCFrIfwg |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/* eslint-disable func-names */ | ||
/* eslint-disable no-console */ | ||
|
||
const Alexa = require('ask-sdk-core'); | ||
|
||
const LaunchRequestHandler = { | ||
canHandle(handlerInput) { | ||
return handlerInput.requestEnvelope.request.type === 'LaunchRequest'; | ||
}, | ||
handle(handlerInput) { | ||
const speechText = 'Welcome to the Alexa Skills Kit, you can say hello!'; | ||
|
||
return handlerInput.responseBuilder | ||
.speak(speechText) | ||
.reprompt(speechText) | ||
.withSimpleCard('Hello World', speechText) | ||
.getResponse(); | ||
}, | ||
}; | ||
|
||
const HelloWorldIntentHandler = { | ||
canHandle(handlerInput) { | ||
return handlerInput.requestEnvelope.request.type === 'IntentRequest' | ||
&& handlerInput.requestEnvelope.request.intent.name === 'HelloWorldIntent'; | ||
}, | ||
handle(handlerInput) { | ||
const speechText = 'Hello World!'; | ||
|
||
return handlerInput.responseBuilder | ||
.speak(speechText) | ||
.withSimpleCard('Hello World', speechText) | ||
.getResponse(); | ||
}, | ||
}; | ||
|
||
const HelpIntentHandler = { | ||
canHandle(handlerInput) { | ||
return handlerInput.requestEnvelope.request.type === 'IntentRequest' | ||
&& handlerInput.requestEnvelope.request.intent.name === 'AMAZON.HelpIntent'; | ||
}, | ||
handle(handlerInput) { | ||
const speechText = 'You can say hello to me!'; | ||
|
||
return handlerInput.responseBuilder | ||
.speak(speechText) | ||
.reprompt(speechText) | ||
.withSimpleCard('Hello World', speechText) | ||
.getResponse(); | ||
}, | ||
}; | ||
|
||
const CancelAndStopIntentHandler = { | ||
canHandle(handlerInput) { | ||
return handlerInput.requestEnvelope.request.type === 'IntentRequest' | ||
&& (handlerInput.requestEnvelope.request.intent.name === 'AMAZON.CancelIntent' | ||
|| handlerInput.requestEnvelope.request.intent.name === 'AMAZON.StopIntent'); | ||
}, | ||
handle(handlerInput) { | ||
const speechText = 'Goodbye!'; | ||
|
||
return handlerInput.responseBuilder | ||
.speak(speechText) | ||
.withSimpleCard('Hello World', speechText) | ||
.getResponse(); | ||
}, | ||
}; | ||
|
||
const SessionEndedRequestHandler = { | ||
canHandle(handlerInput) { | ||
return handlerInput.requestEnvelope.request.type === 'SessionEndedRequest'; | ||
}, | ||
handle(handlerInput) { | ||
console.log(`Session ended with reason: ${handlerInput.requestEnvelope.request.reason}`); | ||
|
||
return handlerInput.responseBuilder.getResponse(); | ||
}, | ||
}; | ||
|
||
const ErrorHandler = { | ||
canHandle() { | ||
return true; | ||
}, | ||
handle(handlerInput, error) { | ||
console.log(`Error handled: ${error.message}`); | ||
|
||
return handlerInput.responseBuilder | ||
.speak('Sorry, I can\'t understand the command, say again.') | ||
.reprompt('Sorry, I can\'t understand the command, say again.') | ||
.getResponse(); | ||
}, | ||
}; | ||
|
||
const skillBuilder = Alexa.SkillBuilders.custom(); | ||
|
||
exports.handler = skillBuilder | ||
.addRequestHandlers( | ||
LaunchRequestHandler, | ||
HelloWorldIntentHandler, | ||
HelpIntentHandler, | ||
CancelAndStopIntentHandler, | ||
SessionEndedRequestHandler | ||
) | ||
.addErrorHandlers(ErrorHandler) | ||
.lambda(); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "hello-world", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"ask-sdk-core": "^2.0.0", | ||
"ask-sdk-model": "^1.0.0" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"project": { | ||
"name": "angular" | ||
}, | ||
"apps": [ | ||
{ | ||
"root": "src", | ||
"outDir": "dist", | ||
"assets": [ | ||
"assets", | ||
"favicon.ico" | ||
], | ||
"index": "index.html", | ||
"main": "main.ts", | ||
"polyfills": "polyfills.ts", | ||
"test": "test.ts", | ||
"tsconfig": "tsconfig.app.json", | ||
"testTsconfig": "tsconfig.spec.json", | ||
"prefix": "app", | ||
"styles": [ | ||
"styles.css" | ||
], | ||
"scripts": [], | ||
"environmentSource": "environments/environment.ts", | ||
"environments": { | ||
"dev": "environments/environment.ts", | ||
"prod": "environments/environment.prod.ts" | ||
} | ||
} | ||
], | ||
"e2e": { | ||
"protractor": { | ||
"config": "./protractor.conf.js" | ||
} | ||
}, | ||
"lint": [ | ||
{ | ||
"project": "src/tsconfig.app.json", | ||
"exclude": "**/node_modules/**" | ||
}, | ||
{ | ||
"project": "src/tsconfig.spec.json", | ||
"exclude": "**/node_modules/**" | ||
}, | ||
{ | ||
"project": "e2e/tsconfig.e2e.json", | ||
"exclude": "**/node_modules/**" | ||
} | ||
], | ||
"test": { | ||
"karma": { | ||
"config": "./karma.conf.js" | ||
} | ||
}, | ||
"defaults": { | ||
"styleExt": "css", | ||
"component": {} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/dist-server | ||
/tmp | ||
/out-tsc | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# e2e | ||
/e2e/*.js | ||
/e2e/*.map | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Angular | ||
|
||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.1. | ||
|
||
## Development server | ||
|
||
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files. | ||
|
||
## Code scaffolding | ||
|
||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
|
||
## Build | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. | ||
|
||
## Running unit tests | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
||
## Running end-to-end tests | ||
|
||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). | ||
|
||
## Further help | ||
|
||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md). |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { AppPage } from './app.po'; | ||
|
||
describe('angular App', () => { | ||
let page: AppPage; | ||
|
||
beforeEach(() => { | ||
page = new AppPage(); | ||
}); | ||
|
||
it('should display welcome message', () => { | ||
page.navigateTo(); | ||
expect(page.getParagraphText()).toEqual('Welcome to app!'); | ||
}); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { browser, by, element } from 'protractor'; | ||
|
||
export class AppPage { | ||
navigateTo() { | ||
return browser.get('/'); | ||
} | ||
|
||
getParagraphText() { | ||
return element(by.css('app-root h1')).getText(); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../out-tsc/e2e", | ||
"baseUrl": "./", | ||
"module": "commonjs", | ||
"target": "es5", | ||
"types": [ | ||
"jasmine", | ||
"jasminewd2", | ||
"node" | ||
] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Karma configuration file, see link for more information | ||
// https://karma-runner.github.io/1.0/config/configuration-file.html | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
basePath: '', | ||
frameworks: ['jasmine', '@angular/cli'], | ||
plugins: [ | ||
require('karma-jasmine'), | ||
require('karma-chrome-launcher'), | ||
require('karma-jasmine-html-reporter'), | ||
require('karma-coverage-istanbul-reporter'), | ||
require('@angular/cli/plugins/karma') | ||
], | ||
client:{ | ||
clearContext: false // leave Jasmine Spec Runner output visible in browser | ||
}, | ||
coverageIstanbulReporter: { | ||
reports: [ 'html', 'lcovonly' ], | ||
fixWebpackSourcePaths: true | ||
}, | ||
angularCli: { | ||
environment: 'dev' | ||
}, | ||
reporters: ['progress', 'kjhtml'], | ||
port: 9876, | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
autoWatch: true, | ||
browsers: ['Chrome'], | ||
singleRun: false | ||
}); | ||
}; |
Oops, something went wrong.