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 pprint | |
# | |
# Gets the patterns that will be searched for. Returns a list of pattern lists | |
# | |
def getPatterns(): | |
patterns = [] | |
try: | |
numPatterns = int(raw_input("How many patterns? ")) | |
except ValueError: |
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> | |
<title>MySQL Demo</title> | |
<script type="text/javascript" src="http://cdn.zingchart.com/zingchart.min.js"></script> | |
</head> | |
<body> | |
<script> | |
<?php |
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> | |
<title>MySQL Demo</title> | |
<script type="text/javascript" src="http://cdn.zingchart.com/zingchart.min.js"></script> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.min.css"> | |
</head> | |
<body> | |
<script> |
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
window.myfunc = function(p) { | |
var sColor1, sColor2; | |
var iDiff = p.maxValueSize - p.minValueSize; | |
if (p.valueSize >= p.minValueSize && p.valueSize < p.minValueSize+iDiff/20) { | |
sColor1 = colorFromValue(p.valueSize, p.minValueSize, p.minValueSize+iDiff/20, '#660000', '#cc0000'); | |
console.log(sColor1); | |
sColor2 = '#330000'; | |
} else if (p.valueSize >= p.minValueSize+iDiff/20 && p.valueSize < p.minValueSize+2*iDiff/10) { | |
sColor1 = colorFromValue(p.valueSize, p.minValueSize+iDiff/20, p.minValueSize+2*iDiff/10, '#666600', '#cccc00'); |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
myRenderOptions:{ | |
"height":400, | |
"width":"100%", | |
"events":{ | |
node_click:function(p){ | |
console.log(p); | |
} |
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 Ember from 'ember'; | |
export default Ember.ObjectController.extend({ | |
}); |
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 Ember from 'ember'; | |
export default Ember.Route.extend({ | |
model:function(){ | |
return { | |
myChartData:{ | |
"type":"line", | |
"title":{ | |
"text":"Average Metric" | |
}, |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames:['zingchart-ember'], | |
renderOptions:undefined, | |
chartData:undefined, | |
themeData:undefined, | |
buildOptions: Ember.computed('renderOptions', 'chartData.@each.isLoaded', 'themeData', function() { | |
var renderOptions,chartData,themeData; |