View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View index.html
<!DOCTYPE html>
<html>
<head>
<title>Deduplicate Spotify tracks based on track artist and title</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style>
body {
padding: 40px;
}
#input {
View chat.css
.chat_page_header {
display: none;
}
#chat_friendslist_area {
position: fixed;
top: 0;
left: 0;
bottom: 0;
}
View lastfm_scrobbles_to_spotify.py
#!/usr/bin/env python2.7
import requests
import datetime
import calendar
import time
import json
from pprint import pprint
View ContextualLogo.php
<?php
if (!defined('MEDIAWIKI')) {
exit(1);
}
$wgExtensionCredits['other'][] = array(
"name" => "ContextualLogo",
"author" => "sk89q",
"version" => '0.1.0',
"url" => "http://www.sk89q.com",
View npanel.lua
--[[
Node Panel Display
by sk89q
]]--
dofile("npanel_conf.lua")
dofile("serpent.lua")
dofile("util.lua")
local function validateColor(allowNone)
View remreq.lua
--[[
Remote Request
by sk89q
]]--
function periph(side)
while true do
local p = peripheral.wrap(side)
if p then return p end
os.sleep(1)
View compact_steam_chat.css
body {
overflow: hidden;
}
#chat_friendslist_area {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 180px;
View package.xml
<package version="1.1">
<filegroup source="http://example.com/path/to/folder/with/files/" dest=".">
<archive size="SIZE_IN_BYTES">THE_ZIP_NAME.zip</archive>
</filegroup>
<filegroup source="http://s3.amazonaws.com/MinecraftDownload/" dest="bin" verify="md5">
<file size="738345">lwjgl.jar</file>
<file size="227833">jinput.jar</file>
<file size="138318">lwjgl_util.jar</file>
</filegroup>
<filegroup source="http://s3.amazonaws.com/MinecraftDownload/" dest="bin/natives" verify="md5">
View EnderPearlHomes.java
// Available under GPLv3
package com.sk89q.skcraft;
import java.util.Random;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.command.CommandSender;