Skip to content

Commit 8dec241

Browse files
author
Jon Myrick
authored
Merge pull request CodewarsClone#115 from CodewarsClone/MenuEtc
Database work
2 parents 1bbf4bc + 05c9a9e commit 8dec241

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

db/start/katas.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VALUES (8, 'JoshuaBaert', 'Submit This', '["FAKE"]', '["JavaScript"]', 'var a =
66

77
(7, 'Zapatorus', 'Descending Order', '["FUNDAMENTALS","FUNCTIONS","CONTROL FLOW","BASIC LANGUAGE FEATURES"]', '["Javascript","C#","Haskell","Java","Clojure","Python","Ruby","Rust","Swift"]', 'function descendingOrder(n){\n \n}', 'Your task is to make a function that can take any non-negative integer as a argument and return it with it''s digits in descending order. Descending order means that you take the highest digit and place the next highest digit immediately after it.', '[{"test":"Test.assertEquals(descendingOrder(0), 0); \nTest.assertEquals(descendingOrder(1), 1); \nTest.assertEquals(descendingOrder(123456789), 987654321);"}]', '[{"test":"Test.assertEquals(descendingOrder(0), 0); Test.assertEquals(descendingOrder(1), 1); Test.assertEquals(descendingOrder(111), 111); Test.assertEquals(descendingOrder(15), 51); Test.assertEquals(descendingOrder(1021), 2110); Test.assertEquals(descendingOrder(123456789), 987654321);"}]'),
88

9-
(7, 'osuushi', 'Disemvowel Trolls', '["FUNDAMENTALS","STRINGS","REGULAR EXPRESSIONS","DECLARATIVE PROGRAMMING","ADVANCED LANGUAGE FEATURES"]', '["Javascript","C#","Clojure","CoffeeScript","F#","Haskell","Python","Ruby"]', 'function disemvowel(str) {\n \n}', 'Trolls are attacking your comment section!\n\nA common way to deal with this situation is to remove all of the vowels from the trolls'' comments, neutralizing the threat.\n\nYour task is to write a function that takes a string and return a new string with all vowels removed.\n\nFor example, the string "This website is for losers LOL!" would become "Ths wbst s fr lsrs LL!".', '[{"test":"Test.assertEquals(disemvowel(''This website is for losers LOL!''), ''Ths wbst s fr lsrs LL!'')"}]', '[{"test":"Test.assertEquals(disemvowel(''This website is for losers LOL!''),''Ths wbst s fr lsrs LL!''); Test.assertEquals(disemvowel(''What are you, a communist?''),''Wht r y, cmmnst?''); Test.assertEquals(disemvowel( ''No offense but,Your writing is among the worst I\\''ve ever read''),''N ffns bt,Yr wrtng s mng th wrst \\''v vr rd'');"}]'),
9+
(7, 'osuushi', 'Disemvowel Trolls', '["FUNDAMENTALS","STRINGS","REGULAR EXPRESSIONS","DECLARATIVE PROGRAMMING","ADVANCED LANGUAGE FEATURES"]', '["Javascript","C#","Clojure","CoffeeScript","F#","Haskell","Python","Ruby"]', 'function disemvowel(str) {\n \n}', 'Trolls are attacking your comment section!\n\nA common way to deal with this situation is to remove all of the vowels from the trolls'' comments, neutralizing the threat.\n\nYour task is to write a function that takes a string and return a new string with all vowels removed.\n\nFor example, the string "This website is for losers LOL!" would become "Ths wbst s fr lsrs LL!".', '[{"test":"Test.assertEquals(disemvowel(''This website is for losers LOL!''), ''Ths wbst s fr lsrs LL!'')"}]', '[{"test":"Test.assertEquals(disemvowel(''This website is for losers LOL!''),''Ths wbst s fr lsrs LL!''); Test.assertEquals(disemvowel( ''No offense but,Your writing is among the worst I\\''ve ever read''),''N ffns bt,Yr wrtng s mng th wrst \\''v vr rd'');"}]'),
1010

1111
(6, 'JKphobic', 'Take a Ten Minute Walk', '["FUNDAMENTALS","ARRAYS"]', '["Javascript","Java","Haskell","F#","Python","Ruby"]', 'function isValidWalk(walk) {\n \n}', 'You live in the city of Cartesia where all roads are laid out in a perfect grid. You arrived ten minutes too early to an appointment, so you decided to take the opportunity to go for a short walk. The city provides its citizens with a Walk Generating App on their phones -- everytime you press the button it sends you an array of one-letter strings representing directions to walk (eg. [''n'', ''s'', ''w'', ''e'']). You know it takes you one minute to traverse one city block, so create a function that will return true if the walk the app gives you will take you exactly ten minutes (you don''t want to be early or late!) and will, of course, return you to your starting point. Return false otherwise. \n\nNote: you will always receive a valid array containing a random assortment of direction letters (''n'', ''s'', ''e'', or ''w'' only). It will never give you an empty array (that''s not a walk, that''s standing still!)', '[{"test":"//some test cases for you... \nTest.expect(isValidWalk([''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'']), ''should return true''); \nTest.expect(!isValidWalk([''w'',''e'',''w'',''e'',''w'',''e'',''w'',''e'',''w'',''e'',''w'',''e'']), ''should return false''); \nTest.expect(!isValidWalk([''w'']), ''should return false''); \nTest.expect(!isValidWalk([''n'',''n'',''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'']), ''should return false''); \n"}]', '[{"test":"var fail = [ [''n''], [''n'',''s''], [''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s''], [''n'',''s'',''e'',''w'',''n'',''s'',''e'',''w'',''n'',''s'',''e'',''w'',''n'',''s'',''e'',''w''], [''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'',''n'',''n''], [''e'',''e'',''e'',''w'',''n'',''s'',''n'',''s'',''e'',''w''] ]; var pass = [ [''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s'',''n'',''s''], [''e'',''w'',''e'',''w'',''n'',''s'',''n'',''s'',''e'',''w''], [''n'',''s'',''e'',''w'',''n'',''s'',''e'',''w'',''n'',''s''] ]; describe(''Walk Validator'', function(){ it (''should return false if walk is too short'', function(){ Test.expect(!isValidWalk(fail[0])); Test.expect(!isValidWalk(fail[1])); }); it (''should return false if walk is too long'', function(){ Test.expect(!isValidWalk(fail[2])); Test.expect(!isValidWalk(fail[3])); }); it (''should return false if walk does not bring you back to start'', function(){ Test.expect(!isValidWalk(fail[4])); Test.expect(!isValidWalk(fail[5])); }); it (''should return true for a valid walk'', function(){ Test.expect(isValidWalk(pass[0])); Test.expect(isValidWalk(pass[1])); Test.expect(isValidWalk(pass[2])); }); });"}]'),
1212

src/components/training/trainingCtrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ angular.module('app').controller('trainingCtrl', function ($scope, $state, mainS
136136
});
137137
};
138138

139+
139140

140141
$scope.reset = function(){
141142
console.log('something extravegant');

0 commit comments

Comments
 (0)