Skip to content

Instantly share code, notes, and snippets.

View ararog's full-sized avatar

ararog ararog

  • Brazil
  • 14:56 (UTC -03:00)
View GitHub Profile
@ararog
ararog / monitor.ps1
Created November 5, 2013 10:01
This script does a computer monitor lookup.
[CmdletBinding(DefaultParameterSetName="ComputerName")]
param (
[Parameter(Mandatory = $FALSE, ParameterSetName="ComputerName", HelpMessage="Name of computer to check")]
[String]
$ComputerName
)
Function InArray($element, $array, $position) {
If($array.Count -eq 0) {
@ararog
ararog / AnagramFinder.java
Last active July 28, 2016 19:47
This program takes a text file with a list of words and checks how many words can be formed with the letters provided by command line argument.
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import org.apache.commons.lang.StringUtils;
package com.atlantbh.nutch.filter.xpath;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.Arrays;