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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/paperjs/paper.js@0.12.11/dist/paper-full.js"></script> | |
<script type="text/paperscript" canvas="myCanvas"> | |
var background = new Path.Rectangle(view.bounds); | |
background.fillColor = 'white'; | |
var think = new Path.Circle(new Point(115, 120), 55); | |
think.strokeColor = '#B42371'; |
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
$(window).scroll(function(){ | |
toScroll = $(document).height() - $(window).height() - 250; | |
if ( $(this).scrollTop() > toScroll ) { | |
// Do something | |
} | |
}); |
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
<?php | |
collect(explode("\n", request()->spreadsheet)) | |
->map(function($row){ | |
return str_getcsv($row, "\t"); | |
}) | |
->each(function($cell) { | |
// $cell[0], $cell[1] etc | |
}); |
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
// Use in console on https://www.linkedin.com/mynetwork/ | |
$('[data-control-name="connection_connections_connect"]').click(); | |
$('[data-control-name="invite"]').click(); | |
window.location.reload(); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>CSS Flip</title> | |
<style type='text/css'> | |
/* entire container, keeps perspective */ | |
.flip-container { | |
-webkit-perspective: 1000; |
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
### Keybase proof | |
I hereby claim: | |
* I am knorthfield on github. | |
* I am knorthfield (https://keybase.io/knorthfield) on keybase. | |
* I have a public key ASCBtEiD0LexEljuEE16WHUP6VUewBlyvyN0hB-waykjBAo | |
To claim this, I am signing this object: |
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
#!/bin/bash | |
for i in $(seq -f "%02g" 1 29) | |
do | |
curl -LO https://app.fullstory.com/s/img/avatars/$i@2x.png | |
done |
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
'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(){ | |
document.querySelectorAll('input[type="date"]').forEach(function(date_input){ | |
date_input.addEventListener('focus', mac_os_safari_datetime_picker.date.show_date_picker); | |
date_input.addEventListener('click', function(event){ |
NewerOlder