Skip to content

Instantly share code, notes, and snippets.

@ZzZombo
ZzZombo / gem_make.out
Created September 12, 2018 05:16
Log
current directory: C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
C:/RailsInstaller/Ruby2.3.3/bin/ruby.exe -r ./siteconf20180912-8308-1gn7jeq.rb extconf.rb
creating Makefile
current directory: C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean
current directory: C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR="
generating generator-i386-mingw32.def
@ZzZombo
ZzZombo / gist.p6
Last active November 19, 2017 06:20
use NativeCall;
class Encoding::UCS2::Encoder does Encoding::Encoder
{
my Str:D $endianness=nativecast(CArray[uint8],Buf[uint16].new(0x1234))[0].base(16)==12 ?? 'BE' !! 'LE';
my Junction:D $valid-range=(0x0000..0xD7FF)|(0xE000..0xFFFF);
has Bool:D $!write-bom=Bool::True;
has Bool:D $!translate-nl=Bool::True;
has Str:D $!target-endianness='BE';
has Str:D $!replacement='�';
unit class Text::Generator:ver<0.0.1>:auth<ZzZombo>;
has %!word-chain;
has @!delimeters;
has @!whitespace;
grammar BasicText
{
token TOP { (<whitespace> || <word> || <symbol>)* }
token whitespace { \s+ }
@ZzZombo
ZzZombo / generated.txt
Created March 9, 2017 13:46
Results of my random text generator. Enjoy :)
Great of the Afghan Emir Sher Ali with his "friends" to the techniques originally
used were distinctly amateurish – rivalry and counterintelligence was the Great
Game, Ali with his "friends" phrase he portrayed the region by both powers. up
in India, the strategic rivalry and the rise of this development of dedicated
intelligence apparatus with permanent bureaucracies for internal and the
diplomatic system of espionage and the Great Game saw the potential threat it
posed to the colonial rivalries between the rise of transmitting openly received
information, shadowy conflict that a role of systematic espionage and in a
system of this shadowy conflict was first developed. Although the area.[7]
rivalry and conflict that became widespread in the colonial rivalries between
class XML::Object
{
protected:
attribute xmlnode;
...
public:
property XML::File file:read;
...
}
@ZzZombo
ZzZombo / test.p6
Last active November 4, 2017 05:42
say "\"The fallen shards of primal matter had fractured into their original composites: Radiant and Dire. In its pure form, each type of stone gave off a peculiar energy. For those who settled around the sites, they found themselves feeding on this unearthly power until they had not only harnessed the energy but made themselves dependent on it. They built shrines around the Ancients and revered them, ironically, as godlike entities that had fallen to earth.
The Ancients, both Radiant and Dire, provided many benefits: kinetic energy, mana, protection, even resurrection. But the emanations changed everything in their influence. Around the Radiant, the effects were bright and colorful, evoking lightness and charm. Around the Dire, a sinister radioactive glow, a visual seepage indicative of poison and decay. Neither force was neutral; they were both perfect complements and total contradictions that could never be at peace.
As each stone's cultural influence spread, it eventually came in conflict with the societie
interface
type MyFile=class
private
var FFilename:string;
procedure SetFilename(const S:string);
public
property Filename:string read FFilename write SetFilename;
end;
@ZzZombo
ZzZombo / ACS.acs
Last active September 18, 2015 10:18
#library "ACS"
#include "zcommon.acs"
script "ItemPicked"(int amount)
{
int id=ActivatorTID();
str s;
SetActivatorToTarget(0);
s=StrParam(n:0,s:" was picked up by ");
SetActivator(id,AAPTR_MASTER);