Skip to content

Instantly share code, notes, and snippets.

@rosscooperman
rosscooperman / CUNEIFORM.md
Created September 20, 2024 20:34
Cuneiform Coding Test

Cuneiform Number Converter

Bablonians are widely credited with creating the first positional number system. In this way their number system was far more like ours than other ancient number systems (like Roman numerals) that we're more familiar with. Unlike us, however, Babalonians used a base 60 system with only two distinct numeric symbols. The small number of symbols is generally attributed to the fact that clay tablets were used for writing so symbols needed to be both as small as possible and as distinct as possible even with a lack of precise writing implements. The reason they used base 60 is not definitively known but one explanation is that it grew out of trade between a group using base 5 and a group using base 12. Whatever the reason, your task is to create a function that takes receives an integer and returns a string representation of the equivalent cuneiform.

Rules

  1. Each digit is represented as a cluster of symbols.
  2. Each cluster begins with a number of Cs, each representing 10, followed
# Set reload key to r
bind r source-file ~/.tmux.conf\; display-message 'reloaded config'
source-file ~/.tmux.statusline
# Set colors
set-option -g default-terminal "screen-256color"
# remap tmux leader to `
set -g prefix `
bind-key ` send-prefix
total 0
drwxr-xr-x@ 40 ross staff 1280 Feb 8 16:03 .
drwxr-xr-x@ 9 ross staff 288 Aug 21 2012 ..
drwxr-xr-x@ 9 ross staff 288 Aug 21 2012 ack.vim
drwxr-xr-x@ 9 ross staff 288 Jul 16 2015 base16-vim
drwxr-xr-x@ 7 ross staff 224 Aug 1 2017 brightscript.vim
drwxr-xr-x@ 8 ross staff 256 Aug 21 2012 ctrlp.vim
drwxr-xr-x@ 6 ross staff 192 Sep 24 2014 greplace.vim
drwxr-xr-x@ 8 ross staff 256 Nov 22 2013 handlebars
drwxr-xr-x@ 12 ross staff 384 Sep 23 2014 html5.vim
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=8171676,CODECS="avc1.4d4028,mp4a.40.5",RESOLUTION=1920x1080
primary/1.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=8171676,CODECS="avc1.4d4028,mp4a.40.5",RESOLUTION=1920x1080
backup/1.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=6332540,CODECS="avc1.4d401f,mp4a.40.5",RESOLUTION=1280x720
primary/2.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=6332540,CODECS="avc1.4d401f,mp4a.40.5",RESOLUTION=1280x720
backup/2.m3u8
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=8171676,AVERAGE-BANDWIDTH=8171676,CODECS="avc1.4d4028,mp4a.40.5",PROGRAM-ID=1,RESOLUTION=1920x1080
1.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=6332540,AVERAGE-BANDWIDTH=6332540,CODECS="avc1.4d401f,mp4a.40.5",PROGRAM-ID=1,RESOLUTION=1280x720
2.m3u8
<html>
<body>
<a href="http://www.movable-ink-7158.com/p/rp/c22a225436ed389e/url" style="display: block;">
<img alt="Display images to show real-time content" border="0" src="http://www.movable-ink-7158.com/p/rp/c22a225436ed389e.png" style="border: 0; display: block;" />
</a>
<script>
var params = window.location.search.replace(/^\?/, '').split('&').map(function(str) { return str.split('=') });
for (var param in params) {
if (param[0] == 'mi_u') {
@rosscooperman
rosscooperman / gist:f226bc1af2c24a5e0b17
Created September 5, 2014 19:36
Same old test template, brand new mobile version
<html>
<head>
<style type="text/css">
.mi-mobile{
display: none;
font-size: 0;
max-height: 0;
line-height: 0;
padding: 0;
float: left;
if [ -f ~/.profile ]; then
source ~/.profile
fi
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
if [ -f `brew --prefix`/etc/bash_completion ]; then
source `brew --prefix`/etc/bash_completion
@rosscooperman
rosscooperman / gist:9836672
Created March 28, 2014 16:17
AE Header Test
<html><body>
<!-- CREATIVE OPTIMIZER V1 BEGIN -->
<table width="720" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
<td><a href="http://www.ae.com"><img style="display:block;" alt="Display images to show real-time content" border="0" cm_dontimportimage="true" src="http://s3-us-west-1.amazonaws.com/movableink-test/AP/AE11.gif" style="border: 0;" /></a></td>
</tr>
</table>
<table width="720" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
<td><a href="http://www.ae.com"><img style="display:block;" alt="Display images to show real-time content" border="0" cm_dontimportimage="true" src="http://s3-us-west-1.amazonaws.com/movableink-test/AP/AE12.gif" style="border: 0;" /></a></td>
{
"order" : 0,
"template" : "logstash-*",
"settings" : {
"number_of_shards" : 100,
"number_of_replicas" : 0,
"index.analysis.analyzer.default.stopwords" : "_none_",
"index.refresh_interval" : "5s",
"index.analysis.analyzer.default.type" : "standard"
},