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
Col 1 | Col 2 | |
---|---|---|
Let's call this "1" | I don't believe you | |
2 | This field contains a newline | |
3, alright | Sacré bleu! |
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 repoke = function() { | |
var pokes = 0; | |
Array.prototype.forEach.call( | |
document.getElementsByTagName("img"), | |
function(el) { | |
if (el.className !== '_3-8_ img') | |
return; | |
var parent = el.parentNode; | |
if (parent.innerHTML.indexOf("Poke Back") == -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
// ==UserScript== | |
// @name Embiggen Kijiji | |
// @description Make Kijiji use higher-resolution listing images. | |
// @namespace ca.seenet.userscripts | |
// @author Samuel Coleman | |
// @version 2017-01-18 | |
// @match http://www.kijiji.ca/* | |
// @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
From 4c4d79c68bb8da4a9f00134ed5adab78d2288ba7 Mon Sep 17 00:00:00 2001 | |
From: Samuel Coleman <samuel@seenet.ca> | |
Date: Thu, 2 Jun 2016 13:23:01 -0400 | |
Subject: [PATCH 1/1] Make terminal windows borderless. | |
This removes the title bar from terminal windows. It has the | |
unfortunate side effect of also making it impossible to resize/move the | |
windows with the mouse. It is most usable when accompanied by a tiling | |
window management application like [Spectacle][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
#!/bin/sh | |
set -e | |
# check if we're running inside an (lxc) container | |
# (we may copy or move this to the postinst script too, to skip installing it) | |
grep -zqs ^container= /proc/1/environ && exit 0 | |
# == binfmt registration/deregistration == | |
if [ -x /usr/sbin/update-binfmts ]; then | |
fmts="aarch64 alpha arm armeb cris i386 m68k microblaze mips mipsel ppc ppc64 ppc64abi32 ppc64le s390x sh4 sh4eb sparc sparc32plus sparc64 x86_64" |
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
public class StaticFieldCacheExample | |
{ | |
/* Define a static field to hold the value. */ | |
private static String cachedValue = null; | |
public static String getCachedValue() | |
{ | |
/* If the value has been previously calculated, return it immediately | |
* instead of performing an expensive calculation. */ | |
if (StaticFieldCacheExample.cachedValue != null) |
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
[global] | |
# Windows networking workgroup and machine name. | |
workgroup = SEESIDE | |
netbios name = nancy | |
# Equivalent to the machine description on a Windows desktop. | |
server string = %h server |
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 python | |
from __future__ import print_function | |
"""Converts keys in Minecraft player stats files from ids (1.7) to names (1.8). | |
Workaround for SPIGOT-167. | |
Requires a table providing ID to name lookup. Mine is available at |
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
"""Provides a lookup table for Minecraft block and item IDs to names. | |
Exposes one dictionary, MC_IDS. Keys are IDs, values are names. | |
""" | |
__author__ = "Samuel Coleman" | |
__copyright__ = "Mojang AB, probably" | |
__credits__ = ["http://minecraft.gamepedia.com/Data_values"] | |
__license__ = "WTFPL" |
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
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.TreeSet; | |
public class Eliminator | |
{ |