Skip to content

Instantly share code, notes, and snippets.

View jonjesbuzz's full-sized avatar

Jonathan Jemson jonjesbuzz

View GitHub Profile
#####################
# Jonathan Jemson
# MIT License
# Dumps all our JS into files
####################
import psycopg2
import os
import datetime
conn = psycopg2.connect('dbname=webcrawler user=webcrawler')
/**
A for-loop using functions to evaluate and express the conditions and statements.
- parameters:
- initialize: A function that initializes a variable or tuple.
- condition: The loop condition evaluated after each loop.
- increment: The increment statement to move the loop closer to completion
- body: The loop body.
*/
func loop<T>(initialize: () -> (T), condition: (T)->(Bool), increment: (T)->(T), body: (T)->()) {

Keybase proof

I hereby claim:

  • I am jonjesbuzz on github.
  • I am jjemson (https://keybase.io/jjemson) on keybase.
  • I have a public key whose fingerprint is A66F D8CF 750B 9908 E9ED 682C F9A0 0B49 4B08 CD27

To claim this, I am signing this object:

#include <stdio.h>
#include <stdlib.h>
#define failprint(...) if (printf(__VA_ARGS__) < 0) { printf("%s\n", "Print failed"); exit(-1);}
int main(int argc, char *argv[]) {
failprint("%s\n", "Hello world");
return 0;
@jonjesbuzz
jonjesbuzz / FunctionPointers.c
Last active August 29, 2015 14:00
Function Pointers in C
#include <stdio.h>
/* Typical Arithmetic Operations */
int add(int a, int b)
{
return a + b;
}
int sub(int a, int b)
{
return a - b;