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
// The Chatbot run on | |
// @Upgoat (StackExchange) | |
// http://codegolf.stackexchange.com/users/47996 | |
function Speak(out,m) {document.getElementById("input").value=(m?":"+m.id.split("-")[1]+" ":"")+out;document.getElementById("sayit-button").click()} | |
Array.prototype.random = function() { return this.length ? this[Math.floor(Math.random() * this.length)] : "<broken goat/no items>" }; | |
//console.log = (function(old){return function(){Speak.apply(this, arguments);old.apply(console, arguments)}}(console.log)); | |
function WolframQuery(search,callback){var x=new XMLHttpRequest();x.onreadystatechange=function(){if(x.readyState===4){if(x.status===200){callback(x.responseXML)}}};x.open("GET","https://crossorigin.me/http://api.wolframalpha.com/v2/query?input="+encodeURIComponent(search)+"&appid=<TOP_SECRET_APP_ID>");x.send();} |
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
// The Chatbot run on | |
// @Upgoat (StackExchange) | |
// http://codegolf.stackexchange.com/users/47996 | |
// This Chatbot is designed for learning how to have a conversation | |
// It does this by having conversations with you, taking alternating parts | |
// Bascically through enough supervised learning it should be able to talk | |
function Speak(out,m) {document.getElementById("input").value=(m?":"+m.id.split("-")[1]+" ":"")+out;document.getElementById("sayit-button").click()} | |
Array.prototype.random = function() { return this.length ? this[Math.floor(Math.random() * this.length)] : "<broken goat/no items>" }; |
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 PPCG Design | |
// @namespace Doᴡɴɢᴏᴀᴛ | |
// @version 1 | |
// @author Doᴡɴɢᴏᴀᴛ | |
// @grant none | |
// ==/UserScript== | |
function qS(x){ | |
return document.querySelector(x); |
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
var GETPOSTS = "https://api.stackexchange.com/2.2/questions/2140/answers?order=desc&sort=activity&site=meta.codegolf&filter=!)-gsFaSk.oj2nuNj6)8Hom.rAmUEuzZB.r0FZLYI"; | |
function GetChallenges(user, callback) { | |
GetUserPosts(user, function(posts) { | |
callback(posts.map(function(post) { | |
return { | |
title: (post.body_markdown.match(/(?:^|\n)\s*(?:#+|\*\*)(.+?)(?:\*\*|#|\n|$)/)||["","Unknown Title"])[1], | |
score: { | |
up: post.up_vote_count, | |
down: post.down_vote_count |
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
Pyth - <h2>Pyth, <s>40</s> <s>36</s> <s>34</s> 32 bytes</h2> | |
Ruby - <h2>Ruby (2.2.2p95), 124 bytes</h2> | |
TeaScript - <h1><a href="https://esolangs.org/wiki/TeaScript" rel="nofollow">TeaScript</a>, 16 bytes</h1> | |
Bash - <h1>Bash</h1> | |
Jelly - <h1>Jelly, 29 bytes</h1> | |
Pyth - <h2>Pyth, 17 bytes</h2> | |
JavaScript - <h1>JavaScript, 131238 - 10 = 131228 bytes</h1> | |
Vitsy - <h1>Vitsy, 40 bytes</h1> | |
Java - <h2>Java, 81 bytes</h2> | |
Brainf*ck - <h1>Brainf*ck, <s>489</s> 466 characters</h1> |
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
32: " " | |
33: "🐐" | |
34: "🦄" | |
35: "✨" | |
36: "🌈" | |
37: "1" | |
38: "2" | |
39: "3" | |
40: "4" | |
41: "5" |
![downgoat1.jpg](https://gist.github.com/vihanb/3fb94bfaa7364ccdd8e2/raw/b087e6e4e6cc15853110f4b38f4723d08a816f24/downgoat1.jpg)
![downgoat0.jpg](https://gist.github.com/vihanb/b1636465272f26d7f903/raw/7e0fca4cd2c39b818ee874dff932e7991401bfcb/downgoat0.jpg)
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 No more chat beta! | |
// @namespace asdjhfkljashdflkjahsdlfkahsdlkjahsdlkf | |
// @version 0.1 | |
// @description Graduates PPCG Chat | |
// @author Downgoat | |
// @match *://http://chat.stackexchange.com/* | |
// @grant none | |
// ==/UserScript== |
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 stahp with username changes | |
// @namespace eoisdhfqlkjasdf | |
// @version 1.0 | |
// @description self explanatory | |
// @author You | |
// @match *://*.stackexchange.com/* | |
// @grant none | |
// ==/UserScript== |
OlderNewer