Skip to content

Instantly share code, notes, and snippets.

View enatividad's full-sized avatar

Emmanuel Natividad enatividad

  • Philippines
View GitHub Profile

Directory Structure

app/assets/js

This contains a folder with two sub-folders and one file. It also

  • app/assets/js/app/app.js - contains the App object. It makes functions like initView(), initComponents(), and reinitComponents() available
  • app/assets/js/app/components/ - contatains reusable components only. I don't plan subdirectories.
  • app/assets/js/app/views/ - contains page-specific code. also contains what might be called "page-specific components. copies the directory structure of the app/views like in rails
  • app/assets/js/manifest.js - concatenates all javascript files in the following order:
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSl_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif

How to Cook Rice

I asked my dad how to cook rice without a rice cooker. He said this works for any variety of rice.

Materials

  • semi-thick iron pot with cover (we use 0.2-0.25 inch thick)
  • several cups of rice (2-5 cups)
  • tap water

Iron Pot is preferable because it heats up more slowly but traps heat better than aluminum.

@enatividad
enatividad / main.rb
Created June 14, 2021 03:48
FunBar (FizzBuzz) Program
def modulo_alternative!(target, tester)
while target.positive?
target -= tester
end
target.zero?
end
(1..100).each do |i|
if modulo_alternative!(i, 15)
puts 'FunBar'