Skip to content

Instantly share code, notes, and snippets.

@cguldner
cguldner / SE Comment Close Button
Last active December 18, 2015 09:38
Close button for the Stack Exchange comment box
// ==UserScript==
// @name Cancel Link for Comment Box
// @namespace https://gist.github.com/burn123/5762405
// @description Includes a cancel line to close the comment box if you open it
// @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*
@cguldner
cguldner / gist:5674710
Last active December 17, 2015 21:29
Up arrow to trigger commenter name
// ==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*
@cguldner
cguldner / Link only Answers
Last active December 17, 2015 18:08
Link only Answer flagging for the Stack Exchange
@cguldner
cguldner / gist:5484871
Created April 29, 2013 21:19
Auto Review Comment Stack Overflow Script
// ==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*
@cguldner
cguldner / index.html
Created March 15, 2013 23:36
A CodePen by Žiga Miklič. Pure CSS Google logos - I recreated the logos that I have in my Google Chrome browser, using only HTML5 and CSS3.
<section>
<!-- START YouTube -->
<article>
<div id="youtube"></div>
<footer>
<h3>YouTube</h3>
</footer>
</article>
<!-- END YouTube -->
//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){
@cguldner
cguldner / Guess#.py
Last active January 30, 2024 13:52
A simple number game that I built using python
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!")