« first day (1609 days earlier)      last day (1969 days later) » 

14:04
def fun1(x, a, b):
return x + a + b

def fun2(x, a, b, c):
return x + a + b + c

def apply_eq(equation, params):
return equation(np.array(range(5)), *params)

p1 = [2, 8]
print(apply_eq(fun1, p1))
p2 = [2, 8, 5]
print(apply_eq(fun2, p2))
def fun1(x, a, b):
return x + a + b

def fun2(x, a, b, c):
return x + a + b + c

def apply_eq(equation, params):
return equation(np.array(range(5)), *params)

p1 = [2, 8]
print(apply_eq(fun1, p1))
p2 = [2, 8, 5]
print(apply_eq(fun2, p2))
don't stop trying, you can edit for 2 minutes
3 messages moved from Python
but if you post it again, do it in the sandbox and practice until it works
5 messages moved from Python
 
2 hours later…
15:49
This is what I have right now:

$(document).on('click', '#edit_buttons_config', function(event){
event.preventDefault();
event.stopPropagation();
var form = $(this);
var test = "bang operator";
console.log(" ddaaa fuq");
console.log("form: " + form.serialize());
$.ajax({
type: "GET",
url: '/buttons/update_json/',
data: {
'test' : test,
},
context: form,
success: function(resp){
console.log(" success! ");
}
});
});
K
$(document).on('click', '#edit_buttons_config', function(event){
event.preventDefault();
event.stopPropagation();
var form = $(this);
var test = "bang operator";
console.log(" ddaaa fuq");
console.log("form: " + form.serialize());
$.ajax({
type: "GET",
url: '/buttons/update_json/',
data: {
'test' : test,
},
context: form,
success: function(resp){
console.log(" success! ");
}
});
});
2 messages moved from Python
 
7 hours later…
23:17
reasking of "Find the first row with a max in given column, in pandas?" (i.e. use idxmax()) This OP objected to the original target, better ones are stackoverflow.com/questions/10202570/… , stackoverflow.com/questions/29919306/… , ...
... stackoverflow.com/questions/15741759/… . Some of those assume uniqueness, some don't. There's lots more and most need an urgent visit from a hammer.
^^ Crap, ignore the second target suggestion, but the first and third are good.
23:36
3 messages moved from Python

« first day (1609 days earlier)      last day (1969 days later) »