Skip to content

Instantly share code, notes, and snippets.

View dalibran's full-sized avatar

Dana Alibrandi dalibran

  • Los Angeles, CA
  • 13:19 (UTC -07:00)
  • LinkedIn in/dalibran
View GitHub Profile
@dalibran
dalibran / keybase.md
Created May 5, 2018 21:53
Keybase proof

Keybase proof

I hereby claim:

  • I am dalibran on github.
  • I am dalibran (https://keybase.io/dalibran) on keybase.
  • I have a public key ASAOP-BhlYiyZSFUkb-sWS9P606lYmYk9gUJpvsC9eZxfQo

To claim this, I am signing this object:

@dalibran
dalibran / card.html
Last active May 31, 2017 02:48
Flexbox Card Breakdown: HTML
<div class="card-job" id='lewagon'>
<div class="job-title">
<h4>Web Development • Le Wagon</h4>
<h6>Montréal, QC, Canada • Feb 2017 - May 2017</h6>
</div>
<img src="https://res.cloudinary.com/crunchbase-production/image/upload/v1464256259/tl43iwuu6v4vyux7oqsk.png" class='logo-job' />
<div class="job-desc">
<p>Graduated from Le Wagon's 9 week, full stack web development bootcamp (Batch #63) with over 360 hours of instruction in modern web dev techniques. The technologies powering my projects include Ruby on Rails, PostgreSQL, HTML/CSS/JS, jQuery, Ajax, Bootstrap,
Materialize, and more.</p>
</div>
@dalibran
dalibran / fizzbuzz.rb
Created December 16, 2014 21:38
prints "Fizz" for multiples of 3, "Buzz" for multiples of 5, and "FizzBuzz" for multiples of 3 and 5
(1..100).each do |var|
if (var % 5 == 0) && (var % 3 == 0)
puts "FizzBuzz"
elsif var % 5 == 0
puts "Buzz"
elsif var % 3 == 0
puts "Fizz"
else
puts var
end
@dalibran
dalibran / 100primes.py
Created July 18, 2013 00:51
returns an array containing the first 100 prime numbers.
primes = []
for n in range(2, 1000):
for x in range(2, n):
if n % x == 0:
break
else:
primes.append(n)
if len(primes) == 100:
break
@dalibran
dalibran / rev_string.py
Last active December 19, 2015 22:09
takes a string as input and returns a reversed version of that string.
def reverse(x):
empty = []
for i in x:
empty.insert(0, i)
string = ""
for p in empty:
string += p
return string
@dalibran
dalibran / fib.py
Last active December 19, 2015 22:09
returns an array containing the first 100 numbers in the fibonacci sequence.
arr = [0, 1]
def fib():
while len(arr) < 100:
arr.append(arr[-2] + arr[-1])
return arr