This file contains hidden or 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
require "nokogiri" | |
require "open-uri" | |
`rm fontUrls` | |
fontUrlFile = File.open("fontUrls", "a") | |
(1..50).each do |pageIndex| | |
page = Nokogiri::HTML(open("http://www.dafont.com/top.php?page=#{pageIndex}")) | |
page.css(".dlbox .dl").each do |downloadButton| | |
fontUrlFile.puts "https:#{downloadButton['href']}" | |
puts downloadButton["href"] |
This file contains hidden or 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 Cookie Clicker Clicking CPS | |
// @namespace CookieClickerClickCPS | |
// @description Shows your clicking within the CPS count of Cookie Clicker | |
// @include http://orteil.dashnet.org/cookieclicker/ | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
Game.AE_realMouseCps = 0; | |
Game.AE_clicksThisTimePeriod = 0; |
This file contains hidden or 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
require "rmagick" | |
RESOLUTION = 800 | |
def localToGlobalCoords(n) | |
#local go from -1 to 1 | |
#global go from 0 to RESOLUTION | |
#x always equals y, the image is square | |
return ((n + 1)*(RESOLUTION/2)).floor | |
end |
This file contains hidden or 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 ctypes import * | |
import pygame | |
res = (620, 400) | |
keySize = (100, 100) | |
keyMargin = 20 | |
spaceSize = (res[0] - keyMargin * 2, 100) | |
backgroundColor = (0, 0, 0) | |
activeColor = (255, 255, 255) | |
deactiveColor = (128, 128, 128) |
This file contains hidden or 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/ruby | |
PNGHEADER = [0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A] | |
PNGENDING = [0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82] | |
pngHeaders = [] | |
File.open("data.win", "rb") do |file| | |
puts "searching for png headers" | |
globalIndex = 0 | |
headerInnerIndex = 0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
require 'cinch' | |
require 'cinch/plugins/identify' | |
require 'json' | |
LOOKFORWARD = 2 #how many words forward it generates from a seed word | |
BOTNAME = "MarkovBot" | |
def prepareString(str) | |
#return str.downcase.split(/(\W)+/).map{|word| word.gsub(/\s+/, "")}.reject{|word| word == ""} to remind you what it was | |
return str.split(/\s+/) |
This file contains hidden or 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
#include <stdio.h> | |
#include <ctype.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <gmp.h> | |
#define VERBOSE_ONLY if(isVerbose) | |
int isVerbose = 0; |
This file contains hidden or 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
local areaSize = 700 --128 | |
local brickSize = 4 --4 | |
local noiseScale = 64 --32 | |
local noiseMagnitude = 50 --50 | |
local aboutHeight = 0.65 --0.65 | |
local playerGenRadius = 128 --64 | |
--the level indicates the bottom of the region | |
local snowLevel = 128 | |
local snowBottom = 40 --snow is generated differently |
This file contains hidden or 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 Uploadius Hover Zoom | |
// @namespace uploadiushoverzoom | |
// @include http://swololol.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var title = document.getElementsByTagName("h1"); | |
title[0].innerHTML = "<a style=\"text-decoration:none;color:#00f;\" href=\"http://swololol.com/ufi\">Uploadius (hoverzoom by @aearnus)</a>" | |
var links = document.getElementsByTagName("a"); |