Skip to content

Instantly share code, notes, and snippets.

😅
Being good to others

Evan Walsh evanwalsh

😅
Being good to others
Block or report user

Report or block evanwalsh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mithril-query.d.ts
declare var MithrilQuery: (...options: any[]) => MithrilQueryInstance
interface KeyEventOptions {
target?: any
value?: any
altKey?: boolean
shiftKey?: boolean
ctrlKey?: boolean
silent?: boolean
}
View gist:c9060b09adeefa1b3f59d90c3de1e402
• 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?
                                                                                                    
View gist:d7caa03ae16d2f1f3031
### 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:
View gobs_program.rb
puts "Gob's Program: Y/N?"
print "? "
answer = gets.chomp
if answer == "Y"
while true
print "Penus "
end
end
View styleupdated.js
// ==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
View irccloud-dark-matter-reloaded-reloaded.js
// ==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
View irccloud-hide-sidebar.js
// ==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 Feb 5, 2019
I imported my Jekyll from Squarespace's Wordpress XML with this
View import.rb
# 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 Dec 17, 2015
Forecast.io script for GeekTool
View weather_geeklet.rb
#!/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"
View selector.rb
Capybara.add_selector :record do
xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) }
match { |record| record.is_a?(ActiveRecord::Base) }
end
You can’t perform that action at this time.