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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace NotifyExample | |
{ | |
class KCC |
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
#%RAML 0.8 | |
title: New API | |
version: v1 | |
baseUri: http://api.samplehost.com | |
resourceTypes: | |
- base : | |
get?: | |
queryParameters: | |
username: |
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
#%RAML 1.0 | |
title: WebOfMe | |
version: v1-change#3 | |
mediaType: application/json | |
resourceTypes: | |
collection: | |
get: | |
queryParameters: | |
page: | |
description: Starting page |
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
function genStructuredValue(name: string, parent: hl.IHighLevelNode, pr: hl.IProperty) : string | hlimpl.StructuredValue { | |
if (pr.range() instanceof defs.ReferenceType){ | |
var t=<defs.ReferenceType>pr.range(); | |
var mockNode=jsyaml.createNode(name); | |
return new hlimpl.StructuredValue(mockNode, parent, pr); | |
// var hn = stv.toHighlevel() | |
// return hn; |
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
/classes: | |
/{className}: | |
type: { parseMember: { schema: installationGet } } | |
description: Collection of class instances | |
get: | |
description: | | |
Retreives objects. The response body is a JSON object containing all the user-provided fields, | |
plus the createdAt, updatedAt, and objectId fields. | |
body: | |
application/x-www-form-urlencoded: |
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
#%RAML 0.8 | |
title: GeoNames | |
baseUri: http://api.geonames.org | |
schemas: | |
- postal-codes-xml: !include schemas/postal-codes-xml-schema.xsd | |
- astergdem-xml: !include schemas/astergdem-xml-schema.xsd | |
- astergdem: !include schemas/astergdem-schema.json | |
- records-xml: !include schemas/records-xml-schema.xsd | |
- neighbourhood-xml: !include schemas/neighbourhood-xml-schema.xsd | |
- features-xml: !include schemas/features-xml-schema.xsd |
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
#%RAML 0.8 | |
title: New API | |
version: v1 | |
baseUri: http://api.samplehost.com | |
/helloWorld: | |
get: | |
protocols: | |
- HTTP | |
- HTTPS | |
responses: |
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
#%RAML 0.8 | |
title: New API | |
version: v1 | |
baseUri: http://api.samplehost.com | |
/helloWorld: | |
get: | |
responses: | |
200: | |
body: | |
application/json: |
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
#%RAML 0.8 | |
title: New API | |
version: v1 | |
baseUri: http://api.samplehost.com | |
/helloWorld: | |
get: | |
responses: | |
200: | |
body: | |
application/json: |
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
int main () { | |
int value = 18361; // присвоит в value 18361 | |
int outsys = 6; // присвоит в outsys 6 | |
while (value > 0) { // пока value > 0, условие вычислится в true. заходим | |
printf ("%d", value % outsys); // выведет value % outsys == 18361 % 6 == 1, 0, 0, 1, 2, 2 | |
value = (value / outsys); // запишет в value 3060, 510, 85, 14, 2, 0 | |
} | |
return 0; // выйдет | |
} |
OlderNewer