Skip to content

Instantly share code, notes, and snippets.

View evanwalsh's full-sized avatar
❤️‍🔥
You make me feel almost human

Evan Walsh evanwalsh

❤️‍🔥
You make me feel almost human
View GitHub Profile
@evanwalsh
evanwalsh / mithril-query.d.ts
Created July 24, 2018 18:14
mithril-query.d.ts
declare var MithrilQuery: (...options: any[]) => MithrilQueryInstance
interface KeyEventOptions {
target?: any
value?: any
altKey?: boolean
shiftKey?: boolean
ctrlKey?: boolean
silent?: boolean
}
• What does the app do?
• How to start a timer?
• How to stop a timer?
• How does idle time work?
• How does summary bar/time summary work?
• How to change preferences?
• Where do I get it?
                                                                                                    
### Keybase proof
I hereby claim:
* I am evanwalsh on github.
* I am evanwalsh (https://keybase.io/evanwalsh) on keybase.
* I have a public key whose fingerprint is 17E6 2822 7D1A 3BE7 F61E 7968 25D3 BCFA BB9C 9810
To claim this, I am signing this object:
@evanwalsh
evanwalsh / gobs_program.rb
Created June 25, 2014 13:20
Gob's Program
puts "Gob's Program: Y/N?"
print "? "
answer = gets.chomp
if answer == "Y"
while true
print "Penus "
end
end
// ==UserScript==
// @name Terminal Theme for IRCButt [highlight mod]
// @namespace http://userstyles.org
// @description This theme started as modification of the wonderful Terminal Theme for IRCButt by kirbylover4000 (version 2.0), just to fix the bright red text highlighting.
// @author Specimen
// @homepage http://userstyles.org/styles/96192
// @include https://ircbutt.com/*
// @include https://www.ircbutt.com/*
// @include https://alpha.ircbutt.com/*
// @run-at document-start
// ==UserScript==
// @name Terminal Theme for IRCButt [highlight mod]
// @namespace http://userstyles.org
// @description This theme started as modification of the wonderful Terminal Theme for IRCButt by kirbylover4000 (version 2.0), just to fix the bright red text highlighting.
// @author Specimen
// @homepage http://userstyles.org/styles/96192
// @include https://ircbutt.com/*
// @include https://www.ircbutt.com/*
// @include https://alpha.ircbutt.com/*
// @run-at document-start
// ==UserScript==
// @name IRCButt Hide Sidebar
// @namespace http://userstyles.org
// @description Hides the sidebar. Hover on side to toggle visibility.
// @author ahtanu
// @homepage http://userstyles.org/styles/97987
// @include https://ircbutt.com*
// @include https://www.ircbutt.com*
// @include https://alpha.ircbutt.com*
// @run-at document-start
@evanwalsh
evanwalsh / import.rb
Last active April 3, 2024 19:12
I imported my Jekyll from Squarespace's Wordpress XML with this
# coding: utf-8
require 'rubygems'
require 'hpricot'
require 'fileutils'
require 'safe_yaml'
require 'time'
module JekyllImport
# This importer takes a wordpress.xml file, which can be exported from your
@evanwalsh
evanwalsh / weather_geeklet.rb
Last active December 17, 2015 04:59
Forecast.io script for GeekTool
#!/usr/bin/env ruby
# Get an API key from https://developer.forecast.io/
#
# Outputs something like this:
#
# Clear, 65°F
# Moderate chance of rain until tonight
FORECAST_IO_API_KEY = "YOUR KEY GOES HERE"
Capybara.add_selector :record do
xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) }
match { |record| record.is_a?(ActiveRecord::Base) }
end