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
public static float dist(float x1, float y1, float x2, float y2) { | |
return (float) Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)); | |
} | |
public static float getRayCast(float p0_x, float p0_y, float p1_x, float p1_y, float p2_x, float p2_y, float p3_x, float p3_y) { | |
float s1_x, s1_y, s2_x, s2_y; | |
s1_x = p1_x - p0_x; | |
s1_y = p1_y - p0_y; | |
s2_x = p3_x - p2_x; |
This file has been truncated, but you can view the full file.
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
"lang" | |
{ | |
"Language" "English" | |
"Tokens" | |
{ | |
// --------------------------------------------------------------------------------------------- | |
// GAMEUI_ENGLISH.txt | |
"GameUI_MainMenuMovieScene" "Main Menu Background Scenery" |
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
#!/bin/sh | |
echo "apt" | |
apt update | |
apt upgrade -y | |
apt install snap ufw byobu fail2ban git zsh unattended-upgrades curl -y | |
echo "ufw stuff" | |
yes | ufw enable | |
ufw allow 63682 |
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
extern crate rand; | |
use rand::prelude::*; | |
use std::io::{self, Write}; | |
#[derive(PartialEq, Debug, Clone, Copy)] | |
enum Cell { | |
Covered(bool), | |
Revealed(u8) | |
} |
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
/* | |
Tic-Tac-Toe | |
━━━━━━━━━━━ | |
Kevin Language Example program | |
By: Brandon Dyer <github.com/BrandonDyer64> | |
*/ | |
import Console from "console" |
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
<?php | |
include("../../bin/do_not_change/standard_validation_regex.php"); | |
unset($field); unset($index); | |
// TODO: Table Name | |
$table = "sample_table"; | |
/* Table Plural * | |
$table_plural = "sample_tables"; /*/ | |
$table_plural = $table . 's'; /**/ |
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
Computer Information: | |
Manufacturer: Unknown | |
Model: Unknown | |
Form Factor: Desktop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz | |
CPU Family: 0x6 |
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('wcpp').sync() | |
// Require our module | |
const addTwo = require('./addTwo.cpp') | |
// Run our C++ function | |
console.log('2 + 3 = ' + addTwo(2, 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
export int module(int a, int b) { | |
return a + b; | |
} |
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
/* Material Colors */ | |
:root { | |
--blue: #2196F3; --blue-light: #BBDEFB; --blue-dark: #1976D2; | |
--light-blue: #03A9F4; --light-blue-light: #B3E5FC; --light-blue-dark: #0288D1; | |
--blue-gray: #607D8B; --blue-gray-light: #CFD8DC; --blue-gray-dark: #455A64; | |
--indigo: #3F51B5; --indigo-light: #C5CAE9; --indigo-dark: #303F9F; | |
--purple: #9C27B0; --purple-light: #E1BEE7; --purple-dark: #7B1FA2; | |
--deep-purple: #673AB7; --deep-purple-light: #D1C4E9; --deep-purple-dark: #512DA8; | |
--pink: #E91E63; --pink-light: #F8BBD0; --pink-dark: #C2185B; | |
--red: #F44336; --red-light: #FFCDD2; --red-dark: #D32F2F; |
NewerOlder