Skip to content

Instantly share code, notes, and snippets.

View agnaite's full-sized avatar
🇺🇦
#slavaukraini

agnė agnaite

🇺🇦
#slavaukraini
View GitHub Profile
@agnaite
agnaite / index.html
Created February 23, 2017 02:49
jinja loops in js
<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">
class TowersOfHanoi
attr_reader :towers
def initialize
@towers = [[4, 3, 2, 1], [], []]
end
def play
from = ""
while !win?
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)
#!/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)
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

Keybase proof

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: