Skip to content

Instantly share code, notes, and snippets.

View jbowens's full-sized avatar
🍉
free palestine

Jackson Owens jbowens

🍉
free palestine
  • Brooklyn, NY
View GitHub Profile
@jbowens
jbowens / ListCodeDefinition.php
Last active April 9, 2021 09:06
A [list] BBCode definition for jBBCode using [*] for list items.
<?php
require_once "jBBCode" . DIRECTORY_SEPARATOR . "Parser.php";
/**
* Implements a [list] code definition that provides the following syntax:
*
* [list]
* [*] first item
* [*] second item
@jbowens
jbowens / Lock.java
Created April 7, 2013 02:17
A TTAS lock implementation
/**
* A simple lock interface.
*/
public interface Lock {
/**
* Acquires the lock.
*/
void lock();
#include<stdio.h>
#include<fcntl.h>
int main() {
int ret = open("/home/jbowens/lol.txt/", O_WRONLY | O_CREAT);
}