Skip to content

Instantly share code, notes, and snippets.

View CedricLeong's full-sized avatar

cedric leong CedricLeong

  • Toronto, Canada
View GitHub Profile
public interface election extends Remote{
public void vote (String candidate, int voteNum) throws RemoteException;
public String result() throws RemoteException;
}
@CedricLeong
CedricLeong / gist:9674724
Created March 20, 2014 21:53
Code snippet of a file system I made, it keeps tracks of files.
#include "i_node.h"
#include "blockio.h"
#include "error.h"
#include <math.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
// Global data that should be visible to inode and super block
HTML:
// Input
<span id="editable-math" class="mathquill-editable" ></span></p>
//Latex Code not shown to user
<p><textarea id="latex-source" style="display:none;"></textarea></p>
// Button to convert input to image
<p><button id="codecogs">Render LaTeX as an image with Code Cogs</button> <a id="codecogslink"><img id="codecogsimg" alt="LaTeX rendered as an image"> </a></p>
-----------------------------------------------------------------------------------------------------------------------
Javascript: