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 @Chart | |
constructor: (@data, @options) -> | |
google.setOnLoadCallback(this.drawCharts) | |
drawCharts: => | |
table = google.visualization.arrayToDataTable(@data) | |
options = $.extend(true, { | |
title: 'Weekly Trends', | |
explorer: { axis: 'horizontal' }, | |
legend: 'top', |
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
UPDATE table1 SET table1.col1 = 'some value' WHERE id IN (SELECT table1.id FROM table1, table2 WHERE table1.table2_id = table2.id and table2.colm2 = <some value> ORDER BY RANDOM() LIMIT 20 |
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
#This is an example code showing a good mix of 4 levels (error, warn, info, and debug) of log messages | |
#follow the comments to understand the motivation behind each log messages | |
#please ignore the business logic or coding style, this is only meant to showcase logging only...:-) | |
#Language used is Ruby | |
def descope_multiple | |
begin | |
logger.debug("entering debug_multiple()...") | |
wis_to_descope = @project.work_items.find(params[:id]) | |
@wis_descoped = [] | |
@wis_not_descoped = [] |