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
<html> | |
<head> | |
<title>YUI/YQL Flickr</title> | |
<style type="text/css"> | |
.yui-carousel-element li { height: 75px; width: 75px; } | |
.yui-carousel-element .yui-carousel-item-selected { border: none; } | |
</style> | |
</head> | |
<body class="yui3-skin-sam"> |
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 block of code creates the YDN Rack module that supports searching within | |
// a set of docs. Previously, the only search functionality would scour the entire | |
// site for the terms entered. This module aims to provide contextual search | |
// within documentation so a user can more easily find something related to the | |
// docs currently being presented. We use a bunch of y! technology to do the heavy | |
// lifting and that's awesome that we just have to manufacture the glue. | |
// |
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
describe('Testing some characters', function() { | |
var chars = ['&', '\'', '"', '<', '>']; | |
for(var i = 0; i < chars.length; i+=1) { | |
currentChar = chars[i]; | |
it('should reject ' + currentChar, (function(currentChar) { | |
expect(false).toEqual(false); | |
})(currentChar)); | |
} | |
}); |
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() { | |
var MYAPP = {}; | |
window = jsdom().createWindow(), | |
$ = require('jquery').create(window), | |
document = window.document, | |
jQuery = $j= $; | |
$('body').html('<div class="click-me"></div>'); |
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
# cliff notes versions of a few of the github help pages to get started | |
git config --global user.email "mich-cook@users.noreply.github.com" | |
# a possible place to get a random passphrase: http://randomtextgenerator.com/ | |
ssh-keygen -t rsa -b 4096 -C "`git config user.email`" -f ~/.ssh/github # keep that passphrase handy! | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/github # here's why you saved the passphrase | |
# | |
# STOP! this is a step done in the browser and required to continue | |
# paste and save contents of ~/.ssh/github.pub here: https://github.com/settings/ssh/new |
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 version uses the bottom row to find columns with a toal of 0.00m | |
// and then hides the cells in all rows with the same column offsets | |
// | |
// it would be tempting to optimize this by moving the query selector | |
// for the strong element to the top, but that will mess up the offsets | |
// | |
// there's probably a clever way to make the inner querySelectorAll() | |
// more compact, but I couldn't find it quickly | |
// |
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
[ | |
{ | |
"petName": "Pepe", | |
"ownerName": "Reggie Tupp", | |
"aptNotes": "It's time for this rabbit's post spaying surgery checkup", | |
"aptDate": "2018-11-28 13:30" | |
}, | |
{ | |
"petName": "Rio", | |
"ownerName": "Philip Ransu", |
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
const AWS = require("aws-sdk"); | |
// Get soopur seekrit vars from .env file. | |
require("dotenv").config(); // could test response, but out of scope for simplicity | |
const REGION = process.env.REGION; | |
const IDENTITY_POOL_ID = process.env.IDENTITY_POOL_ID; | |
const FUNCTION_NAME = process.env.FUNCTION_NAME; | |
// Init cognito | |
AWS.config.region = REGION; |