Create code clips &
steal and save anyone's clips

Join our community of developers to share, collaborate, and learn from each other's code snippets. Whether you're a beginner or an experienced coder, there's something for everyone.

fibonacci_generator

by example@email.com

1def fibonacci(n):
2    a, b = 0, 1
3    for _ in range(n):
4        yield a
5        a, b = b, a + b
6
7print(list(fibonacci(10)))

quick_sort

by example@email.com

1const quickSort = (arr) => {
2  if (arr.length <= 1) return arr;
3  const p = arr[arr.length - 1];
4  const left = arr.filter((x, i) => x <= p && i < arr.length - 1);
5  const right = arr.filter(x => x > p);
6  return [...quickSort(left), p, ...quickSort(right)];
7};

hello_world

by example@email.com

1#include <iostream>
2using namespace std;
3
4int main() {
5    cout << "Hello, World!" << endl;
6    return 0;
7}

employee_query

by example@email.com

1SELECT e.employee_name, d.department_name
2FROM employees e
3JOIN departments d
4 ON e.department_id = d.id
5WHERE e.salary > (
6    SELECT AVG(salary) FROM employees
7);

factorial

by example@email.com

1def factorial(n)
2  return 1 if n <= 1
3  n * factorial(n - 1)
4end
5
6# Test the function
7puts factorial(5)  # 120

Have a question or dashboardback? Reach out to us!

Email

Drop us an email

100ngramjit@gmail.com

Phone

Give us a call

+91-9101088439

Office

Stay connected with us!

Coming Soon!