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
import java.util.Scanner; | |
public class CountingSort | |
{ | |
//method to get the maximum element from the array | |
private int getMax(int a[],int size) | |
{ | |
int max=a[0]; | |
for (int i = 1; i < size; i++) | |
{ |
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
*.iml | |
.gradle | |
/local.properties | |
/.idea/caches | |
/.idea/libraries | |
/.idea/modules.xml | |
/.idea/workspace.xml | |
/.idea/navEditor.xml | |
/.idea/assetWizardSettings.xml | |
.DS_Store |
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
const parser = require('@asyncapi/parser'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const main = async () => { | |
const diff = { | |
additions: [], | |
deletions: [], | |
changes: {}, | |
generate: doc => { |
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
/** | |
* | |
* Having two asynapi doc we will be trying to find changes with respect to the first | |
* basically we will be checking how much of the first document has changed | |
* | |
* We can try to change categorise the changes as | |
* - additions | |
* - deletions | |
* - changes | |
* |
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
import "./styles.css"; | |
import { usePokemon } from "./hook"; | |
export default function App() { | |
let pokemons = usePokemon(); | |
return ( | |
<div> | |
<h1>Hello CodeSandbox</h1> | |
<h2>Start editing to see some magic happen!</h2> | |
<table> | |
<tr> |
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
import {main, options} from '@asyncapi/diff/cli'; | |
import Command from '../base'; | |
import {flags} from '@oclif/command'; | |
export default class Diff extends Command { | |
static flags = options.getFlags(flags); | |
static args = options.args; |
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
import {main, options} from '@asyncapi/bundler/cli'; | |
import bundle from '@asyncapi/bundler'; | |
import Command from './base'; | |
import {Flags} from '@oclif/core'; | |
export default class Bundle extends Command { | |
static strict = false; | |
static flags = options.getFlags(Flags); | |
async run(){ |
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
// bundler integration function | |
const bundle = require('@asyncapi/bundler'); | |
async function bundler(inputs,options, output) { | |
const files = inputs.files; | |
const base = options.base; | |
const format = output.format; | |
const document = await bundle(files, { | |
base: base |
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
➜ npm run test | |
> @asyncapi/cli@0.27.2 pretest | |
> npm run build | |
> @asyncapi/cli@0.27.2 build | |
> rimraf lib && node scripts/fetch-asyncapi-example.js && tsc && echo "Build Completed" | |
Fetched ZIP file |
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
export default async function () { | |
return { | |
authentication: (servername: string, channelname: string, parsedAsyncAPISpec: AsyncAPI) { | |
if (servername === 'ws-client') { | |
return {token: process.env.TOKEN} | |
} | |
} | |
} | |
} |
OlderNewer