Skip to content

Instantly share code, notes, and snippets.

View Ajwah's full-sized avatar

Kevin Johnson Ajwah

  • Toronto, Canada
View GitHub Profile
@Ajwah
Ajwah / print_int_lst.sml
Last active August 29, 2015 14:21
Print int list
val l2s = List.foldl (fn(e,acc)=> acc^" "^Int.toString(e)) ""
val ll2s = List.foldl (fn(e,acc)=>acc^"\n "^(l2s e)) ""
fun display [] = (print "\n END")
| display (l::lls) = (print ("\n "^(l2s l)); display lls)
@Ajwah
Ajwah / sml-testing.sml
Last active August 29, 2015 14:20
Basic template to run unit tests in SML
use "johnson_hw.sml";
val name_hw = "2005 - Assignment Two"
(*Unit tests are of format string*bool where bool is represented by evaluation of a function to an expected value*)
val tests = [
];
print ("\n"^Int.toString(List.length(tests))^" TOTAL TESTS RUN----------------------"^name_hw^"--------------------------\n"); (*Name display to assert correct test file is running*)
fun all_tests(tests) =
@Ajwah
Ajwah / sublime-config
Created April 8, 2015 20:24
Sublime Text 3 Configurations
http://martineau.tv/2014/07/sublime-text-for-front-end-development/
http://www.sitepoint.com/10-essential-sublime-text-plugins-full-stack-developer/
http://ipestov.com/the-best-plugins-for-sublime-text/
https://css-tricks.com/sublime-text-front-end-developers/
Package Control
SublimeLinter https://github.com/SublimeLinter/SublimeLinter-jshint
scsslint https://packagecontrol.io/packages/SublimeLinter-contrib-scss-lint
& jshint are particularly useful.