☰
d2jsp
Rules
Help
Forum Gold FAQ
Live Streams
Photo Gallery
Hourly Raffle
Ladder Slasher
Log In
Register
Log In
Register
Account Recovery
Resend Validation Email
d2jsp Forums
>
Off-Topic
>
Computers & IT
>
Programming & Development
> Turn My Javascript Snippets Into Python > 100fg Per Snippet (10 Snippets)
Add Reply
New Topic
New Poll
Views: 420
Replies: 1
Track Topic
kdog3682
Member
Posts: 14,925
Joined: Jan 3 2008
Gold
:
135,879.75
#1
Mar 5 2020 03:03pm
Each snippet is like 5 to 10 lines.
Example:
Code
function addBulletsToTabbedLine(s) {
return s.trim().split('\n').map(line => {
if (line.match(/^\s\s/)) return '* ' + line.slice(2)
}).join('\n')
}
Klexmoo
Member
Posts: 12,703
Joined: May 17 2013
Gold
:
12,935.00
#2
Mar 8 2020 04:09pm
send them to me and i'll do it
Go Back To
Programming & Development
Topic List
Add Reply
New Topic
New Poll
© 2003-2024 d2jsp
Contact