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
// This is how the WorlViewProj matrix is computed: | |
Matrix worldViewProj; | |
Matrix.Multiply(ref world, ref view, out worldView); | |
Matrix.Multiply(ref worldView, ref projection, out worldViewProj); | |
// This is how it is used in the HLSL file: | |
struct CommonVSOutput | |
{ | |
float4 Pos_ps; | |
float4 Diffuse; |
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
$model_name =~ s/^\/(.*)\/$/$1/; | |
if ($model_name =~ m/([^\\]|^)\//) | |
{ | |
print STDERR "Invalid model name regex.\n"; | |
exit 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
#pragma once | |
#include <ostream> | |
#include <set> | |
#include <string> | |
#include <sstream> | |
#include <iostream> | |
using namespace std; |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Reflection; | |
namespace DLL_Pirate | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
void Downloader::DumbQueue::EnqueueUpdate(IAVEObject ^update) { | |
// Do nothing. | |
} |
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
#ifdef _DEBUG | |
#include <ostream> | |
#define _CRTDBG_MAP_ALLOC | |
#include <crtdbg.h> | |
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) | |
#define new DEBUG_NEW | |
#endif | |
// ... |
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
void quack::reverse(void) | |
{ | |
int i, j, temp=0; | |
for (i=(frontInt), j=0; j<((numItems/2)+1); | |
i = (i+1) % mySize, j++) { | |
temp = items[i].n; | |
items[i].n = items[(backInt-j)%mySize].n; | |
items[(backInt-j)%mySize].n = temp; | |
} |
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
float2 screenVector; | |
sampler2D input : register(s0); | |
float4 main(float2 uv : TEXCOORD) : COLOR | |
{ | |
float4 toReturn; | |
float4 leftColor; | |
float4 midColor; | |
float4 rightColor; |
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
#include <iostream> | |
#include <iomanip> | |
#include <cmath> | |
using namespace std; | |
bool isPrime (long long n) | |
{ | |
bool tempbool = true; | |
if (n <= 3) { |
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/python | |
from irc.client import n_to_nm | |
import irc.bot | |
import string | |
# Stupid definitions: | |
server = [("kremlin.pncks.com", 6667)] | |
channel = "#BotTesting" | |
nickname = "StackBot" |