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
public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8"); | |
public void whenAsynchronousPostRequest_thenCorrect(CommandSender sender) { | |
JSONObject json = new JSONObject(); | |
JSONObjec child = new JSONObjec(); | |
json.put("PK", "PLAYER"); | |
json.put("SK", "playerID#[email protected]"); | |
json.put("playerID", "[email protected]"); | |
// child json | |
child.put("age",10); |
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
service: service-name | |
provider: | |
name: aws | |
runtime: nodejs6.10 | |
functions: | |
myfunc: | |
handler: handler.myfunc |
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
<html ng-app='myApp'> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.js"> | |
</script> | |
<script | |
src="https://code.jquery.com/jquery-1.12.4.js" | |
integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" | |
crossorigin="anonymous"></script> | |
</head> |
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
<html ng-app='myApp'> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.js"> | |
</script> | |
<script | |
src="https://code.jquery.com/jquery-1.12.4.js" | |
integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" | |
crossorigin="anonymous"></script> | |
</head> |
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
#ifndef PWMTASK_H_ | |
#define PWMTASK_H_ | |
/* Initializes the PwmLed Task and creates all TI-RTOS objects */ | |
extern void PwmTask_create(void); | |
#endif /* PWMTASK_H_ */ |
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
/***** Includes *****/ | |
/* XDCtools Header files */ | |
#include <xdc/std.h> | |
#include <xdc/runtime/System.h> | |
/* BIOS Header files */ | |
#include <ti/sysbios/BIOS.h> | |
#include <ti/sysbios/knl/Task.h> | |
#include <ti/sysbios/knl/Semaphore.h> | |
#include <ti/sysbios/knl/Event.h> |
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
/******************************************************************************* | |
* INCLUDES | |
*/ | |
#include <string.h> | |
#include <stdio.h> | |
#include <ti/sysbios/knl/Clock.h> | |
#include <ti/sysbios/knl/Semaphore.h> | |
#include <ti/sysbios/knl/Task.h> |
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
1. Add this to .cfg | |
/* ================ System configuration ================ */ | |
var SysMin = xdc.useModule('xdc.runtime.SysMin'); | |
System.SupportProxy = SysMin; | |
2. Add this to Task() | |
System_printf("event1 is posted:%d \n",i++); | |
System_flush(); |
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
// Create one-shot clocks for internal periodic events. | |
Util_constructClock(&myPeriodicClock0,my_clockHandler0,MYCLOCK0_PERIOD,0,false, MY_EVENT0); | |
Clock_Handle h_myClock0 = Clock_handle(&myPeriodicClock0); | |
Clock_start(h_myClock0); | |
// To use Event module add the following to the .cfg | |
var evt = xdc.useModule('ti.sysbios.knl.Event'); | |
// Creation of Event instance |
NewerOlder