name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays
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
| // One way converter from E4X XML to JSON | |
| // 1) turns <body><item>1</item><item>2</item></body> into | |
| // body: {item: ["1", "2"]} so that lists are easier to work with | |
| // 2) turns things like: <body a="a">whatever</body> into | |
| // body: {_a: "a", _: "whatever"} | |
| // however <body>whatever</body> becomes simply body: "whatever | |
| // - attributes specified by ignored are ignored | |
| function E4XtoJSON(xml, ignored) { | |
| var r, children = xml.*, attributes = xml.@*, length = children.length(); | |
| if(length == 0) { |
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
| function nlirh_imagefield_widget($element) { | |
| if ($element['#field_name'] == 'field_soy_poderosa_photo' && $element['#type_name'] == 'soy_poderosa_photo') { | |
| print "WTF!"; | |
| $element['data']['title']['#title'] = t('The better title just for this field on this node type.'); | |
| } | |
| drupal_add_css(drupal_get_path('module', 'imagefield') .'/imagefield.css'); | |
| $element['#id'] .= '-upload'; // Link the label to the upload field. | |
| return theme('form_element', $element, $element['#children']); | |
| } |
The sopastrike.com script rocks, but you have to get up early on Wednesday and add it to all your sites, so what kind of strike is it if you have to work hard on that day? :)
Just add
<script type="text/javascript" src="//pastebin.com/raw.php?i=bip80DLx"></script>
somewhere between your <head> and </head>, and sleep late on Wednesday.
If you're using wordpress, do that at