Skip to content

Instantly share code, notes, and snippets.

View minecraft color code to name.java
// where variable c is a string of one of 0123456789abcdef
int d = Integer.parseInt(c,16);
String result = (d==0||d==15?"":d<7||d==8?"dark ":"light ")+(
d==0?"black":d==1?"blue":d==2?"green":d==3?"aqua":d==4?"red":d==5?"purple":
d==6?"yellow":d==7?"gray":d==8?"gray":d==9?"blue":d==10?"green":d==11?"aqua":
d==12?"red":d==13?"purple":d==14?"yellow":d==15?"white":"unknown colour")
// fun fact: dark gray is light black and light gray is dark white
@mekb-turtle
mekb-turtle / mess current site.js
Last active Aug 1, 2019
Changes all the text to random characters, rotates everything at random angles, resizes everything at random sizes. Paste in Developer Console.
View mess current site.js
function rndCol() {
var letters = '0123456789ABCDEF';
var color = '#';
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)];
}
return color;
}
setInterval( function() {
var elements = document.getElementsByTagName("*");
View impossible dino chrome.js
i=0;z=0;
setInterval(function(){
document.getElementsByClassName("runner-container")[0].style.height=document.getElementsByClassName("runner-container")[0].style.width;
document.getElementsByClassName("runner-canvas")[0].style.transform = "rotate("+i+"deg)";
i+=Math.cos(z)*6;
z+=0.06;
},60);
View Chrome Invalid Certificate Error Message.md

Your connection is not private

Attackers might be trying to steal your information from example.com (for example, passwords, messages, or credit cards). Learn more

NET::ERR_CERT_COMMON_NAME_INVALID

Hide advanced

Back to safety



This server could not prove that it is example.com; its security certificate is from example.org. This may be caused by a misconfiguration or an attacker intercepting your connection.

Proceed to example.com (unsafe)
@mekb-turtle
mekb-turtle / hexdump.cs
Last active Jul 20, 2019
C# Hexdump program
View hexdump.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace hexdump
{
class Program
@mekb-turtle
mekb-turtle / .gitignore
Last active Apr 27, 2020 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@mekb-turtle
mekb-turtle / google image atari breakout cheat.js
Created Apr 29, 2019
A cheat AI for Google images breakout.
View google image atari breakout cheat.js
function cheat() {
var ball = document.getElementById('breakout-ball');
var paddle = document.getElementById('breakout-paddle');
var buffer = Math.floor((Math.random()*100)+1);
var leftVal = parseInt(ball.style.left, 10);
if (ball.style.left) {
paddle.style.left = (leftVal - buffer - 100) + 'px';
}
@mekb-turtle
mekb-turtle / dinorunnerdebugetc.js
Last active Jun 8, 2019
3 cool functions to change the runner speed, make it invincible and vincible. On the dino runner game, chrome://dino.
View dinorunnerdebugetc.js
function setSpeed(x) { Runner.instance_.setSpeed(x); }
var gameoverfunction = Runner.instance_.gameOver;
function invincible() { Runner.instance_.gameOver = function() {}; }
function vincible() { Runner.instance_.gameOver = gameoverfunction; }