Skip to content

Instantly share code, notes, and snippets.

@bobbydeveaux
bobbydeveaux / bubble.php
Created March 13, 2014 21:26
PHP Bubble Sort
<?php
function main() {
for ($c=0;$c<1000000;$c++) {
bubble();
}
}
function bubble() {
$array = array(3,4,1,3,5,1,92,2,4124,424,52,12);
@bobbydeveaux
bobbydeveaux / bubble.c
Created March 13, 2014 21:29
C Bubble Sort
#include <stdio.h>
void bubble_sort();
int main()
{
long c, x;
for (x = 0; x < 1000000; x++)
{
@bobbydeveaux
bobbydeveaux / bubble.js
Created March 13, 2014 21:32
JS Bubble Sort
function main() {
for (var c = 0; c < 1000000; c++) {
bubble();
}
}
function bubble() {
var array = [3,4,1,3,5,1,92,2,4124,424,52,12];
@bobbydeveaux
bobbydeveaux / bubble.go
Created March 13, 2014 21:33
Go Bubble Sort
package main
// import "fmt"
func main() {
for c := 0; c < 1000000; c++ {
bubble();
}
}
@bobbydeveaux
bobbydeveaux / Bubble.java
Created March 14, 2014 11:43
Java Bubble Sort
public class Bubble
{
public static void main(String[] args)
{
for (int c = 0; c < 1000000; c++) {
bubbleSort();
}
}
public static void bubbleSort()
@bobbydeveaux
bobbydeveaux / robots.txt
Created March 21, 2014 21:22
Robots.txt
# This rule means it applies to all user-agents
User-agent: *
# Disallow go.php as this is a redirection
Disallow: /go.php$
@bobbydeveaux
bobbydeveaux / website.html
Created March 24, 2014 13:02
A simple website
<html>
<head>
<title>This is my title</title>
<style type="text/css">
ul {
background-color: #ff6600;
}
ul li{
list-style-type: none;
display: inline-block;
@bobbydeveaux
bobbydeveaux / process.php
Created February 3, 2017 23:00
Process Word Docs
<?php
function parseWord($wordDoc)
{
$fileHandle = fopen($wordDoc, "r");
$line = @fread($fileHandle, filesize($wordDoc));
$lines = explode(chr(0x0D),$line);
$outtext = '';
foreach($lines as $line) {
package main
import (
"fmt"
)
type IDoor interface {
OpenDoor() string
CloseDoor() string
}

Keybase proof

I hereby claim:

  • I am bobbydeveaux on github.
  • I am bobbydeveaux (https://keybase.io/bobbydeveaux) on keybase.
  • I have a public key ASAtWL4fa6wn2it-eIgOpEbDf5Dp_xFN8DcWNoUPk_vw8wo

To claim this, I am signing this object: