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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<!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 { |
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
.chat_page_header { | |
display: none; | |
} | |
#chat_friendslist_area { | |
position: fixed; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
} |
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
#!/usr/bin/env python2.7 | |
import requests | |
import datetime | |
import calendar | |
import time | |
import json | |
from pprint import pprint | |
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
<?php | |
if (!defined('MEDIAWIKI')) { | |
exit(1); | |
} | |
$wgExtensionCredits['other'][] = array( | |
"name" => "ContextualLogo", | |
"author" => "sk89q", | |
"version" => '0.1.0', | |
"url" => "http://www.sk89q.com", |
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
--[[ | |
Node Panel Display | |
by sk89q | |
]]-- | |
dofile("npanel_conf.lua") | |
dofile("serpent.lua") | |
dofile("util.lua") | |
local function validateColor(allowNone) |
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
--[[ | |
Remote Request | |
by sk89q | |
]]-- | |
function periph(side) | |
while true do | |
local p = peripheral.wrap(side) | |
if p then return p end | |
os.sleep(1) |
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
body { | |
overflow: hidden; | |
} | |
#chat_friendslist_area { | |
position: fixed; | |
top: 0; | |
left: 0; | |
bottom: 0; | |
width: 180px; |
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
<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"> |
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
// 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; |
NewerOlder