This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
| package com.filters; | |
| import java.io.BufferedInputStream; | |
| import java.io.BufferedReader; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.io.StringReader; | |
| import java.nio.charset.Charset; |
| #NoEnv | |
| #SingleInstance force | |
| SendMode Input | |
| DetectHiddenWindows, on | |
| SetWinDelay, 0 | |
| #`:: | |
| terminal := WinExist("ahk_exe WindowsTerminal.exe") | |
| if (terminal) | |
| { |
| package sandbox; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Modifier; | |
| public class MainSandBox { | |
| public static void main(String[] args) throws Exception { | |
| Example ex = new Example(); | |
| // Change private modifier to public | |
| Field f = ex.getClass().getDeclaredField("id"); |
| # given a directory or a set of files | |
| # concatenate the binary files | |
| # output a single binary file | |
| # usage: | |
| # ruby concatenate_binary_files "/xxx/xx/*.bin" "/xxx/xx.bin" | |
| infiles = ARGV[0] | |
| outpath = ARGV[1] | |
| File.open(outpath, 'wb') do |outfile| |
| #!/usr/bin/env ruby | |
| require 'test/unit' | |
| class TestSums < Test::Unit::TestCase | |
| def setup | |
| @a = [2, 5, 18, 27] | |
| @sum = 0 | |
| end |
| package core; | |
| public class Base58 { | |
| private static final char[] ALPHABET = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" | |
| .toCharArray(); | |
| private static final int BASE_58 = ALPHABET.length; | |
| private static final int BASE_256 = 256; | |
| private static final int[] INDEXES = new int[128]; |
| Copyright (C) 2011 by Colin MacKenzie IV | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in |