This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'); |