Skip to content

Instantly share code, notes, and snippets.

@sauloh
sauloh / hello_shellter.c
Created September 22, 2017 21:18
Hello World Shellter
#include<stdio.h>
int main()
{
printf("HELLO WORLD - I'M CODING ON SHELLTER");
return 0;
}
/* My multiple
line comments
goes here
*/
int a; // Declare variable 'a' as INT
a = 10; // attribute value 10 to the variable 'a'
int sum(int a, int b)
{
int c;
c = a + b;
return c;
}
sum(value1, value2);
d = a + b // sum two variables a and b and stores the result in d
d = a - c // subtract ‘c’ from ‘a’ and stores the result in d
d = a / c </b> // divide a by c and stores the result in d
d =a % c </b> // divide a by c and stores the result in d
if a > b:
a is bigger
else if:
b is bigger
a = 0
while (a != 1)
{
print a
a = input_from_user()
}
a = 0;
for(k=0, k <= 10, k++)
a = a + k;
#include<stdio.h>
int main()
{
int sum;
int counter;
int rest;
sum = 0;
counter = 0;
@sauloh
sauloh / SimpleHTTPServerWithUpload.py
Created October 30, 2017 19:46 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@sauloh
sauloh / recursion.c
Created November 18, 2017 13:40
Code Snip for Shellter Coding Lesson
int sum(int num)
if num is 1:
return 1
else
return num + sum(num - 1)