Skip to content

Instantly share code, notes, and snippets.

View gato-omega's full-sized avatar
💻
...

Miguel Diaz gato-omega

💻
...
View GitHub Profile
@gato-omega
gato-omega / compact_format_for_multiple_times.rb
Created July 6, 2018 20:45
Create a "compact" human readable string output for enumerating multiple times/datetimes (modify according to your formatting preference/situation)
# For use with Time/DateTime objects
#
# Give it an array of Time objects and receive the following output as a String
# Examples:
#
# Sat/Sun 9:30am, 10am | Mon 9:30am, 10am, 11am
# Sat 9:30am, 10am | Sun 10am | Mon 9:30am, 10am, 11am
# Sat/Sun 9:30am
# Sat 10am | Sun 9:30am
# Sat/Sun/Mon 10am
@gato-omega
gato-omega / .gitignore
Last active February 24, 2017 23:36
Rails 5.0.1 reference .gitignore file
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
#######################################################################
# Check gist at #
# https://gist.github.com/gato-omega/153841da9cb9b344f1f9094928fd13b3 #
# #
@gato-omega
gato-omega / codescrum_workshops_open_source_project_cla.md
Created December 11, 2015 20:37
Codescrum Workshops Open Source Project Contributor License Agreement

Codescrum Workshops Open Source Project Contributor License Agreement (CLA)

TL;DR Short version

This Codescrum Workshops - Open Source Project Contributor License Agreement (CLA) is an agreement that mainly tells you that any work that you perform (Contributions) in Codescrum Workshops Open Source Projects (Projects) can be used by Codescrum and Codescrum Workshops to perform derivative works and use the Contributions in any way, without requiring your permission. And you too, will be able to use any open source project in any way you want, since the Projects will be released under the MIT License.

Long Legal version

Thank you for your interest in contributing to open source software projects (“Projects”) made available by Codescrum Workshops or its affiliates (“Codescrum Workshops”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedbac

// Remove all the unwanted accents from accented characters in a webpage.
// Useful when you want to copy "safe" text with no tildes, accents, etc.
// Requires jQuery
// You can copy/paste this script into javascript console to get every accented character replaced
// NOTE: Scroll down so you can narrow the jQuery selector in which the replacements will take place
// This totally uses the following code provided by "rdllopes" on the following stackoverflow question:
// http://stackoverflow.com/questions/990904/javascript-remove-accents-diacritics-in-strings