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
# Script to generate cryptokitty images using assets from: | |
# https://github.com/BytesForBites/cryptokitty-designer | |
# NOTE: requires imagemagick built with --with-librsvg | |
require 'rubygems' | |
require 'rmagick' | |
require 'digest' | |
class KittyGen |
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
require 'rubygems' | |
require 'rmagick' | |
require 'digest' | |
def build_cat(seed=nil) | |
srand(Digest::MD5.hexdigest(seed.to_s)[0...6].to_i(16)) if !seed.nil? | |
# throw the dice for body parts | |
parts = [ | |
['body', rand(15)+1], |
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
// Example connection class for Torque2D/Torque3D network code | |
class ExampleNetConnection : public NetConnection | |
{ | |
public: | |
typedef NetConnection Parent; | |
static const U32 CurrentProtocolVersion; | |
static const U32 MinRequiredProtocolVersion; | |
/// Configuration |
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
#----------------------------------------------------------------------------- | |
# Test PBMS master client | |
# ( use with https://github.com/jamesu/PushButton-Master-Server ) | |
# | |
# Copyright (C) 2016 James S Urquhart. | |
# | |
# 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 |
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
-- premake5.lua | |
-- Project file creator for T3D | |
-- Usage: premake5 <toolchain> | |
-- (C)2016-2019 James S Urquhart. Feel free to use wherever. | |
-- | |
-- Instructions: | |
-- * Copy Templates/Full to a folder in "My Projects" | |
-- * Change PROJECT_NAME to match this folder name | |
-- * Change WORKSPACE_NAME to your desired workspace name |
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
// Only load these functions if an Oculus VR device is present | |
if(!isFunction(OpenVRIsCompiledIn)) | |
return; | |
$Video::VREnabled = false; | |
function setupOpenVRActionMaps() | |
{ | |
new ActionMap(VRCanvasMap); |
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
// Don't ask | |
#include "core/crc.h" | |
struct GFXSamplerStateDesc2 | |
{ | |
GFXTextureAddressMode addressModeU; | |
GFXTextureAddressMode addressModeV; | |
GFXTextureAddressMode addressModeW; |
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
function onStart() | |
{ | |
} | |
function onExit() | |
{ | |
} | |
function parseArgs() |
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
// ******** | |
TorqueScript code | |
// ******** | |
$shit = 1; | |
$fudge = 2 + 2.3; | |
if ($fudge < 2) // TOFIX | |
{ |
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
//----------------------------------------------------------------------------- | |
// Copyright (c) 2012 GarageGames, LLC | |
// | |
// 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: | |
// |