Skip to content

Instantly share code, notes, and snippets.

View cmconnelly's full-sized avatar

Claire Connelly cmconnelly

View GitHub Profile
[
{
"backcolor": "#2130b5",
"name": "CoolerMaster Novatouch TKL; Nantucket Selectric Keyset",
"author": "Claire Connelly",
"background": {
"name": "Aluminium brushed",
"style": "background-image: url('/bg/metal/aluminum_texture1642.jpg');"
},
"switchMount": "cherry",
[
{
"backcolor": "#2130b5",
"name": "CoolerMaster Novatouch TKL; Nantucket Selectric Keyset",
"author": "Claire Connelly",
"background": {
"name": "Aluminium brushed",
"style": "background-image: url('/bg/metal/aluminum_texture1642.jpg');"
},
"switchMount": "cherry",
@cmconnelly
cmconnelly / cognos-parsing.pl
Created May 18, 2017 21:48
code to parse raw Cognos "xls" files (which are really UTF-16 encoded tab-separated files)
use Text::CSV_XS qw(csv);
my $rows = csv (in => $filename, binary => 1, encoding => "UTF-16", sep => "\t", allow_loose_quotes => 1);
my $header = shift @$rows;
    foreach my $row (@$rows) {
        my ($gradyear, $name, $id, $class, $maj1, $maj2, $cCount, $cYear, $cSession, $cNum, $cSect, $cGrade) = map { s/\s+\z//; $_ } @$row;
}

Keybase proof

I hereby claim:

  • I am cmconnelly on github.
  • I am cmconnelly (https://keybase.io/cmconnelly) on keybase.
  • I have a public key ASBHtojfVISMBgT2FESULrie5qexulvxoEfoPs3mCoa1Ogo

To claim this, I am signing this object:

@cmconnelly
cmconnelly / responsive-request-desktop-site.js
Created July 31, 2016 01:18 — forked from dtipson/responsive-request-desktop-site.js
How to make responsive sites better respect the "Request a desktop site" feature on modern mobile browsers.
/*
Enable the "Request Desktop Site" functions on mobile chrome (android and iOS) allow users to see desktop layouts on responsive sites. Note that this is distinct from "opt out of mobile!" buttons built into your site: this is meant to work with the browser's native opt-in/opt-out functionality.
Since these functions work, in part, by simply spoofing the user agent to pretend to be desktop browsers, all we have to do is just remember that the browser once claimed to be android earlier in the same session and then alter the viewport tag in response to its fib.
Here's an example viewport tag <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> that we'd be setting to scaleable-yes,max scale=2. That's just an example of something that works on the site I was building: you should customize the "desktop" viewport content setting to whatever works for your site's needs. If you wanted, you could stick this code in the head just after the primary viewport tag so that the br
@cmconnelly
cmconnelly / math-major-capstone-excerpts.md
Created October 22, 2015 23:05
Bits from math major(s) in Catalogue relating to capstone experiences.

Mathematics Major

Students will have many opportunities to do mathematical research with faculty through independent study, a summer research experience, or their senior capstone experience. Active areas of mathematical research at Harvey Mudd and The Claremont Colleges include algebra, algebraic geometry, algorithms and computational complexity, combinatorics, differ- ential geometry, dynamical systems, fluid mechanics, graph theory, number theory, numerical analysis, mathematical biology, mathematics education, operations research, partial differen- tial equations, real and complex analysis, statistical methods and analysis, and topology.

The culmination of the degree is the senior capstone research experience: every student experiences a taste of the life of a professional mathematician as part of a team in the Mathematics Clinic Program or by working individually on a Senior Thesis.

An educational innovation of Harvey Mudd, the Clinic Program brings together teams of students to work on a research p

@cmconnelly
cmconnelly / capstone-catalog-excerpts.md
Created October 22, 2015 22:53
Bits of introduction to catalogue about capstone experiences.

EXPERIENTIAL LEARNING

Harvey Mudd College is widely recognized for its programmatic innovation, excellence and rigor. A recipient of the National Science Foundation’s prestigious Award for the Integration of Research and Education, Harvey Mudd College has long recognized the importance of collaborative student-faculty research, setting aside nearly $3 million annually for this purpose. U.S. News & World Report has consistently ranked Harvey Mudd as one of the best undergraduate engineering programs in the nation, with 40 percent of recent graduates majoring in that field. Harvey Mudd surpasses nearly every other college in the United States in the percentage of its graduates that go on to earn Ph.D.s.

Harvey Mudd offers undergraduates unique, hands-on laboratory and field experience usually reserved for graduate students. Anchored by a research-supportive curriculum, students pursue research during their entire time at Harvey Mudd. They collaborate with faculty both during the academic year and in the sum