Skip to content

Instantly share code, notes, and snippets.

View iretex's full-sized avatar

Iretioluwa Olawuyi iretex

View GitHub Profile
@iretex
iretex / email.vb
Created April 5, 2018 08:14 — forked from rwjblue/email.vb
Generate and Send an Email with CDO from VB6
' From http://www.vbknowledgebase.com/?Id=21&Desc=Send-Email(E-Mail)-from-VB6-using-CDO
'****************************************************************
'* Purpose : To Send eMail
'*
'* Inputs : strRecipient(String) Recipient comma seperated
'* strSubject(String) Subject
'* strBody Body
'* colAttachments Collection of attachments
'* file paths.
@iretex
iretex / Helper Method - releaseMediaPlayer()
Created July 30, 2017 21:09 — forked from udacityandroid/Helper Method - releaseMediaPlayer()
Miwok app: Cleaning up MediaPlayer resources
/**
* Clean up the media player by releasing its resources.
*/
private void releaseMediaPlayer() {
// If the media player is not null, then it may be currently playing a sound.
if (mMediaPlayer != null) {
// Regardless of the current state of the media player, release its resources
// because we no longer need it.
mMediaPlayer.release();
public static String getFormattedWind(Context context, float windSpeed, float degrees) {
int windFormat;
if (Utility.isMetric(context)) {
windFormat = R.string.format_wind_kmh;
} else {
windFormat = R.string.format_wind_mph;
windSpeed = .621371192237334f * windSpeed;
}
// From wind direction in degrees, determine compass direction as a string (e.g NW)
@iretex
iretex / O'Reilly Design Books (Free).md
Created July 19, 2017 00:35 — forked from udezekene/O'Reilly Design Books (Free).md
Download the just released O'Reilly Design Books for free without e-mail signup.

Free O'Reilly Design Books and convenient script to just download them.

HUGE thanks to O'Reilly for making this resource free. Visit the design page if you want to learn more about the design resources. Also, they do have FREE resources for other topics like: Data, IoT, Programming, Security, Web Development, and WebOps.

Thanks @augbog for the initial gist. If you are a developer or looking for software engineering books, headover to the source of this fork.

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)