Skip to content

Instantly share code, notes, and snippets.

@chasrmartin
chasrmartin / tinybasic.c
Created December 28, 2022 02:23 — forked from pmachapman/tinybasic.c
A tiny BASIC Interpreter
/* A tiny BASIC interpreter */
#include <string.h>
#include <stdio.h>
#include <setjmp.h>
#include <math.h>
#include <ctype.h>
#include <stdlib.h>
#define NUM_LAB 100
@chasrmartin
chasrmartin / hello.c
Created December 8, 2020 19:14
An example sandbox program
/* the canonical 'Hello, world!' */
#include <stdio.h>
int main(){
printf("Hello, world!\n");
return 0;
}
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
"""
This is a solution using the Counter class from collections
"""
from collections import Counter
word_counts = Counter(
[word for word in open("alice.txt").read().split() if len(word) >=5]
)
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<h3>Here's the page</h3>
<body>
<div id="one"></div>