What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-11 09:45:03
transformar moeda real javascript
var atual = 600000.00; //com R$ var f = atual.toLocaleString('pt-br',{style: 'currency', currency: 'BRL'}).replace(".", ","); //sem R$ var f2 = atual.toLocaleString('pt-br', {minimumFractionDigits: 2}).replace(".", ",&... Add solution -
Javascript 2022-03-10 16:15:33
persian number to english js
const e2p = s => s.replace(/\d/g, d => '۰۱۲۳۴۵۶۷۸۹'[d]) const e2a = s => s.replace(/\d/g, d => '٠١٢٣٤٥٦٧٨٩'[d]) const p2e = s => s.replace(/[۰-۹]/g, d => '۰۱۲۳۴۵۶۷۸۹'.indexOf(d)) const a2e = s => s.replace(/[٠-٩]/g, d => '٠١٢٣٤٥٦٧... Add solution -
Python 2022-03-03 15:25:06
python traceback single line logging module
import logging class OneLineExceptionFormatter(logging.Formatter): def formatException(self, exc_info): """ Format an exception so that it prints on a single line. """ result = super().for... Add solution -
Javascript 2022-03-02 09:30:05
javascript fade color
<div id="x" style="background-color:rgb(255,255,105)">hello world</div> <script type="text/javascript"> var gEvent=setInterval("toWhite();", 100); function toWhite(){ var obj=document.getElemen... Add solution
Best helpers
Ranking is empty