Skip to content

Instantly share code, notes, and snippets.

View muhammadyana's full-sized avatar
🏠
Work From Anywhere

Muhammad Yana Mulyana muhammadyana

🏠
Work From Anywhere
View GitHub Profile
@muhammadyana
muhammadyana / ruby-basic-progamming.rb
Last active June 8, 2017 04:08
ruby-basic-progamming
def Hallo(name, age)
tmp = "Hallo #{name.upcase} your age is \n #{age}"
end
language = ["java", "html", "css", "ruby"]
anotherMethod = %w{java html css ruby go}
#puts language.inspect #show all element in array
#puts anotherMethod[0]
#puts Hallo("yana", 24)
a = %w{ ant bee cat dog elk }
#puts a[0] # => "ant"
@muhammadyana
muhammadyana / index.html
Created June 7, 2017 04:40 — forked from hendra/index.html
Standard HTML Template
<!DOCTYPE html>
<html lang="en">
<head>
<title>Page title | website or product name</title>
<meta name="description" content="lorem ipsum dolor set amet" /> <!--Max 160 characters-->
<meta name="keywords" content="keyword1, keyword2, keyword3" />
<meta charset="utf-8" />
<!--Responsive using bootstrap-->
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
1. Do not repeat yourself (DRY). Meaning there shall no duplicate code
2. Tiny Controller Fat Model. Meaning all business logic shall be placed on Models NOT Controllers
3. Use framework plugins as much as possible for speedying up your software development
3.1 Ruby on Rails https://github.com/hothero/awesome-rails-gem
3.2 Laravel https://github.com/chiraggude/awesome-laravel
3.3 Django https://github.com/rosarior/awesome-django
3.4 Bootstrap https://bootstrapious.com/p/best-bootstrap-plugins
3.5 JQuery http://hasinhayder.github.io/essential-jquery-plugins/
3.6 VueJS https://github.com/vuejs/awesome-vue
3.7 React https://github.com/enaqx/awesome-react