This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//I just kind of threw all this together but these things would be in separate files. | |
public enum Color { | |
WHITE("w"), | |
BLACK("b") | |
private Color(final String pAbbr) { | |
abbr = pAbbr | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userString = "rhinoceros"; | |
const newString = []; | |
for (let letter of userString) { | |
console.log("letter is " + letter); | |
console.log("code is " + letter.charCodeAt(0)); | |
//this is just going to check for lower case | |
if (letter.charCodeAt(0) < "n".charCodeAt(0) || letter.charCodeAt(0) > "z".charCodeAt(0)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const userString = "rhinoceros"; | |
const newString = []; | |
for (let letter of userString) { | |
console.log("letter is " + letter); | |
console.log("code is " + letter.charCodeAt(0)); | |
//this is just going to check for lower case | |
if (letter.charCodeAt(0) < "n".charCodeAt(0) || letter.charCodeAt(0) > "z".charCodeAt(0)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Create a function that will rotate an image represented by a matrix of size NxN by 90 degrees. | |
function rotate(image) { | |
//make sure it has size and that its a square | |
if (!image.length || image.length !== image[0].length) { | |
throw "This image is not workable"; | |
} | |
const n = image.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const get = require("simple-get"); | |
const cheerio = require("cheerio"); | |
let dilbertData = {}; | |
function pad(num) { | |
if (num < 10) { | |
return "0" + num; | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const get = require("simple-get"); | |
const cheerio = require('cheerio') | |
const pad = function(num) { | |
if (num < 10) { | |
return "0" + num; | |
} else { | |
return num; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS C:\dev\workspace\isis> yuidoc --debug --parse-only | |
info: (loader): Adding skin (skin-sam-autocomplete-list), undefined, autocomplete-list, autocomplete-list/assets/skins/s | |
am/autocomplete-list.css | |
info: (loader): Adding skin (skin-sam-calendar), undefined, calendar, calendar/assets/skins/sam/calendar.css | |
info: (loader): Adding skin (skin-sam-calendar-base), undefined, calendar-base, calendar-base/assets/skins/sam/calendar- | |
base.css | |
info: (loader): Adding skin (skin-sam-calendarnavigator), undefined, calendarnavigator, calendarnavigator/assets/skins/s | |
am/calendarnavigator.css | |
info: (loader): Adding skin (skin-sam-console), undefined, console, console/assets/skins/sam/console.css | |
info: (loader): Adding skin (skin-sam-console-filters), undefined, console-filters, console-filters/assets/skins/sam/con |