This file contains hidden or 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
protected <T extends UADEntity> T validate( | |
UADEntity uadEntity, Class<T> clazz) throws UADEntityException { | |
if (!(clazz.isAssignableFrom(uadEntity.getClass()))) { | |
throw new UADEntityException(); | |
} | |
return (T)uadEntity; | |
} |
This file contains hidden or 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
function grdw () { | |
local root_level | |
root_level=$(git rev-parse --show-toplevel 2>/dev/null) | |
if [[ -n "$root_level" && -f "$root_level/gradlew" ]]; then | |
root_level="$root_level/gradlew" | |
else | |
root_level=$(which gradle) | |
fi |
This file contains hidden or 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
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 | |
Buildfile: /Users/drewbrokke/Documents/liferay/liferay-portal/portal-impl/build.xml | |
build-lang: | |
build-lang-cmd: | |
[java] Exception in thread "main" java.lang.NoClassDefFoundError: com/liferay/petra/lang/CentralizedThreadLocal | |
[java] at com.liferay.portal.kernel.util.Validator.<clinit>(Validator.java:1356) | |
[java] at com.liferay.portal.tools.ArgumentsMap.get(ArgumentsMap.java:30) | |
[java] at com.liferay.portal.tools.ArgumentsMap.get(ArgumentsMap.java:24) |
This file contains hidden or 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
var intersectionArray = AArray.filter(arr1, function(item) { | |
if (!item) { | |
return false; | |
} | |
if (AArray.indexOf(arr2, item) !== -1) { | |
return true; | |
} | |
return false; |
This file contains hidden or 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
{ | |
"commands": [ | |
{ | |
"key": "i", | |
"commandArray": [ | |
"gotojira", | |
"[% COMMIT_MESSAGE %]" | |
], | |
"description": "Open Jira ticket in browser" | |
}, |
This file contains hidden or 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
01:00:09,541 ERROR [http-nio-8080-exec-7][JDBCExceptionReporter:234] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by this_.userId asc limit 10000' at line 1 | |
01:00:09,544 ERROR [http-nio-8080-exec-7][BasePersistenceImpl:258] Caught unexpected exception | |
org.hibernate.exception.SQLGrammarException: could not execute query | |
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92) | |
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66) | |
at org.hibernate.loader.Loader.doList(Loader.java:2545) | |
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276) | |
at org.hibernate.loader.Loader.list(Loader.java:2271) | |
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:119) | |
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1716) |
This file contains hidden or 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
[exec] > [email protected] postinstall /Users/drewbrokke/Documents/liferay/liferay-portal/modules/apps/frontend-theme-1975-london/frontend-theme-1975-london/node_modules/spawn-sync | |
[exec] > node postinstall | |
[exec] | |
[exec] [12:42:32] Starting 'build:themelet-js-inject'... | |
[exec] [12:42:32] gulp-inject Nothing to inject into _custom.scss. | |
[exec] [12:42:32] gulp-inject Nothing to inject into portal_normal.ftl. | |
[exec] [12:42:32] Finished 'build:themelet-css-inject' after 95 ms | |
[exec] [12:42:32] Finished 'build:themelet-js-inject' after 20 ms | |
[exec] [12:42:32] Finished 'build:themelets' after 99 ms | |
[exec] [12:42:32] Starting 'build:rename-css-dir'... |
This file contains hidden or 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
javascript: (function() { | |
if (document.getElementById('snippetSlider')) { | |
return; | |
} | |
var body = document.querySelector("body"); | |
var slider = document.createElement("input"); | |
var styleTag = document.createElement("style"); | |
var styleString = "input[type=range]#snippetSlider{-webkit-appearance:none;margin:18px 0;width:200px}input[type=range]#snippetSlider:focus{outline:0}input[type=range]#snippetSlider::-webkit-slider-runnable-track{width:200px;height:8.4px;cursor:pointer;animate:.2s;box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;background:#3071a9;border-radius:1.3px;border:.2px solid #010101}input[type=range]#snippetSlider::-webkit-slider-thumb{box-shadow:1px 1px 1px #000,0 0 1px #0d0d0d;border:1px solid #000;height:36px;width:16px;border-radius:3px;background:#fff;cursor:pointer;-webkit-appearance:none;margin-top:-14px}input[type=range]#snippetSlider:focus::-webkit-slider-runnable-track{background:#367ebd}input[type=range]#snippetSlider::-moz-range-track{width:200px;height:8.4px;c |
This file contains hidden or 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
#!/bin/zsh | |
# PS1 Stuff | |
## Reference: %F{color}text%f | |
prompt_color_blue="%F{045}" | |
prompt_color_end="%f" | |
prompt_color_gray="%F{000}" | |
prompt_color_white="%F{015}" | |
prompt_color_green="%F{010}" |
This file contains hidden or 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
"file_exclude_patterns": | |
[ | |
"*-coverage.js", | |
"*-debug.js", | |
"*-min.css", | |
"*-min.js", | |
"*.a", | |
"*.cache.html", | |
"*.class", | |
"*.db", |