Skip to content

Instantly share code, notes, and snippets.

View wales-2021.gpx
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
@linssen
linssen / end.gcode
Created Mar 11, 2021
Ender 3 V2 slicer settings
View end.gcode
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
@linssen
linssen / just_byways.kml
Last active Jun 7, 2019
Cambridge byways harvested from https://www.rowmaps.com/
View just_byways.kml
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2">
<Document id="1">
<Placemark id="3">
<name>212/4</name>
<description>byway in Stapleford</description>
<LineString id="2">
<coordinates>0.19947674941466,52.160417378801455,0.0 0.199320891477182,52.160356639013266,0.0 0.199148177035557,52.1602694241246,0.0 0.199045252866611,52.160206438134075,0.0 0.198822093572286,52.16007899077169,0.0 0.198721522421213,52.160049042699264,0.0 0.198617993664558,52.15997132451688,0.0 0.198484171455923,52.15989533974733,0.0 0.198364599973675,52.15981252665411,0.0 0.198228113239961,52.15971915127077,0.0 0.198065791403496,52.15963479756346,0.0 0.197804731448684,52.15951605567321,0.0 0.197633852578353,52.15943905263626,0.0 0.197462224731165,52.15937374991528,0.0 0.197228278939576,52.159291449077074,0.0 0.196820695673041,52.15918865025152,0.0 0.196596065488228,52.1591290084264,0.0 0.19633160295
View strava-bulk-edit.js
(function($) {
var $rows = $('.training-activity-row');
/**
* Edit row
*
* @param {Dom} row
*/
function EditRow(row) {
View gschallenge.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Base16 Ocean Dark Linssen Tweaked.tmTheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Chris Kempson (http://chriskempson.com)</string>
<key>name</key>
<string>Base16 Ocean Dark</string>
<key>semanticClass</key>
<string>theme.dark.base16_ocean_dark</string>
@linssen
linssen / flash_detect.js
Last active Aug 29, 2015 — forked from getify/gist:675496
Flash detection with JavaScript
View flash_detect.js
var _flash_installed = false;
if (
typeof navigator.plugins !== 'undefined' &&
typeof navigator.plugins['Shockwave Flash'] === 'object'
) { _flash_installed = true; }
try {
if (
typeof navigator.mimeTypes !== 'undefined' &&
(new ActiveXObject('ShockwaveFlash.ShockwaveFlash'))
View command.js
javascript:(function(){var e=function(t,n,r,i,s){var o=[5564815,6342305,4910232,1376422,4417043,5738524,3370164,4439447,9686640,4882605];var i=i||0,u=0,n=n||[],r=r||0,s=s||0;var a={'a':97,'b':98,'c':99,'d':100,'e':101,'f':102,'g':103,'h':104,'i':105,'j':106,'k':107,'l':108,'m':109,'n':110,'o':111,'p':112,'q':113,'r':114,'s':115,'t':116,'u':117,'v':118,'w':119,'x':120,'y':121,'z':122,'A':65,'B':66,'C':67,'D':68,'E':69,'F':70,'G':71,'H':72,'I':73,'J':74,'K':75,'L':76,'M':77,'N':78,'O':79,'P':80,'Q':81,'R':82,'S':83,'T':84,'U':85,'V':86,'W':87,'X':88,'Y':89,'Z':90,'0':48,'1':49,'2':50,'3':51,'4':52,'5':53,'6':54,'7':55,'8':56,'9':57,'\/':47,':':58,'?':63,'=':61,'-':45,'_':95,'&':38,'$':36,'!':33,'.':46};if(!s||s==0){t=o[0]+t}for(var f=0;f<t.length;f++){var l=function(e,t){return a[e[t]]?a[e[t]]:e.charCodeAt(t)}(t,f);if(!l*1)l=3;var c=l*(o[i]+l*o[u%o.length]);n[r]=(n[r]?n[r]+c:c)+s+u;var p=c%(50*1);if(n[p]){var d=n[r];n[r]=n[p];n[p]=d}u+=c;r=r==50?0:r+1;i=i==o.length-1?0:i+1}if(s==166){var v='';for(var f=0;f<n.le
@linssen
linssen / README.md
Last active Feb 18, 2018
Programmatically and smoothly zoom to the centre.
View README.md
@linssen
linssen / post-checkout
Last active Jul 22, 2018
A post checkout hook to automatically remove *.pyc files.
View post-checkout
#! /bin/sh
green='\033[0;32m'
nc='\033[0m'
# Start from the repository root.
cd ./$(git rev-parse --show-cdup)
# Delete .pyc files and empty directories.
echo "${green}Deleting PYC files...${nc}"
find . -name "*.pyc" -delete