I hereby claim:
- I am indaco on github.
- I am indaco (https://keybase.io/indaco) on keybase.
- I have a public key ASDoSawJjquVTtGi6eb9DT0S-QNbSLLyKeWyOBrAkmOBwAo
To claim this, I am signing this object:
... | |
ByteArrayInputStream pdfInputStream = null; | |
try { | |
IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler(); | |
IWDPDFDocumentCreationContext pdfDocCreationContext = pdfDocumentHandler.getDocumentCreationContext(); | |
String templateUrl = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(),this.xdpSource); | |
InputStream template = new FileInputStream(templateUrl); | |
ByteArrayOutputStream templateStream = inputToOutputStream(template); | |
... | |
try { | |
IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler(); | |
IWDPDFDocumentCreationContext pdfNewDocContext = pdfDocumentHandler.getDocumentCreationContext(); | |
String templateUrl = WDURLGenerator.getPublicResourcePath(wdComponentAPI.getDeployableObjectPart(), "IF.xdp"); | |
InputStream template = new FileInputStream(templateUrl); | |
byte[] byteFileArray = new byte[template.available()]; | |
template.read(byteFileArray); | |
// SAPUI5 CONTROLLER | |
sap.ui.controller("sample.ContactList", { | |
// ... | |
onInit: function() { | |
var oModel = new sap.ui.model.odata.ODataModel("http://gw.esworkplace.sap.com/sap/opu/sdata/iwcnt/contact", false, 'user', 'pass'); | |
this.getView().setModel(oModel); | |
var oTable = this.byId("contacts_table"); |
""" | |
Call the Predix Time Series REST APIs to retrieve data and show on a chart | |
""" | |
import pandas as pd | |
import requests | |
import json | |
import base64 | |
from bokeh.io import output_notebook | |
from bokeh.charts import TimeSeries, output_file, show |
url = '<predix-time-series-query-url-here>'; | |
options = weboptions('HeaderFields',{'Predix-Zone-Id' '<predix-time-series-one-id-here>';'Authorization' '<token-here>';'Content-Type' 'application/json';'Request-Method' 'post'}); | |
payload ='{"tags":[{"name":"<tag-name-here>"}],"start":"1y-ago"}'; | |
data = webwrite(url, payload, options); | |
plot(data.tags.results.values(:,1), data.tags.results.values(:,2)); |
I hereby claim:
To claim this, I am signing this object:
A named colors approach for color palettes from Color And Fonts by Michael Andreuzza to be used with TailwindCSS
// tailwind.config.js
:root { | |
/* Slate */ | |
--slate-50: hsl(210deg 40% 98%); | |
--slate-100: hsl(210deg 40% 96.1%); | |
--slate-200: hsl(214.3deg 31.8% 91.4%); | |
--slate-300: hsl(212.7deg 26.8% 83.9%); | |
--slate-400: hsl(215deg 20.2% 65.1%); | |
--slate-500: hsl(215.4deg 16.3% 46.9%); | |
--slate-600: hsl(215.3deg 19.3% 34.5%); | |
--slate-700: hsl(215.3deg 25% 26.7%); |
:root { | |
/* Slate */ | |
--slate-50: #f8fafc; | |
--slate-100: #f1f5f9; | |
--slate-200: #e2e8f0; | |
--slate-300: #cbd5e1; | |
--slate-400: #94a3b8; | |
--slate-500: #64748b; | |
--slate-600: #475569; | |
--slate-700: #334155; |
/* How to use the variables? | |
* | |
* background-color: hsl(var(--slate-100)); | |
* background-color: hsl(var(--green-700) / 0.5); | |
*/ | |
:root { | |
/* Slate */ | |
--slate-50: 210 40% 98%; | |
--slate-100: 210 40% 96.1%; | |
--slate-200: 214.3 31.8% 91.4%; |