TypeChecker.ls
package
{
import loom.Application;
TypeChecker.ls
package
{
import loom.Application;
is
,as
,instanceof
return expected results on literal values, but not when the same values are passed into a function and the type ops are applied to the function argument variables. NOTE: when testing with trace() be aware that Sprint 30 (and earlier?) contained a bug that caused trace to print all Booleans as true. This is resolved in SDK v1.1.2738 (and Sprint 31).
TypeChecker.ls
ruby --version
rake --version
trouble with font quads in sprint31 on Android 4.1.2 (regression from sprint30)
screenshot images below
#!/usr/bin/env ruby | |
# encoding: UTF-8 | |
@dot_cycle = ['⣾','⣽','⣻','⢿','⡿','⣟','⣯','⣷'] | |
#braille random: 0x2800 - 0x28ff | |
@z_arrow = ['←','↖','↑','↗','→','↘','↓','↙'] | |
@z_b = ['b','ᓂ','q','ᓄ'] | |
@z_d = ['d','ᓇ','p','ᓀ'] |
# prompt (see https://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html) | |
# this prompt has 3 parts: | |
# 1. exit code indicator. test $? and print green ○ (U+25CB) for success (0), or red ● (U+25CF) for fail (non-zero) | |
# 2. current working directory. print \W in bold | |
# 3. UID indicator. \$ gives # for root, $ otherwise; print in bold | |
export PS1="\$([ \$? = 0 ] && echo '\[\e[32m\]○\[\e[0m\]' || echo '\[\e[31m\]●\[\e[0m\]') \[\e[1m\]\W \$ \[\e[0m\]" | |
# aliases (use `alias` to list) | |
alias ls="ls -hF" | |
alias l="ls -1" |
require 'rake' | |
require 'rake/testtask' | |
Rake::TestTask.new do |t| | |
t.pattern = 'spec/**/*_spec.rb' | |
t.libs.push 'spec' | |
end |
@echo off | |
color 70 | |
prompt $p$g$s | |
title Command Prompt Portable | |
set PA=%USERPROFILE%\PortableApps\PortableApps | |
set USERLOCAL=%PA%\CommandPromptPortable\Data | |
set PATH=%PATH%;%USERLOCAL%\bin |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
@bar = '─' | |
@elbow = '└' | |
@pipe = '│' | |
@space = ' ' | |
@tee = '├' | |
@slash = '/' |
# set the title of the current Terminal tab | |
function title { | |
printf "\033]0;%s\007" "$1" | |
} |