I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
This code is released under the MIT license. | |
Copyright (C) 2012 Matt Magoffin | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to |
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
function classListShim(view) { | |
"use strict"; | |
if (!('HTMLElement' in view) && !('Element' in view)) return; | |
var | |
classListProp = "classList" | |
, protoProp = "prototype" | |
, elemCtrProto = (view.HTMLElement || view.Element)[protoProp] |
Liquid Fill Gauge v1.1 - 7/14/2015
Changes:
- Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.
Configurable features include:
- Changeable min/max values.
- All colors.
A D3 Bar Stacker Gauge with animated filling.
Configurable features include:
- Configurable minimum and maximum values.
- Configurable corner rounding.
- Padding.
- Color.
- Horizontal or verticle layout.
- Text size.
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
CREATE TABLE tone_data_temp AS | |
SELECT file_name, last_update, category, word_count, litigious, | |
positive, uncertainty, negative, modal_strong, modal_weak | |
FROM bgt.tone_data; | |
DROP TABLE bgt.tone_data; | |
ALTER TABLE tone_data_temp RENAME TO tone_data; | |
ALTER TABLE tone_data SET SCHEMA bgt; |