Revolucent

REBOL 3 CSV-DECODE

Apr 18th, 2013
8,748
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Copyright (c) 2012 Gregory Higley
  2.  
  3. ; Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
  4. ; files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
  5. ; modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
  6. ; is furnished to do so, subject to the following conditions:
  7.  
  8. ; The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  9.  
  10. ; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  11. ; OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  12. ; LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  13. ; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  14.  
  15.  
  16. rebol [
  17.     Author: "Gregory Higley"
  18.     Title: "Revolucent CSV Library"
  19. ;   Type: module
  20. ;   Needs: [2.101.0]
  21. ]
  22.  
  23. whitespace: charset " ^-"
  24.  
  25. csv-decode: funct [
  26.     "Parses a single line of CSV and returns a block of quoted values."
  27.     line [string!]
  28.     /separated-by
  29.         sep-char [char!] "Defaults to comma"
  30.     /quoted-by
  31.         quote-char [char!] "Defaults to double quote"
  32.     /escaped-by
  33.         escape-char [char! none!] "Defaults to none"
  34.     /local
  35.         chunk [string!]
  36.         item [string!]
  37.         items [block!]
  38. ] [
  39.     default quote-char first {"}
  40.     default sep-char #","
  41.     items: copy []
  42.     characters: complement charset rejoin [" ^-" sep-char]
  43.     either escape-char [
  44.         ; If we have an escape char our quoted-item becomes much more complex
  45.         escaped-quote: rejoin [escape-char quote-char]
  46.         quoted-item: [
  47.             (item: copy "")
  48.             quote-char
  49.             any [ copy chunk to escaped-quote escaped-quote (repend item [chunk quote-char]) ]
  50.             copy chunk to quote-char (append item chunk)
  51.             quote-char
  52.         ]
  53.     ] [
  54.         quoted-item: [quote-char copy item to quote-char quote-char]
  55.     ]
  56.     rules: [
  57.         any [
  58.             any whitespace sep-char (append items "")
  59.         |   quoted-item any whitespace sep-char (append items item)
  60.         |   copy item some characters any whitespace sep-char (append items item)
  61.         |   any whitespace
  62.         ]
  63.         opt [
  64.             any whitespace end (append items "")
  65.         |   quoted-item any whitespace end (append items item)
  66.         |   copy item some characters any whitespace end (append items item)
  67.         ]
  68.     ]
  69.     either parse line rules [items] [none]
  70.     items
  71. ]
Advertisement
Comments
  • Quinwakar
    53 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • Jaxvedar
    47 days
    # CSS 0.06 KB | 0 0
    1. We just shared HQ data on our channel: https://t.me/theprotocolone
Add Comment
Please, Sign In to add comment