This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Country and Currency | Currency Code | Unicode: Hex | |
---|---|---|---|
Albania Lek | ALL | \u004c\u0065\u006b | |
Afghanistan Afghani | AFN | \u060b | |
Argentina Peso | ARS | \u0024 | |
Aruba Guilder | AWG | \u0192 | |
Australia Dollar | AUD | \u0024 | |
Azerbaijan Manat | AZN | \u20bc | |
Bahamas Dollar | BSD | \u0024 | |
Barbados Dollar | BBD | \u0024 | |
Belarus Ruble | BYN | \u0042\u0072 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.hexDecode = function () { | |
var j; | |
var hexes = this.split("\\u").slice(1); | |
var back = ""; | |
for (j = 0; j < hexes.length; j++) { | |
back += String.fromCharCode(parseInt(hexes[j], 16)); | |
} | |
return back; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tdr = $('table')[0].children[0].children; | |
var out = ''; | |
$.each(tdr, (c, el) => { | |
const els = el.children; | |
var curr = ''; | |
var ucs = els[6].textContent.trim(); | |
if(ucs.length) { | |
ucs = ucs.split(","); | |
for(var i = 0; i < ucs.length; i++) { | |
curr += (c > 0 ? '\\u' : '') + ucs[i].trim().padStart("4", "0"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Symbols = [ | |
["Country and Currency", "Currency Code", "Unicode: Hex"], | |
["Albania Lek", "ALL", "\u004c\u0065\u006b"], | |
["Afghanistan Afghani", "AFN", "\u060b"], | |
["Argentina Peso", "ARS", "\u0024"], | |
["Aruba Guilder", "AWG", "\u0192"], | |
["Australia Dollar", "AUD", "\u0024"], | |
["Azerbaijan Manat", "AZN", "\u20bc"], | |
["Bahamas Dollar", "BSD", "\u0024"], | |
["Barbados Dollar", "BBD", "\u0024"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const renderObj = (obj) => Object.entries(obj).map((el) => ( | |
<div> | |
<div>el[0]</div> | |
<div>el[1]</div> | |
</div> | |
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const countries = [ | |
"Afghanistan", | |
"Albania", | |
"Algeria", | |
"American Samoa", | |
"Andorra", | |
"Angola", | |
"Anguilla", | |
"Antarctica", | |
"Antigua And Barbuda", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import deburr from 'lodash/deburr' | |
import Autosuggest from 'react-autosuggest'; | |
import match from 'autosuggest-highlight/match' | |
import parse from 'autosuggest-highlight/parse' | |
import TextField from '@material-ui/core/TextField' | |
import Paper from '@material-ui/core/Paper' | |
import MenuItem from '@material-ui/core/MenuItem' | |
import { withStyles } from '@material-ui/core/styles' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import deburr from 'lodash/deburr' | |
import Autosuggest from 'react-autosuggest'; | |
import match from 'autosuggest-highlight/match' | |
import parse from 'autosuggest-highlight/parse' | |
import TextField from '@material-ui/core/TextField' | |
import Paper from '@material-ui/core/Paper' | |
import MenuItem from '@material-ui/core/MenuItem' | |
import { withStyles } from '@material-ui/core/styles' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ISODate struct | |
type ISODate struct { | |
Format string | |
time.Time | |
} | |
//UnmarshalJSON ISODate method | |
func (Date *ISODate) UnmarshalJSON(b []byte) error { | |
var s string | |
if err := json.Unmarshal(b, &s); err != nil { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Fixing Scrolling Controlled by Space, Page Up, Page Down with a fixed top navbar</title> | |
<style> | |
html { | |
font: 14px Arial; | |
} | |
* { | |
margin: 0; | |
padding: 0; |
OlderNewer