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
// ==UserScript== | |
// @name Up arrow commenter tool | |
// @namespace https://gist.github.com/burn123/5674710 | |
// @description Press Up arrow to access the name of the commenter when using the @ symbol | |
// @include http://*stackoverflow.com/questions* | |
// @include http://*stackoverflow.com/review* | |
// @include http://*stackoverflow.com/admin/dashboard* | |
// @include http://*stackoverflow.com/tools* | |
// @include http://*serverfault.com/questions* | |
// @include http://*serverfault.com/review* |
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
// ==UserScript== | |
// @name Link Only Answers | |
// @namespace https://gist.github.com/burn123/5650628 | |
// @description Adds a self navigating "Link-Only Answer" flag | |
// @include http://*stackoverflow.com/questions* | |
// @include http://*stackoverflow.com/review* | |
// @include http://*stackoverflow.com/admin/dashboard* | |
// @include http://*stackoverflow.com/tools* | |
// @include http://*serverfault.com/questions* | |
// @include http://*serverfault.com/review* |
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
// ==UserScript== | |
// @name AutoReviewComments | |
// @namespace benjol | |
// @version 1.2.8 | |
// @description Add pro-forma comments dialog for reviewing (pre-flag) | |
// @grant none | |
// @include http://*stackoverflow.com/questions* | |
// @include http://*stackoverflow.com/review* | |
// @include http://*stackoverflow.com/admin/dashboard* | |
// @include http://*stackoverflow.com/tools* |
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
<section> | |
<!-- START YouTube --> | |
<article> | |
<div id="youtube"></div> | |
<footer> | |
<h3>YouTube</h3> | |
</footer> | |
</article> | |
<!-- END YouTube --> |
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
//index.php | |
<?php | |
if(!empty($_COOKIE['passed_index'])){ | |
header("Location:q1.php"); | |
} | |
if(array_key_exists("dad", $_POST)){ | |
$dad = $_POST["dad"]; | |
$correct_answer = "Fail"; | |
if($dad == $correct_answer){ |
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
import random #bring in the random number | |
import time | |
number=random.randint(1, 200) #pick the number between 1 and 200 | |
def intro(): | |
print("May I ask you for your name?") | |
name=input() #asks for the name | |
print(name + ", we are going to play a game. I am thinking of a number between 1 and 200") | |
time.sleep(.5) | |
print("Go ahead. Guess!") |