This file contains hidden or 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
| vtkSmartPointer<vtkImageHistogram> histogram = vtkSmartPointer<vtkImageHistogram>::New(); | |
| histogram->SetInput(volumeChunk.getAttenuation()); | |
| histogram->GenerateHistogramImageOn(); | |
| histogram->SetHistogramImageScaleToLog(); | |
| histogram->Update(); | |
| histogram->PrintSelf (std::cout, vtkIndent()); | |
| vtkSmartPointer<vtkJPEGWriter> writer = |
This file contains hidden or 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 lang="en"> | |
| <body> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> | |
| <script src="http://code.highcharts.com/highcharts.js"></script> | |
| <script src="http://code.highcharts.com/modules/exporting.js"></script> | |
| <div id="container" style="min-width: 400px; height: 700px; margin: 0 auto"></div> | |
| <script> | |
| $(document).ready(function(){ | |
This file contains hidden or 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 lang="en"> | |
| <body> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> | |
| <script> | |
| $(document).ready(function(){ | |
| twitter_ids = [ | |
| "perrynfowler", | |
| "matthewcashmore", | |
| ]; |
This file contains hidden or 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
| require 'rubygems' | |
| require 'net/http' | |
| require 'net/https' | |
| require 'json' | |
| twitter_ids = [ | |
| "perrynfowler", | |
| "matthewcashmore", | |
| # PUT TWITTER IDS HERE | |
| ] |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script type="text/javascript" src="jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| pages = [ | |
| "http://google.com", | |
| "http://reddit.com", | |
| "http://xkcd.com" | |
| ] |
This file contains hidden or 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 Duck | |
| def drink fluid | |
| bill.scoop(fluid) | |
| end | |
| end | |
| class Lion | |
| def drink fluid | |
| tongue.lap(fluid) | |
| end |
This file contains hidden or 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
| >> d = Date.civil(2010,1,03) | |
| => Sun, 03 Jan 2010 | |
| >> d.wday | |
| => 0 | |
| >> d.beginning_of_week | |
| => Mon, 28 Dec 2009 |