This variation of a donut chart demonstrates how to add labels with lines and also works with missing/new data. Clicking on the button changes the displayed data.
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 operator | |
class Trade: | |
def __init__(self, name, value, cost): | |
self.name = name | |
self.value = value | |
self.cost = cost | |
def updateValue(self, newValue): | |
self.value = newValue |
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
<head> | |
<title> Alex's Quote Generator</title> | |
</head> | |
<body> | |
<div> | |
<h1 class = text-center>Star Wars Quote Generator</h1> | |
<button class = "center-block" id = "change-quote">This quote has disappointed me for the last time.</button> |
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
$(document).ready( function() { | |
$.fn.extend({ | |
toggleCheck: function (isChecked) { | |
var $element = $(this); | |
$element.find('input').prop('checked', isChecked); | |
$element.toggleClass('selected', isChecked); | |
} | |
}); | |
var $containers = $('span.donation_amount_option_container'), |
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
var http = require('http'), | |
env = require('jsdom').env, | |
_ = require('underscore'); | |
http.get( | |
{ | |
host: 'pitchfork.com', | |
port: '80', | |
path: 'reviews/albums/20189-the-moon-rang-like-a-bell-remixed', | |
}, |
Content in custom post types that exist in the current site will be selectively migrated, adapted, or abandoned as appropriate.
Every media file uploaded to WordPress is represented as an Attachment. NAPCS wants to keep some of these, and is free to delete unwanted files from the current site at any time. The desired files and related metadata will be selectively migrated, either by some size/age/type criteria, or according to a white- or black- list provided by NAPCS, or some combination. More discussion is needed.
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
let &titleold=getcwd() | |
" Following lines added by drush vimrc-install on Mon, 26 Jan 2015 20:11:13 +0000. | |
set nocompatible | |
call pathogen#infect('/home/xaq/.drush/vimrc/bundle/{}') | |
call pathogen#infect('/home/xaq/.vim/bundle/{}') | |
" End of vimrc-install additions. | |
" Change mapleader | |
let mapleader="," |
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
diff --git a/src/wp-content/themes/yold-season2/assets/css/main.css b/src/wp-content/themes/yold-season2/assets/css/main.css | |
index 82bf2a30..c45258fe 100644 | |
--- a/src/wp-content/themes/yold-season2/assets/css/main.css | |
+++ b/src/wp-content/themes/yold-season2/assets/css/main.css | |
@@ -17,36 +17,19 @@ Variables | |
Mixins | |
========================================================================== */ | |
/* Module mixins */ | |
-#module .title { | |
- font: 100 50px / 0.9 "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif; |
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
diff --git a/src/wp-content/themes/yold-season2/assets/css/main.css b/src/wp-content/themes/yold-season2/assets/css/main.css | |
index 84f1e3f6..82bf2a30 100644 | |
--- a/src/wp-content/themes/yold-season2/assets/css/main.css | |
+++ b/src/wp-content/themes/yold-season2/assets/css/main.css | |
@@ -9061,7 +9061,7 @@ fieldset[disabled] .btn.btn-twitter-blue.focus { | |
-webkit-transition: 0.35s; | |
-o-transition: 0.35s; | |
transition: 0.35s; | |
- padding: 20px; | |
+ padding: 10px 20px; |
OlderNewer