Skip to content

Instantly share code, notes, and snippets.

View bryceosterhaus's full-sized avatar
🐕

Bryce Osterhaus bryceosterhaus

🐕
View GitHub Profile
import Component from 'metal-jsx';
class Child extends Component {
created() {
this.incrementCount = this.incrementCount.bind(this);
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
setTimeout(this.incrementCount, 0);
const id = 1234;
TEXT_POST_JSON = LoopAssets.getPerson(id)
const TEXT_POST_IMAP = fromJS(TEXT_POST_JSON);
const STATE = Map().mergeIn(
['persons', id, 'data'],
fromJS(TEXT_POST_JSON)
);
sfm() {
if [ "$1" ]; then
git diff --stat --relative --name-only "$1".. | grep -E '.(tag|jsp.?|vm|ftl|js|(s)?css)$' | xargs check_sf;
else
echo -e "$fg_bold[red]Please choose a branch to compare changes to.$reset_color EG: sfm ee-6.2.x"
fi
}
import Component, {Config} from 'metal-jsx';
class MyComponent extends Component {
//...
}
MyComponent.STATE = {
count: 5,
loading: true
dependencies {
compile group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
compile group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
compile group: "javax.portlet", name: "portlet-api", version: "2.0"
compile group: "javax.servlet", name: "servlet-api", version: "2.5"
compile group: "jstl", name: "jstl", version: "1.2"
compile group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
}
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':modules:hello-react:buildWebpack'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradl
@bryceosterhaus
bryceosterhaus / urls.md
Created October 3, 2016 16:44
Github URLs
public void index() throws Exception {
JSONArray loopJobTitleCompositesJSONArray = JSONFactoryUtil.createJSONArray();
List<LoopJobTitleComposite> loopJobTitleComposites = LoopJobTitleUtil.getLoopJobTitleComposites(themeDisplay);
for (LoopJobTitleComposite loopJobTitleComposite : loopJobTitleComposites) {
loopJobTitleCompositesJSONArray.put(loopJobTitleComposite.getJSONObject());
}
renderRequest.setAttribute("loopJobTitleCompositesJSONArray", loopJobTitleCompositesJSONArray);
<symbol id="loop-icon-lock" viewBox="0 0 24 32">
<title>lock</title>
<path class="path1" d="M20 12c0-0.547 0-1.192 0-2 0-4.418-3.582-8-8-8s-8 3.582-8 8c0 0.807 0 1.453 0 2-2.21 0-4 1.79-4 4 0 4 0 4 0 8 0 2.21 1.79 4 4 4 7 0 9 0 16 0 2.21 0 4-1.79 4-4 0-4 0-4 0-8 0-2.21-1.79-4-4-4zM14 20c0 1.105-0.895 2-2 2s-2-0.895-2-2c0-1 0-1 0-2 0-1.105 0.895-2 2-2s2 0.895 2 2c0 1 0 1 0 2zM16 12c-2.96 0-5.040 0-8 0 0-0.547 0-1.192 0-2 0-2.21 1.79-4 4-4s4 1.79 4 4c0 0.807 0 1.453 0 2z"></path>
</symbol>
@bryceosterhaus
bryceosterhaus / gist:29c086ea4b5d1c3dc53caf2d6d58aede
Created November 15, 2016 17:09
Bridged React Component max stack error
ReactErrorUtils.invokeGuardedCallback @ ReactErrorUtils.js:70
executeDispatch @ EventPluginUtils.js:89
executeDispatchesInOrder @ EventPluginUtils.js:112
executeDispatchesAndRelease @ EventPluginHub.js:44
executeDispatchesAndReleaseTopLevel @ EventPluginHub.js:55
forEachAccumulated @ forEachAccumulated.js:25
processEventQueue @ EventPluginHub.js:231
runEventQueueInBatch @ ReactEventEmitterMixin.js:18
handleTopLevel @ ReactEventEmitterMixin.js:29
handleTopLevelImpl @ ReactEventListener.js:73