Skip to content

Instantly share code, notes, and snippets.

View xeophin's full-sized avatar

Kaspar manz xeophin

View GitHub Profile
@phocks
phocks / paywall-block-list.txt
Last active February 17, 2025 02:33
Just a list of URLs to block that may or may not affect paywalls on various sites
! Hide "This is your last free article" banners
! REQUIRED: Use "Forget Me Not" to block cookie: pay_ent_msmp@*.newyorker.com
! to actually block the paywall. (Change domain to suit)
! UPDATE 2025: No longer works. Block "build" js instead as below.
! vanityfair.com##.journey-unit__container
! wired.com##.journey-unit__container
! newyorker.com##.journey-unit__container
! gq.com##.journey-unit__container
! Brisbane Times & Fairfax sites
@flegfleg
flegfleg / Logseq+Hookmark.scpt
Last active October 30, 2024 09:39
Logseq Hookmark integration Applescript
-- Logseq Hookmark integration via Applescript
-- Copies Links to pages only, not blocks.
-- Paste this into Hook -> Preferences -> Scripts -> Logseq -> Get Address
tell application "System Events"
set the clipboard to ""
delay 0.5
-- You need to set a keyboard shortcut for "Copy page Url" in Logseq
-- Here: CMD + CTRL + SHIFT + U
@XavierGimenez
XavierGimenez / .block
Last active July 13, 2023 08:18
Chord Diagram with vega.js
license: bsd-3-clause
# The packages we'll be using
packages <- c("rvest","dplyr","tidyr","pipeR","ggplot2","stringr","data.table")
# From those packages, which ones are not yet installed?
newPackages <- packages[!(packages %in% as.character(installed.packages()[,"Package"]))]
# If any weren't already installed, install them now
if(length(newPackages)) install.packages(newPackages)
# Now make sure all necessary packages are loaded
@tmslnz
tmslnz / apple-system-font.css
Created July 12, 2015 18:01
Specify Apple System Font in CSS
/* From http://furbo.org/2015/07/09/i-left-my-system-fonts-in-san-francisco/ */
* { font-family: -apple-system-font, HelveticaNeue, LucidaGrande; }
/* Dynamic Type feature */
* { font-family: -apple-system-headline1, HelveticaNeue, LucidaGrande; }
* { font-family: -apple-system-headline2, HelveticaNeue, LucidaGrande; }
* { font-family: -apple-system-body, HelveticaNeue, LucidaGrande; }
* { font-family: -apple-system-subheadline1, HelveticaNeue, LucidaGrande; }
* { font-family: -apple-system-subheadline2, HelveticaNeue, LucidaGrande; }
@Su-Shee
Su-Shee / gist:450ccbf2f665094aae50
Last active August 29, 2015 14:23
quick & dirty vim syntax highlighting for "bad writing style" in german
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
syn case match
" indication for missing a proper subject or object 'who is doing what?'
syn keyword authorAnonym man
@ikriz
ikriz / PostBuildTrigger.cs
Created February 21, 2014 21:56
Example PostProcessBuild Script referenced at http://www.ikriz.nl/2012/06/18/unity-post-process-mayhem/
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
public static class PostBuildTrigger
{
private static DirectoryInfo targetdir;
private static string buildname;
private static string buildDataDir;
@leon
leon / README.md
Created February 4, 2014 09:49
angularjs $q decorator for spread

Use it like this

$q.all([ promise1, promise2 ]).then($q.spread(function (promise1Result, promise2Result) {

});

@simonista
simonista / .vimrc
Last active April 23, 2025 00:30
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@TomByrne
TomByrne / MultiExporter.jsx
Last active April 2, 2025 10:37
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to [email protected]