Skip to content

Instantly share code, notes, and snippets.

View Pysis868's full-sized avatar
💭
everything at once

Pysis Pysis868

💭
everything at once
View GitHub Profile
// early experiments with node had mysterious double requests
// turned out these were for the stoopid favicon
// here's how to short-circuit those requests
// and stop seeing 404 errors in your client console
var http = require('http');
http.createServer(function (q, r) {
// control for favicon

Keybase proof

I hereby claim:

  • I am Pysis868 on github.
  • I am pysis (https://keybase.io/pysis) on keybase.
  • I have a public key whose fingerprint is B2C4 A98E A4D0 CBC5 CDD8 62C3 1A0D 40D7 9885 AFA4

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
@Pysis868
Pysis868 / QuakeConsole.ahk
Last active April 16, 2016 16:29 — forked from program247365/QuakeConsole.ahk
Console 2 Settings File and Quake Awesomeness
; Change your hotkey here
^1::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_class Console_2_Main
WinActivate ahk_class Shell_TrayWnd
@Pysis868
Pysis868 / bot_data_to_yaml.rb
Last active April 29, 2016 14:10 — forked from adhown/bot_data_to_yaml.rb
Learning ruby basic
require 'yaml'
bot_data = {
:presubs => [
["dont", "dont"],
["youre", "you're"],
["love", "like"]
],
:responses => {
:default => [
@Pysis868
Pysis868 / countKorokSeedsBookmarklet.js
Created March 19, 2017 19:03
Small script to count a specific object (korok seeds) in the Zelda: BotW Zelda map.
$.fn.reduce = [].reduce;
var singleKorokSeedLocations = $('.leaflet-marker-icon > div.icon-BotW_Korok-Seeds');
var singleKorokSeedLocationsTotal = singleKorokSeedLocations.length;
var multipleKorokSeedLocations = $('.leaflet-marker-icon > div > span');
var multipleKorokSeedLocationsTotal = multipleKorokSeedLocations.reduce(function(accumulator, currentElement){
return accumulator + parseInt(currentElement.innerText);
}, 0);
var korokSeedCount = singleKorokSeedLocationsTotal + multipleKorokSeedLocationsTotal;
@Pysis868
Pysis868 / open_cookie.rb
Last active June 26, 2018 19:52 — forked from scpike/open_cookie.rb
Rails 3 cookie decode
@Pysis868
Pysis868 / GenerateSlippyMapTiles.py
Last active September 20, 2019 01:02 — forked from jeffThompson/GenerateSlippyMapTiles.py
Takes a large image as the input, outputs map tiles at the appropriate size and file structure for use in frameworks like leaflet.js, MapBox, etc.
# -*- coding: utf-8 -*-
import argparse, magic, re, os, math, glob, shutil
'''
GENERATE SLIPPY MAP TILES
Jeff Thompson | 2016 | jeffreythompson.org
Takes a large image as the input, outputs map tiles
at the appropriate size and file structure for use
@Pysis868
Pysis868 / gfm-render
Last active November 16, 2023 18:25 — forked from bitti/gfm-render
Offline renderer for GitHub flavoured markdown
#!/usr/bin/ruby
# Renders Markdown content offline by converting it to HTML using GitHub's own redcarpet renderer software, and their additional CSS.
# Does require a download of the additional GitHub CSS to a local cache.
# Replaces grip for preferred offline functionality: https://github.com/joeyespo/grip/issues/35
require 'optparse'
options = {