Skip to content

Instantly share code, notes, and snippets.

View ArielSaldana's full-sized avatar
coding away.

Ariel Saldana ArielSaldana

coding away.
View GitHub Profile
#!/bin/bash
# Install build dependencies
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
tar zxvf GraphicsMagick-1.3.9.tar.gz
# Configure and compile
package com.ariel.fizzbuzz;
/*
* Fizz Buzz is an interview question designed to help filter out the 99.5% of programming job candidates who can't
* program their way out of a wet paper bag. The text of the programming assignment is as follows :
* "Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number
* and for the multiples of five print "Buzz". For numbers which are multiples of both tree and five print "FizzBuzz".
*/
public class Main {
/**
* Created by Ariel on 6/14/2016.
*/
public class MergeSort {
public static void merge(int [] arr, int start, int mid, int end) {
// our two buckets to compare later
int low[] = new int[(mid-start)+1];
// if anyone ever wants a bubble sort implementation
/**
* Created by Ariel on 6/16/2016.
*/
public class BubbleSort {
public static void sort ( int arr[] ) {
Boolean needsSorting = true;
/**
* Created by Ariel on 6/16/2016.
*/
public class SelectionSort {
public static void sortLoop ( int arr [] ) {
int lowest = 0, current = 0, index = 0;
int i, j; // loops indexes
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');