Skip to content

Latest commit

ย 

History

History
144 lines (129 loc) ยท 9.36 KB

README.md

File metadata and controls

144 lines (129 loc) ยท 9.36 KB

CI

โŒš๐Ÿ”ฅ.jl

WatchJuliaBurn aims at destroying the look of your code by adding emojis like ๐Ÿ˜„ and kaomojis like cโ•ฏยฐโ–กยฐโ†„โ•ฏ instead of your favorite Julia functions. For a serious use of unicode characters see also Ueauty.jl

Add your own awfulness!

Don't hesitate to add your worst creations via PR. All you need to do is to add the function and emoji to the ๐Ÿ˜ƒ๐Ÿ“– internal ๐Ÿ“– in src/๐Ÿ“–.jl. Don't touch the README! It will be automatically generated after your PR is merged. Also tests are optional since tests are for losers!

Emojify your code

You can use the emojify function to recursively emojify all the files in a given path. emojify will replace all functions for which an alias is known by the corresponding emoji (a random one is picked every โฒ๏ธ if multiple options are possible). For example:

vcat(round(log(pi)), broadcast(tan โˆ˜ inv, rand(3)))

will return

โฌ‡๏ธ๐Ÿˆ(๐ŸŽ (๐Ÿชต(๐Ÿฅง)), ๐Ÿ“ก(๐Ÿ‘ฉ๐Ÿปโžก๏ธ๐Ÿ‘ฉ๐Ÿฝ โˆ˜ โ†”, ๐ŸŽฒ(3)))

List of emojis

Function Emojis Julia Version
AbstractChar ๐Ÿซฅ๐Ÿš— 1.8
AbstractDict ๐Ÿซฅ๐Ÿ“– 1.8
AbstractDisplay ๐Ÿซฅ๐Ÿ“บ 1.8
AbstractFloat ๐Ÿซฅ๐Ÿ›Ÿ 1.8
AbstractMatrix ๐Ÿซฅ๐Ÿ”ข 1.8
AbstractString ๐Ÿซฅ๐Ÿงต 1.8
ArgumentError ๐Ÿ’ฌ๐Ÿšจ
Bool ๐Ÿ‘๐Ÿ‘Ž
Char ๐Ÿš—
Dict ๐Ÿ“–
ENV ๐Ÿงง
IO ๐Ÿช€ยฝ, ๐Ÿ‘๏ธ๐Ÿ˜ฒ 1.2, 1
Matrix ๐Ÿ”ข
Pair ๐Ÿ
String ๐Ÿงต
Threads ๐Ÿชข 1.5
abs ๐Ÿ‘”๐Ÿ’ช, ๐ŸŽฝ๐Ÿ’ช
any ๐Ÿ‘ฉ
axes ๐Ÿช“๐Ÿช“ 1.2
broadcast ๐Ÿ“ก
cat ๐Ÿ˜ป, ๐Ÿ˜น, ๐Ÿˆ
cd ๐Ÿ’ฟ, ๐Ÿ‡จ๐Ÿ‡ฉ
chop ๐Ÿฅข, ๐ŸŒณ๐Ÿช“ 1, 1.2
clamp ๐Ÿ—œ๏ธ
collect ๐Ÿงบ
cot ๐Ÿงฅ, ๐Ÿฅผ
count ๐Ÿงฎ
count_ones ๐Ÿงฎ1๏ธโƒฃ1๏ธโƒฃ
count_zeros ๐Ÿงฎ0๏ธโƒฃ0๏ธโƒฃ
delete! ๐Ÿ”ฅ
display ๐Ÿ“บ
div (Symbol(Char(0x0001f93f)), 1.2)
download ๐Ÿ“ฅ
dump ๐Ÿ’ฉ
eachindex โ˜๏ธโ˜๏ธ
error ๐Ÿ’ฃ
exit ๐Ÿšช
false ๐Ÿ‘Ž
fill ๐Ÿšฐ
findall ๐Ÿ•ต๏ธ
findfirst ๐Ÿ”Ž๐Ÿฅ‡
findnext ๐Ÿ”Žโญ
first ๐Ÿฅ‡
float โ›ต๏ธ, ๐Ÿ›Ÿ 1, 1.8
flush ๐Ÿ˜ณ
foldr ๐Ÿ—‚, ๐Ÿ“
get ๐Ÿคฒ
getfield ๐Ÿคฒ๐ŸŒฝ, ๐Ÿคฒ๐ŸŒพ
getindex ๐Ÿคฒโ˜๏ธ
getkey ๐Ÿคฒ๐Ÿ”‘, ๐Ÿคฒ๐Ÿ—
getproperty ๐Ÿคฒ๐Ÿก
hcat โžก๏ธ๐Ÿ˜ป, โžก๏ธ๐Ÿ˜น, โžก๏ธ๐Ÿˆ
im ๐Ÿ‡ฎ๐Ÿ‡ฒ
imag ๐Ÿ”ฎ
inv โ†”
isreal ๐Ÿ›ธโ“
join ๐Ÿšช๐Ÿšถ
keys ๐Ÿ”‘, ๐Ÿ—
kill โšฐ๏ธ
length ๐Ÿ“
log ๐Ÿชต 1.5
map ๐Ÿ—บ
mean โˆ˜ skipmissing ๐Ÿ˜ 
mod ๐Ÿ›ต๐Ÿ”ง
nothing โฌ›
peek โ›ฐ๏ธ 1.5
pi ๐Ÿฅง, ๐Ÿฐ
pop! ๐Ÿพ, ๐Ÿน๐ŸŽˆ
print ๐Ÿ–จ๏ธ
push! ๐Ÿ‹๏ธ
rand ๐ŸŽฐ, ๐ŸŽฒ
raw ๐Ÿฅฉ
round ๐ŸŽ , ๐Ÿ”ต
run ๐Ÿƒ
searchsorted ๐Ÿ”Ž๐Ÿ”ค
secd ๐Ÿฅˆ
show โ˜๏ธ
sign ๐Ÿชง, ๐Ÿš 1.5, 1.5
sleep ๐Ÿ˜ด, ๐Ÿ’ค
sort ๐Ÿ”ค
string ๐ŸŽป
tan ๐Ÿง‘๐Ÿปโžก๏ธ๐Ÿง‘๐Ÿฝ, ๐Ÿ‘ฉ๐Ÿปโžก๏ธ๐Ÿ‘ฉ๐Ÿฝ
throw cโ•ฏยฐโ–กยฐโ†„โ•ฏ, ๐Ÿคฎ, ๐Ÿšฎ
time ๐Ÿ•›, โฑ๏ธ, โŒ›, โฒ๏ธ
tr ๐Ÿ‡น๐Ÿ‡ท
true โœ…, ๐Ÿ‘, ๐Ÿ‘Œ
vcat โฌ‡๏ธ๐Ÿ˜ป, โฌ‡๏ธ๐Ÿ˜น, โฌ‡๏ธ๐Ÿˆ
view ๐Ÿ‘€, ๐Ÿ‘๏ธ
write ๐Ÿ–Š๏ธ, โœ๏ธ, ๐Ÿ–‹๏ธ
zip ๐Ÿค

Control Flow

You can now replace boring old try/catch/finally clauses with fancy monkey flow!

@๐Ÿ’ begin
    ๐Ÿ™ˆ
    	๐Ÿ’ฃ()
    ๐Ÿ™Š(๐Ÿ’ฅ)
    	๐Ÿ˜ฅ(๐Ÿ’ฅ)
    ๐Ÿ™‰
    	๐ŸŒ()
    end

Parsing may behave weird when there are infix operators around the block. Try enclosing everything with parenthesis like @๐Ÿ’(begin ... end) if that happens.

REPL

You can use the EmojiSymbols.jl package to super-turbo-charge your REPL experience!

You can press space to launch space invaders (julia>[space]). This feature is helpfully bundled with โŒš๐Ÿ”ฅ version 0.2.0 and above and all packages that depend on it.