I hereby claim:
- I am agnaite on github.
- I am agne (https://keybase.io/agne) on keybase.
- I have a public key whose fingerprint is 54CD 0E00 7554 E22F 4A5A A06F 4B81 79DA E874 B5B0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| def decode(text) | |
| decoded = '' | |
| text.each_char do |s| | |
| if (s =~ /[0-9]/) == 0 | |
| text = text[s.to_i+1..-1] | |
| decoded << text[0] | |
| text = text[1..-1] | |
| end | |
| end |
| #!/usr/bin/env ruby | |
| class List | |
| attr_reader :all_tasks | |
| def initialize | |
| @all_tasks = [] | |
| puts 'You have created a new list' | |
| end | |
| def add(task, status=false) | |
| all_tasks << Task.new(task, status) |
| require 'sinatra' | |
| require 'shotgun' | |
| class List | |
| attr_reader :all_tasks | |
| def initialize | |
| @all_tasks = [] | |
| puts 'You have created a new list' | |
| end | |
| def add(task, status=false) |
| class TowersOfHanoi | |
| attr_reader :towers | |
| def initialize | |
| @towers = [[4, 3, 2, 1], [], []] | |
| end | |
| def play | |
| from = "" | |
| while !win? |
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <h2>Temples</h2> | |
| <div></div> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
| <script type="text/javascript"> |
| # You are given 2 sorted arrays A and B | |
| # A has enough placeholders at the end to hold B | |
| # Write a method to merge B into A in sorted order | |
| # i.e. | |
| # A = [3, 6, 8] | |
| # B = [2, 5, 10, 11] | |
| # => [2, 3, 5, 6, 8, 10, 11] | |
| def get_last_item_index(arr): |
| 'use strict' | |
| module.exports = (logSources, printer) => { | |
| const entries = [] | |
| logSources.forEach(logSource => { | |
| let newEntry = logSource.pop() | |
| while (newEntry) { | |
| entries.push(newEntry) | |
| newEntry = logSource.pop() |
| module.exports = (logSources, printer) => { | |
| const entries = [] | |
| logSources.forEach(logSource => { | |
| console.log("new log source") | |
| let newEntry = logSource.pop() | |
| while (newEntry) { | |
| entries.push(newEntry) | |
| newEntry = logSource.pop() | |
| } |