Skip to content

Instantly share code, notes, and snippets.

Guillermo Cabrera guicaro

Block or report user

Report or block guicaro

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 .bash_profile
dateToMillis() {
#date as YYYY-MM-DD
echo $((`gdate -d $1 +%s` * 1000))
millisToDate() {
gdate -d @`echo $(( $1 / 1000 ))`
guicaro /
Created Feb 25, 2018 — forked from Chandler/
Download Slack Channel/PrivateChannel/DirectMessage History
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
guicaro / Java Cheat Sheet
Last active Jul 4, 2019
Things to run on a REPL
View Java Cheat Sheet
// Snippets of code that work in Java 8.
// I've compiled these based on problems solved at:
// I strongly recommend you get a Java REPL to play around with some of this code
// (
// All following lines can be run in a Java REPL
// Note: If you see multiple lines of code, it's better to paste each line separately, just sayin'
// Remember && and || are short circuit operators
You can’t perform that action at this time.