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
import java.util.*; | |
import java.io.PrintStream; | |
import java.util.Scanner; | |
public class A { | |
Scanner sc = new Scanner(getClass().getResourceAsStream(FILENAME)); | |
static final String FILENAME = "file.in"; | |
PrintStream out = System.out; |
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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
APPLICATION="${0##*/}" | |
USAGE="Cookbook installer | |
usage: $APPLICATION -c cookbooks | |
Ensures chef as a dependency and installs cookbooks specified with -c. | |
THIS MUST BE RUN AS ROOT. This script only works with Redhat Enterprise Linux 5 or Mac OSX. |
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
#!/usr/bin/ruby | |
def x2s(x) | |
ret = "" | |
if x.length > 2 | |
while x.length >= 2 | |
ret += x[0..1].hex.chr.to_s | |
x = x[2..-1] | |
end | |
ret += x[0..1].hex.chr.to_s |
NewerOlder