citizen_hacks_2019_part1
For the Citizen Hacks 2019 Vim competition
Start file
// Part 1: The Idea /* The following challenges will cover how Citizen Hacks was created. Good Luck! Part 1: The Idea. Part 2: Assembling the Team. Part 3: Finding Sponsors. Part 4: Contacting Sponsors. Part 5: Bad News. Part 6: A New Hope. Part 7: Applications. Part 8: Handling Logistics. Part 9: The Welcome Party. */ const YEAR = 2018 let group = ['Marcel','Mio','Benn'] let add_member = (group, name) => { group.push(name); console.log(`Added ${name}`); }; let add_members = (group, names) => { names.forEach((name) => { add_member(group, name); }); };
End file
// Part 1: The Idea /* The following challenges will cover how Citizen Hacks was created. Good Luck! CH Part 1: The Idea CH Part 2: Assembling the Team CH Part 3: Finding Sponsors CH Part 4: Contacting Sponsors CH Part 5: Bad News CH Part 6: A New Hope CH Part 7: Applications CH Part 8: Handling Logistics CH Part 9: The Welcome Party */ const YEAR = 2018; const MONTH = 'June'; let group = ['Marcel', 'Mio', 'Benn']; let add_member = (group, name) => { group.push(name); console.log(`Added ${name}`); }; let add_members = (group, names) => { names.forEach((name) => { add_member(group, name); }); };
View Diff
4,12c4,12 < CH Part 1: The Idea < CH Part 2: Assembling the Team < CH Part 3: Finding Sponsors < CH Part 4: Contacting Sponsors < CH Part 5: Bad News < CH Part 6: A New Hope < CH Part 7: Applications < CH Part 8: Handling Logistics < CH Part 9: The Welcome Party --- > Part 1: The Idea. > Part 2: Assembling the Team. > Part 3: Finding Sponsors. > Part 4: Contacting Sponsors. > Part 5: Bad News. > Part 6: A New Hope. > Part 7: Applications. > Part 8: Handling Logistics. > Part 9: The Welcome Party. 15,16c15 < const YEAR = 2018; < const MONTH = 'June'; --- > const YEAR = 2018 18c17 < let group = ['Marcel', 'Mio', 'Benn']; --- > let group = ['Marcel','Mio','Benn']
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 13 remaining solutions by signing in and submitting your own entry
#14 Chen / @Chen92576915 - Score: 123 - 09/08/19 @ 13:40
:4<CR><C-V>8jICH <Esc>eeeeli<Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Down><Del><Esc>:15<CR>oconst MONTH = 'June';<Up>;<CR><BS><Down><Down><Esc>jeeeeeei <Esc>eeei <Esc>A;<Up><Up><Up><Up><Up><Up><BS><Esc>klldwkdwkdwkdwk$dwkdwk$dwkDZZ
0 comments