Skip to content

Instantly share code, notes, and snippets.

@PremnishaTW
PremnishaTW / openAIIntegration.gs
Created January 20, 2023 07:19
App script code that integrates Open AI with Google sheet to summarise text as bullet points
function summarizeContent() {
const spreadSheet = SpreadsheetApp.getActiveSpreadsheet()
const sheetName = spreadSheet.getSheetByName('Sheet1');
const numberOfContents = sheetName.getLastRow();
const completionsLink = "https://api.openai.com/v1/completions";
let paramsToSummarise = {
model: "text-davinci-003",
prompt: "",
temperature: 0,
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrApiProperties': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.openmrs.module.metadatamapping.api.MetadataMappingService org.openmrs.module.metadatamapping.util.ModuleProperties.metadataMappingService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadatamapping.MetadataMappingService' defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/metadatamapping/metadatamapping.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'metadatamapping.MetadataMappingServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metadatamapping.MetadataMappingServiceImpl' defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/metadata
ERROR - PageController.handlePath(156) |2020-05-18 08:03:06,262| No viewProvider named referenceapplication
org.openmrs.ui.framework.UiFrameworkException: No viewProvider named referenceapplication
at org.openmrs.ui.framework.page.PageFactory.getView(PageFactory.java:290)
at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:183)
at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:116)
at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86)
at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:117)
at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
@PremnishaTW
PremnishaTW / scan-workday
Created October 12, 2018 07:19
Secrurity scan for td.api.workday docker image
➜ td.api.workday git:(master) MICROSCANNER_TOKEN=OTNkY2I1NDI4NjA1 sh ~/Downloads/scan.sh eu.gcr.io/thoughtworker-experience/td.api.workday:latest
Sending build context to Docker daemon 2.095kB
Step 1/5 : FROM eu.gcr.io/thoughtworker-experience/td.api.workday:latest
latest: Pulling from thoughtworker-experience/td.api.workday
7dc0dca2b151: Already exists
96472427a9ae: Pull complete
f641d004af54: Pull complete
e13b5936c687: Pull complete
842d86f6acc0: Pull complete
@PremnishaTW
PremnishaTW / gh_notes.md
Last active August 31, 2018 06:52
Greenhouse meeting notes
  • They are working on training plan so that people team across globe know how to fill forms.
    • We have all material stored in one place
    • We will have impact session to share pain points on how it impacts to TW experience and candidate experience
    • Fixed Term and Employee does everyone understand ?
    • Email not entered in UK, recruiter’s name entered instead of candidate name
  • Which all regions use Fixed Term
  • Which regions use contractors
    • Singapore
  • Ruchika - Sharing GH roadmap
  • Spike - Offer letter
@PremnishaTW
PremnishaTW / diff.txt
Last active August 1, 2018 11:17
Questions and fields that is required by schema but not so in model
employmentDataChange:
-----------------------
grade -> derived from roleId and roleName, is this okay or does this need to be madated?
department -> Only departmentId is mandatory but not departmentName, its currently passed as 'null' ?
why is "bussinessUnit" in model, there is both buSniessUnit and buSSniessUnit (double SS)
country -> needed in schema but not in mandatory field or we are adding it
timesheetRequired -> is this always "YES"
priorEffectiveDate -> manipulated only for corrected events is that fine ?
it('should render list of movies with correct poster', () => {
const movie = {
title: "Test Movie",
imdbRating: 0.1,
poster: "poster.img",
soundEffects: ['SDDS', 'RDX']
}
const node = shallow(<MovieItem movie={movie}/>)
package spicinemas.api.db;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import spicinemas.api.config.db.JSONReader;
[
{
"Actors":"Daniel Radcliffe, Rupert Grint, Emma Watson, Richard Griffiths",
"Awards":"Nominated for 3 BAFTA Film Awards. Another 11 wins & 42 nominations.",
"BoxOffice":"$261,835,892",
"Country":"UK, USA, Germany",
"DVD":"11 Apr 2003",
"Director":"Chris Columbus",
"Genre":"Adventure, Family, Fantasy",
"Language":"English",