Skip to content

Instantly share code, notes, and snippets.

@linssen
linssen / README.md
Last active June 6, 2023 17:49
Programmatically and smoothly zoom to the centre.
This file has been truncated, but you can view the full file.
<?xml version="1.0"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wptx1="http://www.garmin.com/xmlschemas/WaypointExtension/v1" xmlns:gpxtrx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3" xmlns:trp="http://www.garmin.com/xmlschemas/TripExtensions/v1" xmlns:adv="http://www.garmin.com/xmlschemas/AdventuresExtensions/v1" xmlns:prs="http://www.garmin.com/xmlschemas/PressureExtension/v1" xmlns:tmd="http://www.garmin.com/xmlschemas/TripMetaDataExtensions/v1" xmlns:vptm="http://www.garmin.com/xmlschemas/ViaPointTransportationModeExtensions/v1" xmlns:ctx="http://www.garmin.com/xmlschemas/CreationTimeExtension/v1" xmlns:gpxacc="http://www.garmin.com/xmlschemas/AccelerationExtension/v1" xmlns:gpxpx="http://www.garmin.com/xmlschemas/PowerExtension/v1" xmlns:vidx1="http://www.garmin.com/xmlschemas/VideoExtension/v1" creato
@linssen
linssen / the_includes.html
Created May 23, 2012 08:23
Extending the jQuery Sortable With Ajax & MYSQL
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script><link rel='stylesheet' href='styles.css' type='text/css' media='all' />
@linssen
linssen / end.gcode
Created March 11, 2021 08:28
Ender 3 V2 slicer settings
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 / strava-bulk-edit.js
Created October 31, 2016 12:13
Bulk editing strava activities from https://www.strava.com/athlete/training
(function($) {
var $rows = $('.training-activity-row');
/**
* Edit row
*
* @param {Dom} row
*/
function EditRow(row) {
@linssen
linssen / just_byways.kml
Last active June 7, 2019 06:50
Cambridge byways harvested from https://www.rowmaps.com/
<?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
@linssen
linssen / post-checkout
Last active July 22, 2018 22:37
A post checkout hook to automatically remove *.pyc files.
#! /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
@linssen
linssen / hack.sh
Created November 5, 2012 10:01 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/4016420/hack.sh | sh
#
@linssen
linssen / ee1x_cookies.md
Created May 22, 2012 08:47
ExpressionEngine cookies

ExpressionEngine 1.x cookies

This document outlines all of the cookies use by ExpressionEngine 1.x. With the EU cookie law coming into force on May 26th, it's important to know what cookies are set, which are 'essential' and why they are there. Hopefully this will help advise your decision process when altering your site to adhere.

I haven't yet gotten to any special addons etc. or even forums or comments. Please do fork and and send pull requests if you'd care to add anything.

Non essential

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.