Skip to content

Instantly share code, notes, and snippets.

@firaja
Created June 18, 2024 13:41
Show Gist options
  • Save firaja/5c8134e0bf4add0c0a1cf35cfa866ffb to your computer and use it in GitHub Desktop.
Save firaja/5c8134e0bf4add0c0a1cf35cfa866ffb to your computer and use it in GitHub Desktop.
[((ord(s[i])-97)*10.24, (ord(s[i+1])-97)*10.24, (ord(s[i+2])-97)*10.24, (ord(s[i+3])-97)*10.24) for i in range(0, len(s), 4)]
<div style="transform: matrix(1,0,0,-1,0,0);width:350px;display: flex;justify-content: space-around;">
<div style="background-color:rgb(0,113,82);width:10px; height:2.0px"> </div>
<div style="background-color:rgb(41,154,0);width:10px;height:20.5px"> </div>
<div style="background-color:rgb(154,82,133);width:10px;height:8.2px"> </div>
<div style="background-color:rgb(195,82,0);width:10px;height:12.3px"> </div>
<div style="background-color:rgb(41,174,143);width:10px;height:15.6px"> </div>
<div style="background-color:rgb(41,174,184);width:10px;height:4.1px"> </div>
<div style="background-color:rgb(123,154,174);width:10px;height:4.1px"> </div>
</div><div style="width:350px;display: flex;justify-content: space-around;">
<div style="background-image:linear-gradient(to bottom,rgba(0,113,82,1),rgba(0,113,82,0));width:10px; height:20px"> </div>
<div style="background-image:linear-gradient(to bottom,rgba(41,154,0,1),rgba(41,154,0,0));width:10px;height:205px"> </div>
<div style="background-image:linear-gradient(to bottom,rgba(154,82,133,1),rgba(154,82,133,0));width:10px;height:82px"> </div>
<div style="background-image:linear-gradient(to bottom,rgba(195,82,0,1),rgba(195,82,0,0));width:10px;height:123px"> </div>
<div style="background-image:linear-gradient(to bottom,rgba(41,174,143,1),rgba(41,174,143,0));width:10px;height:156px"> </div>
<div style="background-image:linear-gradient(to bottom,rgba(41,174,184,1),rgba(41,174,143,0));width:10px;height:41px"> </div>
<div style="background-image:linear-gradient(to bottom,rgba(123,154,174,1),rgba(41,174,143,0));width:10px;height:41px"> </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment