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 void SpawnSomething(CCSPlayerController player) | |
{ | |
var playerStats = PlayerStats.GetPlayerStats(player); | |
var locationV3 = Dndcs2.GetViewLocation(player); | |
var location = new Vector(locationV3.X, locationV3.Y, locationV3.Z); | |
playerStats.DragonbornInferno = location; | |
if (location == null) | |
return; | |
//var location = new Vector(target.PlayerPawn.Value.AbsOrigin.X, target.PlayerPawn.Value.AbsOrigin.Y, target.PlayerPawn.Value.AbsOrigin.Z); |
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 Vector3 GetViewLocation(CCSPlayerController player, int distance = 8192, int cutShortDistance = 0) | |
{ | |
var eyePosition = player.PlayerPawn.Value.AbsOrigin; | |
Vector startOrigin = new Vector(eyePosition.X, eyePosition.Y, eyePosition.Z + player.PlayerPawn.Value.ViewOffset.Z); | |
QAngle eyeAngles = player.PlayerPawn.Value.EyeAngles; | |
Vector forward = new(); | |
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
<?php | |
$post = file_get_contents('php://input'); | |
if($post == null) | |
{ | |
echo json_encode(array("ERROR" => "No data was passed to search for.")); | |
} | |
else | |
{ | |
$url = 'http://192.168.1.XXXX:XXXXX/search'; |
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
<LoginScreen@LoadScreen>: | |
id: login_screen | |
name: "login_screen" | |
MDTextField: | |
id: password_textfield | |
name: 'password_textfield' | |
hint_text: "Enter Password" | |
helper_text: "(or click on forgot forgot)" |
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 hotsun; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.Material; | |
import org.bukkit.event.Listener; | |
import org.bukkit.inventory.ItemStack; |
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 hotsun; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class HotSun extends JavaPlugin | |
{ | |
@Override | |
public void onEnable() | |
{ | |
Timers.timer(this); |
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
yearOne = 0 | |
yearTwo = -1 | |
def getYears(): | |
global yearOne, yearTwo | |
prompt = "Enter the years you would like movies for: " |
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 dpkt | |
from socket import inet_ntoa | |
try: | |
import cPickle as pickle | |
except: | |
import pickle | |
from multiprocessing import Process, Queue | |
data = {'source':set([]), | |
'destination':set([]), |
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
from pomegranate import * | |
import dpkt, traceback, random, time | |
# Small test, 1 for all data, 0 for none | |
def log(text): | |
fileName = "HMM-output.txt" | |
with open(fileName, "a+") as output: | |
output.write(text) |
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 dpkt | |
from socket import inet_ntoa | |
import traceback | |
import datetime | |
import sys | |
import csv | |
myAddress = '10.0.0.3' | |
badFrames = 0 |
NewerOlder