Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Scott ascott1

View GitHub Profile
View npm-projects.md

Show me the code! Do you prefer seeing how something works instead of instructions? If so, check out this pull request to the Amortize module. Each instruction below lives as its own commit. https://github.com/cfpb/amortize/pull/11

1. Add an .npmrc file.

The contents of the file should be:

save-exact=true
View browsers.csv
Combine Chrome (all versions) & Firefox (5+) Market Share Perc. (2015 to 2016)
Chrome (all) 45.35
Firefox 5+ 10.09
IE 11.0 6.69
iPhone 0 6.57
Android 0 6.02
Opera 0 3.76
Safari iPad 3.41
IE 8.0 1.64
IE 9.0 1.2
@ascott1
ascott1 / accessibility-policy.md
Last active Mar 7, 2016
Open Accessibility Policy — Initial Draft
View accessibility-policy.md

As contributors and maintainers of this project, we are committed to ensuring the accessibility of this project for people with disabilities. We pledge to meet W3C WAI's Web Content Accessibility Guidelines 2.0, Level AA conformance. Any issues should be reported to [EMAIL ADDRESS].

View gist:8c8301944368b73c08a9
@@ -275,6 +275,51 @@ class NoticeBuildTest(TestCase):
self.assertTrue(changes['node']['text'].strip(),
u'(c) More stuff')
+
+ def test_process_amendments_single_parent(self):
+ xml = u"""
+ <REGTEXT PART="1026" TITLE="12">
+ <AMDPAR>2. In Supplement I to Part 1026—Official Interpretations, under Section 1026.35—Requirements for Higher-Priced Mortgage Loans, 35(b)(2) Exemptions, Paragraph 35(b)(2)(iii), paragraph 1.iii is revised to read as follows:</AMDPAR>
+ <HD SOURCE="HD1">Supplement I to Part 1026&#x2014;Official Interpretations</HD>
View gist:eb320428a5f466f94325
{
"abstract": "The Bureau is amending the official commentary that interprets the requirements of the Bureau's Regulation Z (Truth in Lending) to reflect a change in the asset size threshold for certain creditors to qualify for an exemption to the requirement to establish an escrow account for a higher-priced mortgage loan based on the annual percentage change in the average of the Consumer Price Index for Urban Wage Earners and Clerical Workers (CPI-W) for the 12-month period ending in November. The exemption threshold is adjusted to increase to $2.060 billion from $2.028 billion. The adjustment is based on the 1.1 percent increase in the average of the CPI-W for the 12-month period ending in November 2014. Therefore, creditors with assets of $2.060 billion or less as of December 31, 2014, are exempt, if other requirements of Regulation Z also are met, from establishing escrow accounts for higher-priced mortgage loans in 2015. The adjustment to the escrows exemption asset-size threshold will also increas
View gist:ee9755a8b8b07cb37b3f
{ 'amendments': [ (PUT, [u'1026', u'35', u'b', u'2', u'iii', 'Interp', u'1', u'iii']),
(PUT, [u'1026', u'35', u'b', u'2', u'iii', 'Interp', u'1', u'iii', u'A']),
(POST, [u'1026', u'35', u'b', u'2', u'iii', 'Interp', u'1', u'iii', u'B'])],
'cfr_parts': ['1026'],
'changes': defaultdict(<type 'list'>, {})}
View gist:eaad0cf79554146cddc3
{% if env == 'built' %}
<link rel="stylesheet" href="{%static "regulations/css/style.min.css" %}"/>
{% else %}
<link rel="stylesheet" href="{%static "regulations/css/style.css" %}"/>
{% endif %}
<script src="{%static "regulations/js/source/otherlibs/modernizr.js" %}"></script>
{% block app_js %}
<script>
window.APP_PREFIX = "{{ APP_PREFIX }}";
</script>
View gist:72196ac9b4ee841d1974
*/
less: {
dev: {
options: {
paths: ['<%= env.frontEndPath %>/css/less'],
compress: false,
sourceMap: true,
sourceMapFilename: '<%= env.frontEndPath %>/css/style.css.map',
sourceMapBasepath: '<%= env.frontEndPath %>/css/less/',
sourceMapURL: 'style.css.map'
View facts-of-life.md

you will design your code

you will test your code

you will refactor your code

other people will use your code

there will be bugs

View nodeschool-prep.md

NodeSchool - NationJS 2014

Welcome and thank you for signing up for NodeSchool at NationJS 2014. To make this NodeSchool the best NodeSchool, there are a few things that you can do before you arrive to be ready to excel at this NodeSchool!

Steps to get ready for NodeSchool

  1. Install Node.js - This can be done by choosing the pre-built installers here.
  2. After you've installed Node.js, install the NodeSchool workshops (see below).
  3. Come ready to learn with your favorite text editing program (We suggest Sublime Text, Atom or Brackets)