Skip to content

Instantly share code, notes, and snippets.

View pedrogrande's full-sized avatar

Pete Argent pedrogrande

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-body">
<h3>Your order</h3>
<table class="table">
<thead>
<tr>
<th>Product</th>
<th class="text-center">Quantity</th>
<script>
var stripe = Stripe('<%= Rails.application.secrets.stripe_pk %>');
var elements = stripe.elements();
var style = {
base: {
color: '#303238',
fontSize: '16px',
lineHeight: '48px',
fontSmoothing: 'antialiased',
0x52Db1fa050ba9534478B000772106328E06C814E
0x65b9ff557d727de2fbaa8bda5625b6fe2d937479
length_of_array = len(L)
con = {}
array_of_con = []
i = 0
k = 0
while (i < (length_of_array - 1)):
first_item = L[i]
second_item = L[i+1]
con[k] = con.get(k, 1)
if first_item == second_item:
#!/usr/bin/python
L = [9,1,1,2,2,2,2,2,3,4,4,5,6,6,6,4,4,4,4,4,7,9,4,9]
length_of_array = len(L)
print("Length of array: %d" % length_of_array)
# temp_con {}
con = {}
array_of_con = []
i = 0
def hello(name)
result = "Hello " + name
return result
end
puts hello("Leia")
def hello
puts = "Hello Leia"
end
hello
puts "You enter a room with two doors. Do you open Door 1 or 2?"
print "> "
door = gets.chomp
if door == "1"
puts "You won $5000!"
elsif door == "2"
puts "You stare into the endless abyss :("
else