Skip to content

Instantly share code, notes, and snippets.

@t0d0r
Last active January 4, 2020 14:28
Show Gist options
  • Select an option

  • Save t0d0r/d8d626f29d425c73c9d90be2df92d784 to your computer and use it in GitHub Desktop.

Select an option

Save t0d0r/d8d626f29d425c73c9d90be2df92d784 to your computer and use it in GitHub Desktop.

Revisions

  1. t0d0r revised this gist Jan 4, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gista-file
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    # vim:filetype=ruby
    p = 1641.23
    p = 1914.77
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
  2. t0d0r revised this gist Jan 4, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gista-file
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # vim:filetype=ruby
    p = 1150.58
    p = 1641.23
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
  3. t0d0r revised this gist Dec 9, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gista-file
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # vim:filetype=ruby
    p = 3285
    p = 1150.58
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
  4. t0d0r revised this gist Nov 10, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gista-file
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # vim:filetype=ruby
    p = 1889.5
    p = 3285
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
  5. t0d0r revised this gist Sep 18, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gista-file
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # vim:filetype=ruby
    p = 1566.47
    p = 1889.5
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
  6. t0d0r revised this gist Jul 3, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gista-file
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@ cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
    puts "=" * 60
    puts ("%0.2f - %0.2f - %0.2f = %0.2f" % [ p, cd, dd, cash ]).center(60).rstrip
    puts ("%10s - %s - %s = %s" % %w(сума печалба дивидент крайна) ).center(60).rstrip
    puts ("%s - %s - %s = %s" % %w(сума 10% 5% крайна) ).center(60).rstrip
    puts ("%8.2f - %8.2f - %8.2f = %8.2f" % [ p, cd, dd, cash ]).center(60).rstrip
    puts ("%8s - %8s - %8s = %8s" % %w(сума печалба дивидент крайна) ).center(60).rstrip
    puts ("%8s - %8s - %8s = %8s" % %w(сума 10% 5% крайна) ).center(60).rstrip
    puts "=" * 60
  7. t0d0r revised this gist Jul 2, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gista-file
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,6 @@ dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
    puts "=" * 60
    puts ("%0.2f - %0.2f - %0.2f = %0.2f" % [ p, cd, dd, cash ]).center(60).rstrip
    puts ("%s - %s - %s = %s" % %w(сума печалба дивидент крайна) ).center(60).rstrip
    puts ("%10s - %s - %s = %s" % %w(сума печалба дивидент крайна) ).center(60).rstrip
    puts ("%s - %s - %s = %s" % %w(сума 10% 5% крайна) ).center(60).rstrip
    puts "=" * 60
  8. t0d0r revised this gist Jul 2, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gista-file
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,5 @@ cash = p - cd - dd
    puts "=" * 60
    puts ("%0.2f - %0.2f - %0.2f = %0.2f" % [ p, cd, dd, cash ]).center(60).rstrip
    puts ("%s - %s - %s = %s" % %w(сума печалба дивидент крайна) ).center(60).rstrip
    puts ("%s - %s - %s = %s" % %w(сума 10% 5% крайна) ).center(60).rstrip
    puts "=" * 60
  9. t0d0r revised this gist Jul 2, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gista-file
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,9 @@
    # vim:filetype=ruby
    p = 300
    p = 1566.47
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
    puts "=" * 60
    puts ("%0.2f - %0.2f - %0.2f = %0.2f" % [ p, cd, dd, cash ]).center(60).rstrip
    puts ("%s - %s - %s = %s" % %w(сума печалба дивидент крайна) ).center(60).rstrip
    puts "=" * 60
  10. t0d0r created this gist May 7, 2019.
    8 changes: 8 additions & 0 deletions gista-file
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # vim:filetype=ruby
    p = 300
    cd = (p * ( 10.00/100 ))
    dd = ((p-cd)*( 5.00/100 ))
    cash = p - cd - dd
    puts "=" * 60
    puts ("%0.2f - %0.2f - %0.2f = %0.2f" % [ p, cd, dd, cash ]).center(60).rstrip
    puts "=" * 60