Skip to content

Instantly share code, notes, and snippets.

View rococodogs's full-sized avatar

Anna Malantonio rococodogs

View GitHub Profile
@rococodogs
rococodogs / wordcamp-lancaster-pa-2015-notes.md
Created March 1, 2015 15:48
saturday, february 28, 2015

building parsec (responsive themes) - joe casabona

  • slides

  • parsec theme

  • sketch

    • have an idea of what it'll look like
  • style tile

    • essentially a style guide / mockup
  • view how everything looks

@rococodogs
rococodogs / wms-ncip-halp.md
Last active August 29, 2015 14:17
gathering resources re: OCLC's NCIP API (via WorldShare Management Systems/Solutions)
document.addEventListener('keydown', function(ev) {
var audio = document.getElementById('audioplayer')
, okayKeys = [32, 37, 39]
;
if (okayKeys.indexOf(ev.keyCode) > -1) {
ev.preventDefault();
}
// space (pause)
@rococodogs
rococodogs / console_teen.js
Created April 30, 2015 20:35
the coolest logging for today's rad-est teens
// > console.teen("omg so kewl!")
// OmG sO kEwL!
console.teen = function() {
var input = [].slice.call(arguments).join(' '), yay = true, i = 0, out = '', l
if (!input.length) return;
for(;i<input.length;i++) {
l = input[i]
if (/[a-z]/i.test(l)) {
out += yay ? l.toUpperCase() : l
@rococodogs
rococodogs / ncip.lookupuser.js
Created May 20, 2015 14:10
scratch OCLC NCIP function that's not being used?
NCIP.prototype.lookupUser = function(userPrincipalID, opts, cb) {
var fieldPossibilities = ['LoanedItems', 'AccountDetails', 'RequestedItems'];
var fieldsDefaults = {
LoanedItems: {
_el: {
value: 'Loaned Items',
element: 'ElementType'
},
start: {
value: 1,
@rococodogs
rococodogs / empty-link.js
Last active August 29, 2015 14:26
bookmarklet to report number of empty links (`<a href="#"></a>') exist on a page. also provides the element
@rococodogs
rococodogs / bike.js
Created August 13, 2015 11:16
cat server - displays an ascii cat on request
module.exports = [
'',
' ________________',
' | |_____ __',
' | I Love You! | |__| |_________',
' |________________| |::| | /',
' /\\**/\\ | \\.____|::|__| <',
' ( o_o )_ | \\::/ \\._______\\',
' (u--u \\_) |',
' (||___ )==\\',
@rococodogs
rococodogs / building-cellardoorbot.md
Last active September 10, 2015 22:24
wrote this a while ago for a blog that never happened

building @CellarDoorBot

This famous linguist once said that of all the phrases in the English language, of all the endless combinations of words in all of history, that "cellar door" is the most beautiful.

(Drew Barrymore in Donnie Darko)

I honestly have no idea how the phrase "cellar door" popped into my head, but that it did really does speak to that quote. Like (so I'm learning) many new-ish code-slingers, I'm always at a loss of what projects to work on when learning a/my language; all of the ideas I have are too huge or too dull to keep my interest long enough to follow them through. So the epiphany I had this morning was exciting enough to try and bang out in a short period of time: build a Twitter bot that breaks up the last phrase tweeted and uses the new WordsAPI to build a new tweet out of synonyms. A game of Whisper Down the Lane (aka C

@rococodogs
rococodogs / oclc-scopes.md
Last active September 14, 2015 20:15
scopes for OCLC's web services
OCLC API Scope code
WMS Acquisitions API WMS_ACQ
WMS Availabilty WMS_Availability
WMS Circulation API WMS_CIRCULATION
WMS Collection Management API WMS_COLLECTION_MANAGEMENT
License Manager API WMS_LMAN
WMS NCIP Service WMS_NCIP
WMS Vendor Information Center API WMS_VIC
Article Exchange articleExchange
@rococodogs
rococodogs / oclc-notification-test.js
Created October 28, 2015 15:55
code used to test the OCLC Notification API
var WSKey = require('oclc-wskey')
var https = require('https')
var fs = require('fs')
var wskey = {
public: 'give me a public key!',
secret: 'give me a secret key!'
}
var key = new WSKey(wskey.public, wskey.secret);