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
from scipy.optimize import curve_fit | |
from collections import Counter, defaultdict | |
import numpy as np | |
import time | |
def f(xss, a, b, c, d, e, f): | |
""" | |
Polynomial function up to order 5 | |
""" | |
ret = [] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="CTS Example: Loading HTML with an alias" /> | |
<title>CTS Example: Loading HTML with an alias</title> | |
<script src="http://treesheets.org/cts.js"></script> | |
<style type="text/cts"> | |
@html theme http://treesheets.csail.mit.edu/mockups/blog/twenty-thirteen/index.html; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="CTS Example: Loading HTML" /> | |
<title>CTS Example: Loading HTML</title> | |
<script src="http://treesheets.org/cts.js"></script> | |
<style type="text/cts"> | |
@html theme http://treesheets.csail.mit.edu/mockups/blog/twenty-thirteen/index.html; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="CTS Example: Loading HTML" /> | |
<title>CTS Example: Loading HTML</title> | |
<script src="http://treesheets.org/cts.js"></script> | |
<style type="text/cts"> | |
@html theme http://treesheets.csail.mit.edu/mockups/blog/twenty-thirteen/index.html; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="CTS Example: Loading HTML" /> | |
<title>CTS Example: Loading HTML</title> | |
<script src="http://treesheets.org/cts.js"></script> | |
<style type="text/cts"> | |
@html theme http://treesheets.csail.mit.edu/mockups/blog/twenty-thirteen/index.html; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="CTS Example: Loading JS" /> | |
<title>CTS Example: Loading JS</title> | |
<script src="http://treesheets.org/cts.js"></script> | |
<style type="text/cts"> | |
@js http://code.jquery.com/jquery-1.10.1.js; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="CTS Example: Loading CSS" /> | |
<title>CTS Example: Loading CSS</title> | |
<script src="http://treesheets.org/cts.js"></script> | |
<style type="text/cts"> | |
@css http://getbootstrap.com/2.3.2/assets/css/bootstrap.css; |
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
CTS.Parser = { | |
/* Parses a forrest (externally linked) CTS sheet. | |
* | |
* Args: | |
* - spec: the spec to parse | |
* - format: the format which encodes the spec | |
* - fromUrl: the url which loaded the spec | |
* | |
* Returns: |
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 test = function() { | |
return "This is a test!"; | |
} |
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
# In resource-controller.js | |
ResourceController = function(provider) { | |
this.a = 1; | |
}; | |
ResourceController.prototype.printA = function(req, res) { | |
res.send(typeof this.a); | |
}; |