Skip to content

Instantly share code, notes, and snippets.

View Nereare's full-sized avatar
🍂
Si man i yulma nin enquantuva?

Igor Padoim Nereare

🍂
Si man i yulma nin enquantuva?
View GitHub Profile
require 'jekyll'
conf = Jekyll.configuration({
'source' => 'path/to/source',
'destination' => 'path/to/destination'
})
Jekyll::Site.new(conf).process
// Color List from https://material.io/design/color/
// =================================================
// If a color is followed by HC, it contrasts better
// with a light color.
// Reds
$Red50 : #FFEBEE;
$Red100 : #FFCDD2;
$Red200 : #EF9A9A;
$Red300 : #E57373;
@Nereare
Nereare / FirstIssueCommentTemplate.md
Last active August 12, 2019 18:19
Welcome Bot Templates

Thanks for opening your first issue here! ✨

This repository has an issue template and we ask that you follow it.

Also, note that there is a Code of Conduct. Please take a time to read it.

The 👥 humans will be here shortly to assess your issue! And thanks once again for your first issue! 🎉

@Nereare
Nereare / index.html
Last active August 5, 2019 18:40 — forked from MrChuffmanSnippets/index.html
HTML5: Blank Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
@Nereare
Nereare / Base64.rb
Created June 12, 2019 18:56
Convert image files into their base64 strings from the command line, with each argument being a different single file.
require 'base64'
if ARGV.length > 0
#To64Html.new(ARGV[0]).html()
ARGV.each do |arg|
puts "Enconding file: " + arg.to_s
img = File.open(arg, 'rb')
encoded = 'data:image/png;base64,' + Base64.encode64(img.read).gsub(/\n/m, "")
enfile = arg.gsub(/\.png|jpg|jpeg|gif/, ".txt")
File.open(enfile, 'w:UTF-8') { |file| file.write(encoded) }
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville:700|Noto+Sans:400,400i,700,700i&display=swap');
@import url('https://cdn.materialdesignicons.com/3.6.95/css/materialdesignicons.min.css');
*, tw-story, tw-passage {
font-family: 'Noto Sans', 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif;
text-align: justify;
color: #000000;
}
em {

Keybase proof

I hereby claim:

  • I am nereare on github.
  • I am nereare (https://keybase.io/nereare) on keybase.
  • I have a public key whose fingerprint is 6367 132A 7C0E 2E96 06C3 EA7E DFA3 AD8D 0C49 A515

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<!--
Original code by Ruslan at
https://codepen.io/kybarg/pen/PqaOOg
-->
<head>
<title>getMDL File Select Example</title>
@Nereare
Nereare / lymph_diff.rb
Created July 19, 2016 11:27
Lymphocyte differential count, based on normal blood proportions. DO NOT USE FOR DIAGNOSTIC PURPOSES. Seek a physician!
# Gets the number of lymphocytes from the WBC count.
puts "Absolute LYMPHOCYTE count:"
$lymph = gets.to_i
puts "Relative lymphocyte proportion:"
$lym_prop = gets.to_f / 100.0
puts ""
# Limits of absolute normality
$min_lim = 900
@Nereare
Nereare / age_calc.rb
Created May 10, 2016 10:04
Age calculator, specifically for pediatric pacients, output in portuguese.
require 'date'
DAYS_IN_MONTH = [nil, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
# This method takes a date in the string format "DD/MM/YYYY" and returns
# a Time object.
def birthday_timestamp_time(date)
birthday = date.split('/')
Time.new(birthday[2], birthday[1], birthday[0])
end