S
Seoffix.com
Sign In Get Pro Membership

Seoffix Community

CodeLearn

46 tracks and lessons. Open a card to preview the code here, then jump into the playground.

↗ Open CodeLearn
Seoffix Tech LabCodeLearn Lesson

Structured Output

Ask for JSON back.

#prompt#intermediate#codelearn
15 min · Intermediate · 30 XP
lesson.js
# Write your prompt below
Seoffix Tech LabCodeLearn Lesson

Git: Branching

Work on a branch and merge it back.

#shell#beginner#codelearn
15 min · Beginner · 25 XP
lesson.js
# Write your commands below
Seoffix Tech LabCodeLearn Lesson

Recursion

Solve a problem by calling yourself.

#python#intermediate#codelearn
15 min · Intermediate · 35 XP
lesson.py
def factorial(n):
    # TODO: base case and recursive step
    pass

print(factorial(5))
Seoffix Tech LabCodeLearn Lesson

Writing Functions

Define and call a function.

#python#beginner#codelearn
15 min · Beginner · 30 XP
lesson.py
def add(a, b):
    # TODO: return the sum
    pass

print(add(2, 3))
Seoffix Tech LabCodeLearn Lesson

Array Methods

Transform data with map and filter.

#javascript#intermediate#codelearn
15 min · Intermediate · 30 XP
lesson.js
const nums = [1, 2, 3];
// TODO: map each number to double and log it joined b
Seoffix Tech LabCodeLearn Lesson

PHP PDO Query

Prepared statements with PDO.

#php#intermediate#codelearn
15 min · Intermediate · 40 XP
lesson.php
<?php
// TODO: prepare, execute with [1], fetchAll
Seoffix Tech LabCodeLearn Lesson

CSS Flexbox

Centre items with flexbox.

#htmlcss#beginner#codelearn
15 min · Beginner · 25 XP
lesson.html
<style>
.row { /* TODO */ }
</style>
<div class="row"><span>A</span><span>B</span></div>
Seoffix Tech LabCodeLearn Lesson

Git: Remotes and Safe Deploys

Push to a remote and deploy safely.

#shell#intermediate#codelearn
15 min · Intermediate · 30 XP
lesson.js
# Write your commands below
Seoffix Tech LabCodeLearn Lesson

Sorting

Sort with a key.

#python#intermediate#codelearn
15 min · Intermediate · 35 XP
lesson.py
names = ["Seoffix", "AI", "Studio"]
# TODO: sort by length and print
Seoffix Tech LabCodeLearn Lesson

SQL SELECT

Filter and sort rows.

#sql#beginner#codelearn
15 min · Beginner · 25 XP
lesson.sql
-- TODO: select active users ordered by id