Skip to content

Instantly share code, notes, and snippets.

knorthfield / laravel_parse_pasted_spreadsheet.php
Last active Jan 10, 2019
Laravel Parse Pasted Spreadsheet
View laravel_parse_pasted_spreadsheet.php
collect(explode("\n", request()->spreadsheet))
return str_getcsv($row, "\t");
->each(function($cell) {
// $cell[0], $cell[1] etc
knorthfield / key-nav.html
Created Aug 7, 2018
Proof of concept for keyboard nav of search results
View key-nav.html
a {
display: block;
:focus {
background-color: red;
outline: 0;
<input type="text" id="input" tabindex="0">
knorthfield / click_connect.js
Last active Jun 15, 2018
Mass Connect LinkedIn
View click_connect.js
// Use in console on
View icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:fa4629b035b89d67c97df51ff90fc883
### Keybase proof
I hereby claim:
* I am knorthfield on github.
* I am knorthfield ( on keybase.
* I have a public key ASCBtEiD0LexEljuEE16WHUP6VUewBlyvyN0hB-waykjBAo
To claim this, I am signing this object:
knorthfield /
Created Sep 11, 2017
Download a sequence of images
for i in $(seq -f "%02g" 1 29)
curl -LO$i@2x.png
knorthfield / datetime_picker.js
Last active Feb 23, 2017
iOS like date and time pickers
View datetime_picker.js
'use strict';
// Making up for Safari's lack of native date picker
// Trying to ape the iOS one
var mac_os_safari_datetime_picker = {
init: function(){
date_input.addEventListener('click', function(event){
knorthfield / mail.php
Created Nov 10, 2016
PHP basic mailer
View mail.php
$message = implode("\n", array_map(function ($v, $k) { return $k . ': ' . $v; }, $_POST, array_keys($_POST)));
$headers = 'From:';
mail('', 'Website Contact Form', $message, $headers);
knorthfield /
Last active Jul 25, 2016
Setting up Raspberry Pi Status Board
knorthfield / implode.php
Created Jul 21, 2016
Make text from array with keys
View implode.php
$message = implode("\n", array_map(function ($v, $k) { return $k . ': ' . $v; }, $_POST, array_keys($_POST)));