Skip to content

Instantly share code, notes, and snippets.

//@author @tiagoamx
// Clear the contents of the iframe after being loaded
$("#iframeid").contents().find("body").html("");
class Solution:
# @return a list of integers
def getRow(self, rowIndex):
if rowIndex<0:
return None
result=[0]*(rowIndex+1)
result[0]=1
for i in range(1,len(result)):
result[i]=1
@kimitoboku
kimitoboku / logitics.py
Last active May 4, 2019 01:43
python
import matplotlib.pyplot as plt
dt = 0.01
x = 4
r = 2
k = 2
def dx(t,x):
return r*x*(1-x/k)