Skip to content

Instantly share code, notes, and snippets.

View bryceosterhaus's full-sized avatar
🐕

Bryce Osterhaus bryceosterhaus

🐕
View GitHub Profile
class MyComponent extends Component {
render() {
return (
<div class="foo"></div>
);
}
}
<MyComponent elementClasses="bar" />
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"liferay"
],
@bryceosterhaus
bryceosterhaus / test.md
Last active October 31, 2017 21:10
Faro new API
# Submit pull-request
submit() {
jira-ticket "$2" | submit-with-title "$1" "$2"
}
submit-with-title() {
pipeVal=$(< /dev/stdin);
branch=$(get_branch)
------WebKitFormBoundaryQ2twA8W3R91O7RY4
Content-Disposition: form-data; name="contactsMappingsJSON"
[{"contactsFieldName":"firstName","name":"firstName"},{"contactsFieldName":"lastName","name":"lastName"},{"contactsFieldName":"emailAddress","name":"emailAddress"}]
------WebKitFormBoundaryQ2twA8W3R91O7RY4
Content-Disposition: form-data; name="createStaticSegment"
true
------WebKitFormBoundaryQ2twA8W3R91O7RY4
Content-Disposition: form-data; name="extraData"
package com.liferay.osb.faro.contacts.model.constants;
import java.util.HashMap;
import java.util.Map;
/**
* @author Matthew Kong
*/
public class ContactsProviderConstants {
http://localhost:8080/api/jsonws/osbfaroweb.contactscardcontroller/get
------WebKitFormBoundary3kDNEZqF9jaGsLz8
Content-Disposition: form-data; name="contactsCardTemplateName"
Segment Membership
------WebKitFormBoundary3kDNEZqF9jaGsLz8
Content-Disposition: form-data; name="contactsCardTemplateSettings"
{"order":1,"showTitle":true}
cardTemplate: {
id
name
showTitle
contactsMappings: [
{
id
name: 'job_title'
}
]
<div id="container"></div>
<script>
const app = window.App() // this would need to both instantiate your app and also return the instance of it
app.doSomeMethod();
</script>