This file contains hidden or 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
| void printBitsI(unsigned int num) | |
| { | |
| for (int bit = 0; bit<(sizeof(unsigned int) * 8); bit++) { | |
| printf("%i ", num & 0x01); | |
| num = num >> 1; | |
| } | |
| } | |
| void printBitsC(unsigned char num) | |
| { |
This file contains hidden or 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
| //-------------------------------------- | |
| //--- 010 Editor v5.0.2 Binary Template | |
| // | |
| // Author: rhulha | |
| // Purpose: 010 Editor Binary Template for Quake3 BSP files | |
| //-------------------------------------- | |
| LittleEndian(); | |
| char signature[4]; |
This file contains hidden or 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.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import javax.sound.sampled.*; | |
| import net.raysforge.commons.Codecs; | |
| import net.raysforge.commons.Json; |
This file contains hidden or 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 FairCom.CtreeDb.*; | |
| import FairCom.CtreeDb.Types.*; | |
| import java.util.Calendar; | |
| /** | |
| * Java + JTDB Hello world Example | |
| * | |
| */ | |
| public class App { | |
| public static void main(String[] args) { |
This file contains hidden or 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 srt2vtt; | |
| import java.io.*; | |
| public class Srt2Vtt { | |
| enum State { Number, TimeStamp, Text }; | |
| public void convert(Reader srt, Writer vtt) throws IOException { | |
| BufferedReader br = new BufferedReader(srt); | |
| String line; |
This file contains hidden or 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 com.marklogic.client.*; | |
| import com.marklogic.client.document.*; | |
| import com.marklogic.client.io.*; | |
| import com.marklogic.client.query.*; | |
| public class TestMarkLogic { | |
| public static void main(String[] args) { | |
| DatabaseClient client = DatabaseClientFactory.newClient("localhost", 8000, "Admin", "Admin", DatabaseClientFactory.Authentication.DIGEST); |
This file contains hidden or 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 net.raysforge.visual.demo; | |
| import java.awt.Color; | |
| import java.awt.Font; | |
| import java.awt.GridLayout; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.stream.Collectors; |
This file contains hidden or 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 net.raysforge.visual.demo; | |
| import java.awt.Color; | |
| import java.awt.Container; | |
| import java.awt.Font; | |
| import java.awt.GridLayout; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.util.ArrayList; | |
| import java.util.List; |
This file contains hidden or 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 net.raysforge.visual.demo; | |
| import java.awt.Color; | |
| import java.awt.Container; | |
| import java.awt.Font; | |
| import java.awt.GridLayout; | |
| import java.awt.Point; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.util.ArrayList; |
This file contains hidden or 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
| public static boolean deepCompare(Object o1, Object o2) { | |
| try { | |
| ByteArrayOutputStream baos1 = new ByteArrayOutputStream(); | |
| ObjectOutputStream oos1 = new ObjectOutputStream(baos1); | |
| oos1.writeObject(o1); | |
| oos1.close(); | |
| ByteArrayOutputStream baos2 = new ByteArrayOutputStream(); | |
| ObjectOutputStream oos2 = new ObjectOutputStream(baos2); | |
| oos2.writeObject(o2); |