[ Launch: helping jrm ] 5977422 by jrm2k6[ Launch: helping jrm ] 5977376 by gelicia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var svg = d3.select("#svg"); | |
svg.selectAll("rect") | |
.data([120, 190, 260, 330]) | |
.enter() | |
.append("rect") | |
.attr("y", 90) | |
.attr("x", String) | |
.attr("width", 25) | |
.attr("height", 25) | |
.style("fill", "white") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createCells = function() { | |
var data = generateCoordinates([1,3,7,5,6]); | |
var svg = d3.select("svg"); | |
var gs = svg.selectAll("g") | |
.data(data) | |
.enter() | |
.append("g") | |
.attr("class",function(d){return "cell_" + d.text;}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iteration = 0; | |
var createCells = function(l, iteration) { | |
var data = generateCoordinates(l); | |
var svg = d3.select("svg"); | |
var gs = svg.selectAll("g") | |
.data(data) | |
.enter() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createCells = function(l, it) { | |
var data = generateCoordinates(l, it); | |
var svg = d3.select("svg"); | |
var gs = svg.selectAll("g") | |
.data(data) | |
.enter() | |
.append("g"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var removeLinesAndSigns = function(value) { | |
var svg = d3.select("svg"); | |
svg.selectAll("lines").remove(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def fibonacci(n, fib_values): | |
if n < len(fib_values): | |
return fib_values[n] | |
else: | |
fib_values.append(n if n < 2 else fibonacci(n-2, fib_values) + fibonacci(n-1, fib_values)) | |
return fib_values[n] | |
def run(i): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="alert alert-error"> {{userCreatedSuccess}}</div> | |
$scope.createAccount = function(_email, _password) { | |
$http({ | |
url: 'http://localhost:8000/api/newuser/', | |
method: 'POST', | |
data: JSON.stringify({first_name: "", last_name: "", email: _email, password: _password}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url called http://localhost:8000/api/user/?password__exact=103a8ab6cc265e99a4ce8cea60e63d1f8fc0004f&email__exact=jeremy.dagorn@gmail.com | |
class ReaderUserResource(ModelResource): | |
class Meta: | |
queryset = ReaderUser.objects.all() | |
resource_name = 'user' | |
filtering = { | |
'email': ['exact'], | |
'password': ['exact'], | |
'query': ['exact',], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReaderUserResource(ModelResource): | |
class Meta: | |
queryset = ReaderUser.objects.all() | |
resource_name = 'user' | |
filtering = { | |
'email': ['exact'], | |
'password': ['exact'], | |
} |