Skip to content

Commit 3ef5826

Browse files
committed
Begin sorting and renaming previous files
1 parent 8033b6e commit 3ef5826

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+4
-5
lines changed

_assemble/check.coffee

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ do main = -> setImmediate ->
55
replace = (str) -> str.replace /[|\\{}()[\]^$+*?.]/g, '\\$&'
66
startsep = new RegExp "^#{replace sep}"
77
base = easypathutil()
8-
ignored = ['.DS_Store$', '^_assemble', '^\\.git', '^\\.github', 'node_modules', '^_config\\.yml', '^\\.gitignore', '^CONTRIBUT[A-Z]+', '^LICENSE$', '^package', '^README', '^honorary-one-line-wonders']
8+
ignored = ['.DS_Store$', '^_assemble', '^\\.git', '^\\.github', 'node_modules', '^_config\\.yml', '^\\.gitignore', '^CONTRIBUT[A-Z]+', '^LICENSE$', '^package', '^README', '^honorary-one-line-wonders', '^\\.travis']
99

1010
list = base.$read_dir_sync.filter (e, i) -> !ignored.some (b) -> RegExp(b).test e.replace(base(), '').replace(startsep, '')
1111

@@ -21,9 +21,7 @@ do main = -> setImmediate ->
2121
.length}#{bgblack} honorary programs in /honorary-one-line-wonders\nNow running checks...#{r}"
2222

2323
sorting = (for [path, program, folder] in list.map (e) -> [e, basename(e), dirname(e)]
24-
if program[0] is '.'
25-
!1
26-
else unless program.includes '_'
24+
unless program.includes '_'
2725
console.log cyan, 'Filename must be of the format username_file_name_here.extension', r, red, rel('.', path), r
2826
program
2927
else
@@ -61,3 +59,5 @@ categories =
6159
golden_ratio: /(approx(imate[_-]?)?)?(golden_ratio|phi)/i
6260
valley: /valley/i
6361
unique_elems: /unique/i
62+
even: /even|odd/i
63+
reverse: /rev/i
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

c/fizzbuzz.c c/cyucelen_fizzbuzz.c

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

swift/anagram/anagramChecker.swift swift/anagram/nmasnadithya_anagramChecker.swift

-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ func check(_ a: String, _ b: String) -> Bool {
66
}
77
print(check("anagram","nagaram"))
88
print(check("rat","car"))
9-

0 commit comments

Comments
 (0)