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
| /* number of POST TCP packet within Wireshark*/ | |
| const starting_num = 4; | |
| /* filname of json file with './' */ | |
| const data = require("./actual-trace-data"); | |
| const len = data.length; | |
| //console.log("== Contents \n" + JSON.stringify(data) + "\n==========================="); | |
| var sum = 0; |
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
| <!DOCTYPE HTML> | |
| <head> | |
| <title>Kitty Time!</title> | |
| <link href="style.css" rel="stylesheet" type="text/css"> | |
| </head> | |
| <body> | |
| <div id="background"> | |
| <div class="row"> | |
| <img class="kitty" src="http://4.bp.blogspot.com/-_vTDmo_fSTw/T3YTV0AfGiI/AAAAAAAAAX4/Zjh2HaoU5Zo/s1600/beautiful+kitten.jpg"> | |
| <img class="kitty" src="https://www.rspcasa.org.au/wp-content/uploads/2019/01/Adopt-a-cat-or-kitten-from-RSPCA.jpg"> |
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
| <!DOCTYPE html> | |
| <head> | |
| <script> | |
| var CLIENT_ID = "" | |
| function sendRequest(){ | |
| } | |
| if(CLIENT_ID === ""){ |
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
| # Tristan Hilbert | |
| # 2/17/2020 | |
| # 1 [] | |
| # 2 [] | |
| # 3 [1, 2] | |
| import random | |
| example = [ |
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 random | |
| # SET | |
| # GOOD: 1 2 3 4 5 6 7 8 | |
| # BAD: 1 1 1 2 3 4 5 => 1 2 3 4 5 | |
| # Good: "hello", "Hello", "H3ll0" | |
| # derp = codesters.Sprite("ufo") | |
| # derp1 = derp | |
| # Good: derp |
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
| var obsCooldown = 40; | |
| var obstacleSpawner = obsCooldown; | |
| function updateGameState() { | |
| scrollSpeed += 0.001 | |
| // update player position and velocity | |
| player.y += player.y_velocity | |
| if (player.y >= groundLevel - PLAYER_SIZE) { // touching ground? | |
| player.y = groundLevel - PLAYER_SIZE; |
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
| # Tristan Hilbert | |
| # Text RPG Engine | |
| import random | |
| class Character: | |
| def __init__(self): | |
| self.name = "default" | |
| self.health = 100 |
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 com.example.examplemod; | |
| import net.minecraft.block.Block; | |
| import net.minecraft.block.Blocks; | |
| import net.minecraft.entity.player.ServerPlayerEntity; | |
| import net.minecraft.server.MinecraftServer; | |
| import net.minecraft.util.text.StringTextComponent; | |
| import net.minecraft.util.text.TextComponent; | |
| import net.minecraftforge.common.MinecraftForge; | |
| import net.minecraftforge.event.CommandEvent; |
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
| # Get a positive number from the user | |
| pos_num_str = input("Give Me A Positive Number") | |
| # pos_num_str is a string when we obtain it. | |
| # it must be "casted" to a number | |
| pos_num = int(pos_num_str) | |
| # Add up all numbers between 1 and that number |
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
| lst = [] | |
| lst.append(1) | |
| lst.append(2) | |
| lst.append(3) | |
| lst.append(4) | |
| lst.append(5) | |
| print(lst) | |
| var = "hello" |
OlderNewer