SHOW:
|
|
- or go back to the newest paste.
| 1 | <form> | |
| 2 | - | <label>Valentine's Day Slots</label> |
| 2 | + | <label>Valentine's Day Slots by Michael Camp Bentley</label> |
| 3 | - | <fieldset submitButton="true" autoRun="false"> |
| 3 | + | <fieldset submitButton="true" autoRun="true"> |
| 4 | <input type="dropdown" token="bet" searchWhenChanged="true"> | |
| 5 | <label>Bet Amount</label> | |
| 6 | <choice value="1">Bet $1</choice> | |
| 7 | <choice value="5">Bet $5</choice> | |
| 8 | <choice value="10">Bet $10</choice> | |
| 9 | <default>1</default> | |
| 10 | <initialValue>1</initialValue> | |
| 11 | </input> | |
| 12 | </fieldset> | |
| 13 | <row> | |
| 14 | <panel> | |
| 15 | <single> | |
| 16 | <search> | |
| 17 | <query>| makeresults count=1 | |
| 18 | | eval participants= "👼,♡,💘,💏" | |
| 19 | | makemv delim="," participants | |
| 20 | | mvexpand participants | |
| 21 | | streamstats count(participants) as count1 | |
| 22 | | stats range(count1) as range values(participants) as participants | |
| 23 | | eval number_of_participants=tonumber(range+1) | |
| 24 | | eval random=random()%$$number_of_participants$$ | |
| 25 | | eval a=upper(mvindex(participants,random)) | |
| 26 | | fields a | |
| 27 | | appendcols [ | makeresults count=1 | |
| 28 | | eval participants= "👼,♡,💘,💏" | |
| 29 | | makemv delim="," participants | |
| 30 | | mvexpand participants | |
| 31 | | streamstats count(participants) as count1 | |
| 32 | | stats range(count1) as range values(participants) as participants | |
| 33 | | eval number_of_participants=tonumber(range+1) | |
| 34 | | eval random=random()%$$number_of_participants$$ | |
| 35 | | eval b=upper(mvindex(participants,random)) | |
| 36 | | fields b] | |
| 37 | | appendcols [ | makeresults count=1 | |
| 38 | | eval participants= "👼,♡,💘,💏" | |
| 39 | | makemv delim="," participants | |
| 40 | | mvexpand participants | |
| 41 | | streamstats count(participants) as count1 | |
| 42 | | stats range(count1) as range values(participants) as participants | |
| 43 | | eval number_of_participants=tonumber(range+1) | |
| 44 | | eval random=random()%$$number_of_participants$$ | |
| 45 | | eval c=upper(mvindex(participants,random)) | |
| 46 | | fields c] | |
| 47 | | eval earnings=case( | |
| 48 | a=="💏" AND b=="💏" AND c=="💏",1000, | |
| 49 | a=="💘" AND b=="💘" AND c=="💘",500, | |
| 50 | a=="♡" AND b=="♡" AND c=="♡",250, | |
| 51 | a=="👼" AND b=="👼" AND c=="👼",100, | |
| 52 | a=="💏" AND b=="💏" OR b=="💏" AND c=="💏" OR a=="💏" AND c=="💏",500, | |
| 53 | a=="💘" AND b=="💘" OR b=="💘" AND c=="💘" OR a=="💘" AND c=="💘",250, | |
| 54 | a=="♡" AND b=="♡" OR b=="♡"AND c=="♡" OR a=="♡" AND c=="♡",100, | |
| 55 | a=="👼" AND b=="👼" OR b=="👼" AND c=="👼" OR a=="👼" AND c=="👼",10, | |
| 56 | 1=1,0 | |
| 57 | ) * $bet$ | |
| 58 | | eval loss=if(earnings==0,$bet$,0)</query> | |
| 59 | <earliest>1535385600.000</earliest> | |
| 60 | <latest>1535474114.000</latest> | |
| 61 | <sampleRatio>1</sampleRatio> | |
| 62 | <refresh>30s</refresh> | |
| 63 | <refreshType>delay</refreshType> | |
| 64 | </search> | |
| 65 | <option name="colorBy">value</option> | |
| 66 | <option name="colorMode">none</option> | |
| 67 | <option name="drilldown">none</option> | |
| 68 | <option name="numberPrecision">0</option> | |
| 69 | <option name="rangeColors">["0x65a637","0x6db7c6","0xf7bc38","0xf58f39","0xd93f3c"]</option> | |
| 70 | <option name="rangeValues">[0,30,70,100]</option> | |
| 71 | <option name="refresh.display">progressbar</option> | |
| 72 | <option name="showSparkline">1</option> | |
| 73 | <option name="showTrendIndicator">1</option> | |
| 74 | <option name="trellis.enabled">1</option> | |
| 75 | <option name="trellis.scales.shared">1</option> | |
| 76 | <option name="trellis.size">medium</option> | |
| 77 | <option name="trendColorInterpretation">standard</option> | |
| 78 | <option name="trendDisplayMode">absolute</option> | |
| 79 | <option name="unitPosition">after</option> | |
| 80 | <option name="useColors">0</option> | |
| 81 | <option name="useThousandSeparators">1</option> | |
| 82 | </single> | |
| 83 | </panel> | |
| 84 | </row> | |
| 85 | <row> | |
| 86 | <panel> | |
| 87 | <html> | |
| 88 | Contact the Author -> <a href="https://www.linkedin.com/in/remote-splunk-consultant-atlanta" alt="Link to Michael Bentley's LinkedIn Profile">Michael "JKat54" Bentley</a> -> Or Call 1-844-4SPLUNK for more details | |
| 89 | </html> | |
| 90 | </panel> | |
| 91 | </row> | |
| 92 | </form> |