Skip to content

Instantly share code, notes, and snippets.

View rococodogs's full-sized avatar

Anna Malantonio rococodogs

View GitHub Profile
@rococodogs
rococodogs / trumpy.js
Last active December 27, 2015 23:29
Fix for SerialsSolutions 360Link landing page to replace link to Interlibrary Loan forms with a pre-populated url to firstsearch to streamline ILL requests.
(function() {
var item = {
// firstsearch _appears_ to use a '_pub-date-comp' key for article dates
"_pub-date-comp" : document.getElementById("CitationJournalDateValue") || undefined
, "atitle" : document.getElementById("CitationJournalArticleValue")
|| document.getElementById("CitationBookChapterValue") || undefined
// "au" field works for articles AND books
@rococodogs
rococodogs / littlegeek.rb
Created November 11, 2013 05:08
parsing through library course guides directory to compile list of items
class LittleGeek
require "find"
attr_accessor :dir
def initialize(dir = Dir.getwd)
# the current working directory will be the default directory
@dir = dir
end
def report
@rococodogs
rococodogs / ebsco2worldshare.md
Last active December 28, 2015 14:49
dissecting the EBSCO ILL options to pass requests through WorldShare

ILL url to link to

http://firstsearch.oclc.org/WebZ/FSOpenILL

query string, full

@rococodogs
rococodogs / lisbin.md
Last active December 31, 2015 10:39
idea for listbin app (? this _has_ to have been done before, right?)

listbin - shareable + anonymous lists

  • creates unordered lists, stores them in nosql database
  • hashes are assigned as keys
  • allow signup to allow easy access to past lists

example hash/json of list

{
 "id" : "6a2bds0",
@rococodogs
rococodogs / dlm-idea.md
Created January 9, 2014 00:50
idea for 'doug loves movies' json response
{
  "date": "January 6, 2014",
  
  "location": {
    "city": "Orlando, Florida",
    "venue": "the Improv"
  },
  
  "guests": [
@rococodogs
rococodogs / trumpy-to-catcher.js
Last active August 29, 2015 13:56 — forked from rococodogs/trumpy.js
updated version of trumpy, sending serials solution ill request to our new catcher page
// hacky fix to replace the link in "Go to request form" for interlibrary loans
// with a dynamic link to our ILL catcher.
// v. 3, 3/10/14
(function() {
var item = {
"atitle" : document.getElementById("CitationJournalArticleValue")
|| document.getElementById("CitationBookChapterValue") || undefined

responsive fixes for off-campus proxy login

at the top of each page, you'll want to add this meta tag:

<meta name="viewport" content="width=device-width, initial-scale=1">

and add this css, either to the bottom of the `` block or making the changes to each css item

@rococodogs
rococodogs / enumExplode.php
Last active August 29, 2015 13:57
converts enum fields from mysql into an array
<?php
function enumExplode($tableCol) {
$expl = explode(".", $tableCol);
$table = $expl[0];
$column = $expl[1];
$query = "show columns from {$table} where field = :column";
$res = querydb($query, array("column" => $column), $error);
$enum = $res[0]['Type'];
@rococodogs
rococodogs / navbar.css
Created May 23, 2014 15:09
navbar stylin' for terminal four
#content { min-height: 25em; }
/* hide top-level link to home */
.currentbranch0 { display: none; }
nav {
background-color: #cc092f;
margin-top: 1px;
overflow: hidden;
padding: 0;
@rococodogs
rococodogs / notivational.rb
Last active August 29, 2015 14:02
cheerful notifications to help un-bum me out
require "terminal-notifier"
messages = [
"Hang in there baby!",
"You know, you're a great person!",
"How's it going? Just wanted to see if everything was okay!",
"Just think about how great the sun is!",
"Maybe now's a good time to get up and walk around?",
"You look great today, did you know that?",
"I certainly appreciate what you do!"