Skip to content

Instantly share code, notes, and snippets.

View serverhiccups's full-sized avatar
💜
jag håller på att lära mig alla språken!

serverhiccups serverhiccups

💜
jag håller på att lära mig alla språken!
View GitHub Profile
@serverhiccups
serverhiccups / advancedtopics.user.js
Last active February 21, 2016 02:17
Change discuss link on scratch to advanced topics (Now replaces the explore button instead)
// ==UserScript==
// @name Advanced Topics Linker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Replace explore with Advanced Topics link
// @author Dylan5797 (and hiccup01)
// @match https://scratch.mit.edu/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@serverhiccups
serverhiccups / mcscratch.js
Last active October 20, 2023 08:09
A script to update a minecraft server status on a scratch project. Requires scratch-api, yargs and boing.
#!/usr/bin/env node
// Minecraft server > Scratch Status
// by hiccup01
// hiccup01.com
// Copyright (c) 2016 hiccup01 <hiccup@hiccup01.com>
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@serverhiccups
serverhiccups / macosxinstall.sh
Last active January 4, 2016 23:17
A kea installer for Mac OSX.
#!/bin/bash
#This is a shell script created by hiccup01 to install kea on Mac OSX.
VERSION="0.0.1" #Installer version
BVERSION="0.2.2" #Browser version
echo "Thanks for installing kea"
echo "You are running Mac OSX kea installer version $VERSION for kea version $BVERSION."
echo "This installer was created by hiccup01 (hiccup01.com)"
sleep 1
echo "At some points you may be prompted to enter your password. Type it and press \"enter\". (It will not display your password on screen)"
sleep 3
@serverhiccups
serverhiccups / poem.md
Last active December 6, 2015 07:08
A poem for school.

A eventful garden

Roses are red, Voilets are red, Trees are red, Your garden's on fire.

By hiccup01

@serverhiccups
serverhiccups / swiki.js
Last active March 25, 2016 00:08
A js program to search the scratch wiki.
var searchterm = encodeURI(prompt("Enter your search term"));
if searchterm = null {
console.log("Error: null is invalid input.")
} else {
var url = "http://wiki.scratch.mit.edu/w/index.php?title=Special%3ASearch&profile=default&search=" + searchterm + "&fulltext=Search";
window.open(url);
}
@serverhiccups
serverhiccups / playnotes.ino
Created November 2, 2015 06:30
A test piece of code
int incomingByte = 0; // for incoming serial data
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
int tonePin = 9;
}
void loop() {
@serverhiccups
serverhiccups / test.js
Last active November 6, 2015 04:50
My current phosphate code
$(document).ready(function(){
var scratch_player = $(".stage");
var url = window.location.href;
url = url.substr(33,40);
$(scratch_player).empty();
$(scratch_player).append("<script src='https://phosphorus.github.io/embed.js?id=", url, "&auto-start=false&light-content=false'></script>");
});
@serverhiccups
serverhiccups / test.html
Created October 10, 2015 19:01
light.js test
DOCTYPE? HTML
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script>
$("#go").click(function() {
var iframe = $("#ifm");
var url = $('#urlbar').val();
$("iframe").attr("src", url);
</head>