This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Parts of Patterns | |
| s0, s1, s2, s3, s4, s5 = " o ", " ", " - ", "| ", " |", "| |" | |
| # Patterns of Numbers | |
| n = { | |
| ":" => [s1, s0, s1, s0, s1], | |
| "0" => [s2, s5, s1, s5, s2], | |
| "1" => [s1, s4, s1, s4, s1], | |
| "2" => [s2, s4, s2, s3, s2], | |
| "3" => [s2, s4, s2, s4, s2], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ☺ | |
| puts "" | |
| name = gets.chomp | |
| puts "Welcome, #{name}" | |
| class Player | |
| attr_accessor :name, :health, :power | |
| def initialize(n, h, pow) | |
| @name = n | |
| @health = h | |
| @power = pow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Quran | |
| def initialize | |
| # could be ARGV OR Any other path you prefer | |
| @path = '/Users/a7madx7/Downloads/المصحف\ الجوامعي' | |
| end | |
| private | |
| def suggest | |
| # related to the quran could be changed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var dynamic = document.getElementById('dynamic'); | |
| dynamic.addEventListener('click', dynamic_click); | |
| function dynamic_click() { | |
| alert(Math.random()); | |
| dynamic.removeEventListener('click', dynamic_click); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function change(){ | |
| var show_div = document.getElementById("show_div"); | |
| var i = document.getElementById("i"); | |
| show_div.innerHTML = i.value.toUpperCase(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| button = document.getElementById('start'); | |
| button.onclick = show; | |
| function show(){ | |
| document.body.innerHTML = Date(); | |
| setInterval(show, 1000); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/services.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
OlderNewer