Giter Club home page Giter Club logo

case's Introduction

CASE

Learning about ASCII case conversion. Don't actually use this. Use your builtin libraries.

Which bit signifies case in ASCII?

iex
Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]

Interactive Elixir (1.11.0-dev) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> as_binary = &IO.inspect(&1, base: :binary)
#Function<7.91303403/1 in :erl_eval.expr/5>
iex(2)> ?a..?z |> Enum.each(as_binary)
0b1100001
0b1100010
0b1100011
0b1100100
0b1100101
0b1100110
0b1100111
0b1101000
0b1101001
0b1101010
0b1101011
0b1101100
0b1101101
0b1101110
0b1101111
0b1110000
0b1110001
0b1110010
0b1110011
0b1110100
0b1110101
0b1110110
0b1110111
0b1111000
0b1111001
0b1111010
:ok
iex(3)> ?A..?Z |> Enum.each(as_binary)
0b1000001
0b1000010
0b1000011
0b1000100
0b1000101
0b1000110
0b1000111
0b1001000
0b1001001
0b1001010
0b1001011
0b1001100
0b1001101
0b1001110
0b1001111
0b1010000
0b1010001
0b1010010
0b1010011
0b1010100
0b1010101
0b1010110
0b1010111
0b1011000
0b1011001
0b1011010
:ok
iex(4)> 0b100000
32
iex(5)>

case's People

Contributors

ryangraham avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.