Skip to content

Instantly share code, notes, and snippets.

View timimsms's full-sized avatar
🚀

Tim Walsh timimsms

🚀
View GitHub Profile
@dhh
dhh / Gemfile
Created June 24, 2020 22:23
HEY's Gemfile
ruby '2.7.1'
gem 'rails', github: 'rails/rails'
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data
# Action Text
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra'
gem 'okra', github: 'basecamp/okra'
# Drivers
@timimsms
timimsms / r_flatten.exs
Last active January 11, 2019 23:49
Given an arbitrarily and deeply nested List of Integers, this code snippet will recursively "flatten" the found Integers into a single List.
defmodule RFlatten do
@moduledoc """
RFlatten will take an list of Integers of an arbitrary length and depth of
nesting and produce a single list containing only those Integers found.
"""
@doc """
The main recursion call allows for us to split the list into it's first
element (i.e., head) and the remainder of the problem (i.e., tail). We then
recurse through until we hit an element (i.e., call(element)) or the end of
@joyrexus
joyrexus / README.md
Last active December 30, 2024 01:37
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@SeanMcGrath
SeanMcGrath / poshmark-share
Last active October 14, 2024 01:41
JS code to share all items in a poshmark closet to followers and all available events
const clickDelta = 4000; // ms delay between clicks
const cycleDelta = clickDelta * 100; // ms delay between share cycles
const clickLinks = (el) => {
el.click();
// set a short timeout so there's time to load in the active parties/render the modal
setTimeout(() => {
document
.querySelectorAll("[data-et-name='share_poshmark']")
@FrancesCoronel
FrancesCoronel / sampleREADME.md
Last active February 10, 2025 02:48
A sample README for all your GitHub projects.

Repository Title Goes Here

Frances Coronel

INSERT GRAPHIC HERE (include hyperlink in image)

Subtitle or Short Description Goes Here

ideally one sentence >

@tomas-stefano
tomas-stefano / Capybara.md
Last active December 6, 2024 09:30
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@mtowers
mtowers / README.md
Last active February 24, 2022 17:19
Google Analytics Website Visitor Count Widget for Dashing with OAuth2 Authentication
@n0ts
n0ts / gist:3224126
Created August 1, 2012 05:54
Install nokogiri for Mountain Lion
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
$ bundle config build.nokogiri --with-xml2-include=$HOMEBREW_HOME/Cellar/libxml2/2.8.0/include/libxml2 --with-xml2-lib=$HOMEBREW_HOME/Cellar/libxml2/2.8.0/lib --with-xslt-dir=$HOMEBREW_HOME/Cellar/libxslt/1.1.26
$ gem uninstall nokogiri
$ bundle install
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 20, 2025 22:34
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶