I hereby claim:
- I am tcollins on github.
- I am tcollins (https://keybase.io/tcollins) on keybase.
- I have a public key ASBCBveVOc_48EH6yx5x9ngezYY3WwtNHp4J5GC4D2COcAo
To claim this, I am signing this object:
| #!/bin/sh | |
| ### Usage ./send-slack.sh {TITLE} {TEXT} [Optional color hex value] | |
| ### Example ./send-slack.sh "Your Title Goes Here" "Text goes here" "#ff00ff" | |
| TITLE=$1 | |
| TEXT=$2 | |
| COLOR=${3:-"#007dbc"} | |
| INNER_TEMPLATE='{"color":"%s","title":"%s","fallback":"%s","text":"%s"}' |
| function awesomeLibFunction(){ | |
| return 'this is so amazing' | |
| } |
| var WIDGET_CHART_1 = { | |
| buildChart: function(){ | |
| var self = WIDGET_CHART_1; | |
| if(typeof Chart !== "undefined"){ | |
| self.doBuildChart(); | |
| } | |
| else{ | |
| setTimeout(self.buildChart, 50); |
| console.log('widget-scripts-1.js is executing') | |
| alert('It is working!') |
| FILES=zips/*.zip | |
| for f in $FILES | |
| do | |
| DIRNAME=`basename $f .zip` | |
| mkdir $DIRNAME | |
| unzip $f -d $DIRNAME | |
| done |
I hereby claim:
To claim this, I am signing this object:
| If you use the findAll(Specification, Pageable) method, a count query is first executed and then the | |
| data query is executed if the count returns a value greater than the offset. | |
| For what I was doing I did not need pageable, but simply wanted to limit my results. This is easy | |
| to do with static named queries and methodNameMagicGoodness queries, but from my research (googling | |
| for a few hours) I couldn't find a way to do it with dynamic criteria queries using Specifications. | |
| During my search I found two things that helped me to figure out how to just do it myself. | |
| 1.) A stackoverflow question. |
| alert('evil'); |
| // Simple logger that will use firebug console log first if available, otherwise simply log to a div | |
| // Requires jquery | |
| // Usage L.log('log this text'); | |
| var L = { | |
| logEnabled: true, | |
| log: function(obj) | |
| { | |
| if(L.logEnabled){ |